mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Tatsuo's patch to fix alignment problems in structure for RISC machines.
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
				
			|||||||
 *
 | 
					 *
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * IDENTIFICATION
 | 
					 * 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
 | 
					 * HISTORY
 | 
				
			||||||
 *	  AUTHOR			DATE			MAJOR EVENT
 | 
					 *	  AUTHOR			DATE			MAJOR EVENT
 | 
				
			||||||
@@ -3274,7 +3274,8 @@ void parser_init(Oid *typev, int nargs)
 | 
				
			|||||||
static char *
 | 
					static char *
 | 
				
			||||||
FlattenStringList(List *list)
 | 
					FlattenStringList(List *list)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	List *l, *lp;
 | 
						List *l;
 | 
				
			||||||
 | 
						Value *v;
 | 
				
			||||||
	char *s;
 | 
						char *s;
 | 
				
			||||||
	char *sp;
 | 
						char *sp;
 | 
				
			||||||
	int nlist, len = 0;
 | 
						int nlist, len = 0;
 | 
				
			||||||
@@ -3285,8 +3286,8 @@ printf( "list has %d elements\n", nlist);
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
	l = list;
 | 
						l = list;
 | 
				
			||||||
	while(l != NIL) {
 | 
						while(l != NIL) {
 | 
				
			||||||
		lp = lfirst(l);
 | 
							v = (Value *)lfirst(l);
 | 
				
			||||||
		sp = (char *)(lp->elem.ptr_value);
 | 
							sp = v->val.str;
 | 
				
			||||||
		l = lnext(l);
 | 
							l = lnext(l);
 | 
				
			||||||
#ifdef PARSEDEBUG
 | 
					#ifdef PARSEDEBUG
 | 
				
			||||||
printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
 | 
					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;
 | 
						l = list;
 | 
				
			||||||
	while(l != NIL) {
 | 
						while(l != NIL) {
 | 
				
			||||||
		lp = lfirst(l);
 | 
							v = (Value *)lfirst(l);
 | 
				
			||||||
		sp = (char *)(lp->elem.ptr_value);
 | 
							sp = v->val.str;
 | 
				
			||||||
		l = lnext(l);
 | 
							l = lnext(l);
 | 
				
			||||||
#ifdef PARSEDEBUG
 | 
					#ifdef PARSEDEBUG
 | 
				
			||||||
printf( "length of %s is %d\n", sp, strlen(sp));
 | 
					printf( "length of %s is %d\n", sp, strlen(sp));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user