mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
replace usage of Py_VA_COPY with the (C99) standard va_copy
This commit is contained in:
parent
ec2319c46d
commit
0c21214f3e
8 changed files with 11 additions and 71 deletions
|
@ -2874,9 +2874,8 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
|
|||
writer.min_length = strlen(format) + 100;
|
||||
writer.overallocate = 1;
|
||||
|
||||
/* va_list may be an array (of 1 item) on some platforms (ex: AMD64).
|
||||
Copy it to be able to pass a reference to a subfunction. */
|
||||
Py_VA_COPY(vargs2, vargs);
|
||||
// Copy varags to be able to pass a reference to a subfunction.
|
||||
va_copy(vargs2, vargs);
|
||||
|
||||
for (f = format; *f; ) {
|
||||
if (*f == '%') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue