[Python-checkins] CVS: python/dist/src/Include pythonrun.h,2.26,2.27

Barry Warsaw python-dev@python.org
Thu, 25 May 2000 16:05:39 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24773

Modified Files:
	pythonrun.h 
Log Message:
Now that standard exceptions are builtin, we don't need two phase init
or fini of the builtin module.

_PyBuiltin_Init_1 => _PyBuiltin_Init
_PyBuiltin_Init_2 removed
_PyBuiltin_Fini_1 removed
_PyBuiltin_Fini_2 removed

These functions are used to initialize the _exceptions module.

init_exceptions added
fini_exceptions added


Index: pythonrun.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythonrun.h,v
retrieving revision 2.26
retrieving revision 2.27
diff -C2 -r2.26 -r2.27
*** pythonrun.h	1998/12/04 18:48:18	2.26
--- pythonrun.h	2000/05/25 23:05:36	2.27
***************
*** 88,101 ****
  
  /* Internal -- various one-time initializations */
! 
! DL_IMPORT(PyObject *) _PyBuiltin_Init_1 Py_PROTO((void));
! DL_IMPORT(void) _PyBuiltin_Init_2 Py_PROTO((PyObject *));
  DL_IMPORT(PyObject *) _PySys_Init Py_PROTO((void));
  DL_IMPORT(void) _PyImport_Init Py_PROTO((void));
  
  /* Various internal finalizers */
! DL_IMPORT(void) _PyImport_Fini Py_PROTO((void));
! DL_IMPORT(void) _PyBuiltin_Fini_1 Py_PROTO((void));
! DL_IMPORT(void) _PyBuiltin_Fini_2 Py_PROTO((void));
  DL_IMPORT(void) PyMethod_Fini Py_PROTO((void));
  DL_IMPORT(void) PyFrame_Fini Py_PROTO((void));
--- 88,98 ----
  
  /* Internal -- various one-time initializations */
! DL_IMPORT(PyObject *) _PyBuiltin_Init Py_PROTO((void));
  DL_IMPORT(PyObject *) _PySys_Init Py_PROTO((void));
  DL_IMPORT(void) _PyImport_Init Py_PROTO((void));
+ DL_IMPORT(void) init_exceptions Py_PROTO((void));
  
  /* Various internal finalizers */
! DL_IMPORT(void) fini_exceptions Py_PROTO((void));
  DL_IMPORT(void) PyMethod_Fini Py_PROTO((void));
  DL_IMPORT(void) PyFrame_Fini Py_PROTO((void));