Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24399:608735dd2ebc 2.2
Patch #554716: Use __va_copy where available.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 28 Jul 2002 10:21:31 +0000 |
| parents | ab52312f82c7 |
| children | 9348fa20f214 |
line wrap: on
line diff
--- a/Objects/stringobject.c Fri Jul 26 15:41:59 2002 +0000 +++ b/Objects/stringobject.c Sun Jul 28 10:21:31 2002 +0000 @@ -174,8 +174,12 @@ #ifdef VA_LIST_IS_ARRAY 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 */ for (f = format; *f; f++) { if (*f == '%') {
