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

Commit5004b99

Browse files
author
Thomas G. Lockhart
committed
Tatsuo's patch to fix alignment problems in structure for RISC machines.
1 parente008c68 commit5004b99

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/backend/parser/gram.y

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.50 1997/09/24 17:53:53 thomas Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.51 1997/09/25 14:11:42 thomas Exp $
1414
*
1515
* HISTORY
1616
* AUTHORDATEMAJOR EVENT
@@ -3274,7 +3274,8 @@ void parser_init(Oid *typev, int nargs)
32743274
static char *
32753275
FlattenStringList(List *list)
32763276
{
3277-
List *l, *lp;
3277+
List *l;
3278+
Value *v;
32783279
char *s;
32793280
char *sp;
32803281
int nlist, len = 0;
@@ -3285,8 +3286,8 @@ printf( "list has %d elements\n", nlist);
32853286
#endif
32863287
l = list;
32873288
while(l != NIL) {
3288-
lp = lfirst(l);
3289-
sp =(char *)(lp->elem.ptr_value);
3289+
v =(Value *)lfirst(l);
3290+
sp =v->val.str;
32903291
l = lnext(l);
32913292
#ifdef PARSEDEBUG
32923293
printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
@@ -3300,8 +3301,8 @@ printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
33003301

33013302
l = list;
33023303
while(l != NIL) {
3303-
lp = lfirst(l);
3304-
sp =(char *)(lp->elem.ptr_value);
3304+
v =(Value *)lfirst(l);
3305+
sp =v->val.str;
33053306
l = lnext(l);
33063307
#ifdef PARSEDEBUG
33073308
printf( "length of %s is %d\n", sp, strlen(sp));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp