mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Move decl so it compiles with C89.
This commit is contained in:
		
							parent
							
								
									8d2ef875ec
								
							
						
					
					
						commit
						e20ad358fd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -22,6 +22,7 @@ PyObject * | |||
| _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) | ||||
| { | ||||
| 	PyObject *m; | ||||
| 	PyObject *path; | ||||
| 	char *lastdot, *shortname, *packagecontext, *oldcontext; | ||||
| 	dl_funcptr p; | ||||
| 
 | ||||
|  | @ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) | |||
| 		return NULL; | ||||
| 	} | ||||
| 	/* Remember the filename as the __file__ attribute */ | ||||
| 	PyObject *path; | ||||
| 	path = PyUnicode_DecodeFSDefault(pathname); | ||||
| 	if (PyModule_AddObject(m, "__file__", path) < 0) | ||||
| 		PyErr_Clear(); /* Not important enough to report */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz