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

Commit1349839

Browse files
committed
It seems the YYLLOC_DEFAULT macro recommended by the Bison 1.875 manual
just doesn't work with Bison 2.0 ... fix it ...
1 parent35b5509 commit1349839

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎src/backend/parser/gram.y

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.535 2006/03/1422:48:20 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.536 2006/03/1423:03:20 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -63,7 +63,12 @@
6363

6464
/* Location tracking support --- simpler than bison's default*/
6565
#defineYYLLOC_DEFAULT(Current, Rhs, N) \
66-
Current = Rhs[1];
66+
do { \
67+
if (N) \
68+
(Current) = (Rhs)[1]; \
69+
else \
70+
(Current) = (Rhs)[0]; \
71+
}while (0)
6772

6873
extern List *parsetree;/* final parse result is delivered here*/
6974

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp