[Python-checkins] CVS: python/dist/src/Python importdl.c,2.62,2.63

Guido van Rossum guido@cnri.reston.va.us
Mon, 20 Dec 1999 16:20:45 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Python
In directory eric:/projects/python/develop/guido/src/Python

Modified Files:
	importdl.c 
Log Message:
Moved most of the platform-specific code to dynload_<platform>.c files.
(A few nite remain, these will probably disappear soon.)

This is part of a set of patches by Greg Stein.


Index: importdl.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Python/importdl.c,v
retrieving revision 2.62
retrieving revision 2.63
diff -C2 -r2.62 -r2.63
*** importdl.c	1999/11/16 15:54:16	2.62
--- importdl.c	1999/12/20 21:20:42	2.63
***************
*** 34,43 ****
  
  #include "Python.h"
- 
- #ifdef HAVE_SYS_PARAM_H
- /* osdefs.h will define MAXPATHLEN if it's not already defined. */
- #include <sys/param.h>
- #endif
- #include "osdefs.h"
  #include "importdl.h"
  
[...1154 lines suppressed...]
- 		beos_nuke_dyn( py_id );
- 		retval = PyDict_DelItemString( beos_dyn_images, name );
- 	}
- 
- 	py_id = PyInt_FromLong( (long)id );
- 	if( py_id ) {
- 		retval = PyDict_SetItemString( beos_dyn_images, name, py_id );
- 	}
- 
- #ifdef WITH_THREAD
- 	PyThread_release_lock( beos_dyn_lock );
- #endif
- }
- 
- #endif /* __BEOS__ */
--- 161,164 ----
  	Py_INCREF(m);
  	return m;
! #endif /* HAVE_DYNAMIC_LOADING */
  }