mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99
va_copy, but available on all python platforms. Untabified a few unrelated files.
This commit is contained in:
		
							parent
							
								
									3a879e8a27
								
							
						
					
					
						commit
						f0f45142d5
					
				
					 13 changed files with 74 additions and 124 deletions
				
			
		| 
						 | 
				
			
			@ -173,15 +173,7 @@ PyBytes_FromFormatV(const char *format, va_list vargs)
 | 
			
		|||
    char *s;
 | 
			
		||||
    PyObject* string;
 | 
			
		||||
 | 
			
		||||
#ifdef VA_LIST_IS_ARRAY
 | 
			
		||||
    Py_MEMCPY(count, vargs, sizeof(va_list));
 | 
			
		||||
#else
 | 
			
		||||
#ifdef  __va_copy
 | 
			
		||||
    __va_copy(count, vargs);
 | 
			
		||||
#else
 | 
			
		||||
    count = vargs;
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
    Py_VA_COPY(count, vargs);
 | 
			
		||||
    /* step 1: figure out how large a buffer we need */
 | 
			
		||||
    for (f = format; *f; f++) {
 | 
			
		||||
        if (*f == '%') {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue