mirror of
				https://github.com/python/cpython.git
				synced 2025-10-28 12:15:13 +00:00 
			
		
		
		
	 7f14f0d8a0
			
		
	
	
		7f14f0d8a0
		
	
	
	
	
		
			
			svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
  r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
  Recorded merge of revisions 81029 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk
  ........
    r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
    Untabify C files. Will watch buildbots.
  ........
................
		
	
			
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			856 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			856 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * This is the entry point for the Python 2.3 core DLL.
 | |
|  */
 | |
| 
 | |
| #define NULL 0
 | |
| 
 | |
| #define REF(s)  extern void s(); void *____ref_##s = &s;
 | |
| 
 | |
| /* Make references to imported symbols to pull them from static library */
 | |
| REF(Py_Main);
 | |
| 
 | |
| #include <signal.h>
 | |
| 
 | |
| extern int _CRT_init(void);
 | |
| extern void _CRT_term(void);
 | |
| extern void __ctordtorInit(void);
 | |
| extern void __ctordtorTerm(void);
 | |
| 
 | |
| unsigned long _DLL_InitTerm(unsigned long mod_handle, unsigned long flag)
 | |
| {
 | |
|     switch (flag)
 | |
|     {
 | |
|         case 0:
 | |
|             if (_CRT_init())
 | |
|                 return 0;
 | |
|             __ctordtorInit();
 | |
| 
 | |
|             /* Ignore fatal signals */
 | |
|             signal(SIGSEGV, SIG_IGN);
 | |
|             signal(SIGFPE, SIG_IGN);
 | |
| 
 | |
|             return 1;
 | |
| 
 | |
|         case 1:
 | |
|             __ctordtorTerm();
 | |
|             _CRT_term();
 | |
|             return 1;
 | |
| 
 | |
|         default:
 | |
|             return 0;
 | |
|     }
 | |
| }
 |