mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Move variable declaration up.
This commit is contained in:
		
							parent
							
								
									6e39080649
								
							
						
					
					
						commit
						20b40d3bce
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -1536,18 +1536,18 @@ PyUnicode_DecodeUTF32Stateful(const char *s, | |||
|     const unsigned char *q, *e; | ||||
|     int bo = 0;       /* assume native ordering by default */ | ||||
|     const char *errmsg = ""; | ||||
|     /* Offsets from q for retrieving bytes in the right order. */ | ||||
| #ifdef BYTEORDER_IS_LITTLE_ENDIAN | ||||
|     int iorder[] = {0, 1, 2, 3}; | ||||
| #else | ||||
|     int iorder[] = {3, 2, 1, 0}; | ||||
| #endif | ||||
|     /* On narrow builds we split characters outside the BMP into two
 | ||||
|        codepoints => count how much extra space we need. */ | ||||
| #ifndef Py_UNICODE_WIDE | ||||
|     for (i = pairs = 0; i < size/4; i++) | ||||
| 	if (((Py_UCS4 *)s)[i] >= 0x10000) | ||||
| 	    pairs++; | ||||
| #endif | ||||
|     /* Offsets from q for retrieving bytes in the right order. */ | ||||
| #ifdef BYTEORDER_IS_LITTLE_ENDIAN | ||||
|     int iorder[] = {0, 1, 2, 3}; | ||||
| #else | ||||
|     int iorder[] = {3, 2, 1, 0}; | ||||
| #endif | ||||
|     PyObject *errorHandler = NULL; | ||||
|     PyObject *exc = NULL; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald