mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Patch #554716: Use __va_copy where available.
This commit is contained in:
parent
09c35f78fe
commit
75d2d94e0f
4 changed files with 16 additions and 0 deletions
|
@ -155,8 +155,12 @@ PyString_FromFormatV(const char *format, va_list vargs)
|
|||
|
||||
#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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue