mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	New style interface via pointer variable.
This commit is contained in:
		
							parent
							
								
									cfd0a22252
								
							
						
					
					
						commit
						7c46a920ae
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		|  | @ -39,11 +39,12 @@ static unsigned char M___hello__[] = { | |||
| 	63, | ||||
| }; | ||||
| 
 | ||||
| struct frozen { | ||||
| 	char *name; | ||||
| 	unsigned char *code; | ||||
| 	int size; | ||||
| } _PyImport_FrozenModules[] = { | ||||
| static struct _frozen _PyImport_FrozenModules[] = { | ||||
| 	{"__hello__", M___hello__, 81}, | ||||
| 	{0, 0, 0} /* sentinel */ | ||||
| }; | ||||
| 
 | ||||
| /* Embedding apps may change this pointer to point to their favorite
 | ||||
|    collection of frozen modules: */ | ||||
| 
 | ||||
| struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum