[Python-checkins] python/dist/src/Objects abstract.c,2.93.6.4,2.93.6.5 stringobject.c,2.147.6.5,2.147.6.6

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 28 Jul 2002 03:21:33 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv20756/Objects

Modified Files:
      Tag: release22-maint
	abstract.c stringobject.c 
Log Message:
Patch #554716: Use __va_copy where available.


Index: abstract.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v
retrieving revision 2.93.6.4
retrieving revision 2.93.6.5
diff -C2 -d -r2.93.6.4 -r2.93.6.5
*** abstract.c	18 Apr 2002 04:40:05 -0000	2.93.6.4
--- abstract.c	28 Jul 2002 10:21:30 -0000	2.93.6.5
***************
*** 1794,1798 ****
--- 1794,1802 ----
  	memcpy(countva, va, sizeof(va_list));
  #else
+ #ifdef __va_copy
+ 	__va_copy(countva, va);
+ #else
  	countva = va;
+ #endif
  #endif
  

Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.147.6.5
retrieving revision 2.147.6.6
diff -C2 -d -r2.147.6.5 -r2.147.6.6
*** stringobject.c	13 May 2002 09:11:44 -0000	2.147.6.5
--- stringobject.c	28 Jul 2002 10:21:31 -0000	2.147.6.6
***************
*** 175,179 ****
--- 175,183 ----
  	memcpy(count, vargs, sizeof(va_list));
  #else
+ #ifdef  __va_copy
+ 	__va_copy(count, vargs);
+ #else
  	count = vargs;
+ #endif
  #endif
  	/* step 1: figure out how large a buffer we need */