Tatsuo's patch to fix alignment problems in structure for RISC machines.
This commit is contained in:
parent
e008c68408
commit
5004b99e92
|
@ -10,7 +10,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.50 1997/09/24 17:53:53 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.51 1997/09/25 14:11:42 thomas Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
|
@ -3274,7 +3274,8 @@ void parser_init(Oid *typev, int nargs)
|
|||
static char *
|
||||
FlattenStringList(List *list)
|
||||
{
|
||||
List *l, *lp;
|
||||
List *l;
|
||||
Value *v;
|
||||
char *s;
|
||||
char *sp;
|
||||
int nlist, len = 0;
|
||||
|
@ -3285,8 +3286,8 @@ printf( "list has %d elements\n", nlist);
|
|||
#endif
|
||||
l = list;
|
||||
while(l != NIL) {
|
||||
lp = lfirst(l);
|
||||
sp = (char *)(lp->elem.ptr_value);
|
||||
v = (Value *)lfirst(l);
|
||||
sp = v->val.str;
|
||||
l = lnext(l);
|
||||
#ifdef PARSEDEBUG
|
||||
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));
|
|||
|
||||
l = list;
|
||||
while(l != NIL) {
|
||||
lp = lfirst(l);
|
||||
sp = (char *)(lp->elem.ptr_value);
|
||||
v = (Value *)lfirst(l);
|
||||
sp = v->val.str;
|
||||
l = lnext(l);
|
||||
#ifdef PARSEDEBUG
|
||||
printf( "length of %s is %d\n", sp, strlen(sp));
|
||||
|
|
Loading…
Reference in New Issue