[Python-checkins] python/dist/src/Objects abstract.c,2.103,2.104 stringobject.c,2.170,2.171
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sun, 28 Jul 2002 03:23:29 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv20999/Objects
Modified Files:
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.103
retrieving revision 2.104
diff -C2 -d -r2.103 -r2.104
*** abstract.c 6 Jun 2002 15:45:38 -0000 2.103
--- abstract.c 28 Jul 2002 10:23:27 -0000 2.104
***************
*** 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.170
retrieving revision 2.171
diff -C2 -d -r2.170 -r2.171
*** stringobject.c 17 Jul 2002 16:30:38 -0000 2.170
--- stringobject.c 28 Jul 2002 10:23:27 -0000 2.171
***************
*** 157,161 ****
--- 157,165 ----
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 */