Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24400:81ca6ca5c307 legacy-trunk
Patch #554716: Use __va_copy where available.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 28 Jul 2002 10:23:27 +0000 |
| parents | 1598a1e473e2 |
| children | d6ec4dab927e |
line wrap: on
line diff
--- a/Objects/stringobject.c Sun Jul 28 09:57:45 2002 +0000 +++ b/Objects/stringobject.c Sun Jul 28 10:23:27 2002 +0000 @@ -156,8 +156,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 == '%') {
