Skip to content
Snippets Groups Projects
Commit 5004b99e authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Tatsuo's patch to fix alignment problems in structure for RISC machines.

parent e008c684
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment