Skip to content
Snippets Groups Projects
Commit 1dff2a0f authored by Michael Meskes's avatar Michael Meskes
Browse files

Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.

parent 4a12e98c
No related branches found
No related tags found
No related merge requests found
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.21 2010/03/09 11:09:45 meskes Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.22 2010/03/20 18:53:00 meskes Exp $ */
statements: /*EMPTY*/ statements: /*EMPTY*/
| statements statement | statements statement
...@@ -387,13 +387,11 @@ sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {}; ...@@ -387,13 +387,11 @@ sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {};
var_type_declarations: /*EMPTY*/ { $$ = EMPTY; } var_type_declarations: /*EMPTY*/ { $$ = EMPTY; }
| vt_declarations { $$ = $1; } | vt_declarations { $$ = $1; }
| CPP_LINE { $$ = $1; }
; ;
vt_declarations: var_declaration { $$ = $1; } vt_declarations: single_vt_declaration { $$ = $1; }
| type_declaration { $$ = $1; } | CPP_LINE { $$ = $1; }
| vt_declarations var_declaration { $$ = cat2_str($1, $2); } | vt_declarations single_vt_declaration { $$ = cat2_str($1, $2); }
| vt_declarations type_declaration { $$ = cat2_str($1, $2); }
| vt_declarations CPP_LINE { $$ = cat2_str($1, $2); } | vt_declarations CPP_LINE { $$ = cat2_str($1, $2); }
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment