Skip to content

Commit 1dff2a0

Browse files
author
Michael Meskes
committed
Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.
1 parent 4a12e98 commit 1dff2a0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/interfaces/ecpg/preproc/ecpg.trailer

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.21 2010/03/09 11:09:45 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.22 2010/03/20 18:53:00 meskes Exp $ */
22

33
statements: /*EMPTY*/
44
| statements statement
@@ -387,13 +387,11 @@ sql_enddeclare: ecpgstart END_P DECLARE SQL_SECTION ';' {};
387387

388388
var_type_declarations: /*EMPTY*/ { $$ = EMPTY; }
389389
| vt_declarations { $$ = $1; }
390-
| CPP_LINE { $$ = $1; }
391390
;
392391

393-
vt_declarations: var_declaration { $$ = $1; }
394-
| type_declaration { $$ = $1; }
395-
| vt_declarations var_declaration { $$ = cat2_str($1, $2); }
396-
| vt_declarations type_declaration { $$ = cat2_str($1, $2); }
392+
vt_declarations: single_vt_declaration { $$ = $1; }
393+
| CPP_LINE { $$ = $1; }
394+
| vt_declarations single_vt_declaration { $$ = cat2_str($1, $2); }
397395
| vt_declarations CPP_LINE { $$ = cat2_str($1, $2); }
398396
;
399397

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy