Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1dff2a0

Browse files
author
Michael Meskes
committed
Fixed ecpg parser to allow more than one C preprocessor command inside a declare section.
1 parent4a12e98 commit1dff2a0

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)

[8]ページ先頭

©2009-2025 Movatter.jp