|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.77 2009/04/19 18:52:57 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.78 2009/04/19 21:50:09 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
|
17 | 17 |
|
18 | 18 | #include <ctype.h>
|
19 | 19 |
|
20 |
| -#include "parser/gramparse.h" |
21 |
| -#include "parser/gram.h" |
22 | 20 | #include "parser/scansup.h"
|
23 | 21 |
|
24 | 22 |
|
@@ -461,41 +459,6 @@ plpgsql_convert_ident(const char *s, char **output, int numidents)
|
461 | 459 | }
|
462 | 460 |
|
463 | 461 |
|
464 |
| -/* |
465 |
| - * plpgsql_parse_string_token - get the value represented by a string literal |
466 |
| - * |
467 |
| - * We do not make plpgsql's lexer produce the represented value, because |
468 |
| - * in many cases we don't need it. Instead this function is invoked when |
469 |
| - * we do need it. The input is the T_STRING token as identified by the lexer. |
470 |
| - * |
471 |
| - * The result is a palloc'd string. |
472 |
| - * |
473 |
| - * Note: this is called only from plpgsql's gram.y, but we can't just put it |
474 |
| - * there because including parser/gram.h there would cause confusion. |
475 |
| - */ |
476 |
| -char * |
477 |
| -plpgsql_parse_string_token(const char *token) |
478 |
| -{ |
479 |
| - int ctoken; |
480 |
| - |
481 |
| - /* |
482 |
| - * We use the core lexer to do the dirty work. Aside from getting the |
483 |
| - * right results for escape sequences and so on, this helps us produce |
484 |
| - * appropriate warnings for escape_string_warning etc. |
485 |
| - */ |
486 |
| - scanner_init(token); |
487 |
| - |
488 |
| - ctoken = base_yylex(); |
489 |
| - |
490 |
| - if (ctoken != SCONST) |
491 |
| - elog(ERROR, "unexpected result from base lexer: %d", ctoken); |
492 |
| - |
493 |
| - scanner_finish(); |
494 |
| - |
495 |
| - return base_yylval.str; |
496 |
| -} |
497 |
| - |
498 |
| - |
499 | 462 | /*
|
500 | 463 | * Statement type as a string, for use in error messages etc.
|
501 | 464 | */
|
|
0 commit comments