[Python-checkins] CVS: python/dist/src/Python dynload_next.c,2.9,2.10

Jack Jansen jackjansen@users.sourceforge.net
Thu, 06 Dec 2001 14:58:59 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv29382

Modified Files:
	dynload_next.c 
Log Message:
Don't fail on importing things with undefined references. Unfortunately we
still fail on importing modules that link with libraries that fail
their initialization code (such as windowing libraries when we don't have
access to the window server) and that is what I really wanted to fix.


Index: dynload_next.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/dynload_next.c,v
retrieving revision 2.9
retrieving revision 2.10
diff -C2 -d -r2.9 -r2.10
*** dynload_next.c	2001/11/28 20:40:47	2.9
--- dynload_next.c	2001/12/06 22:58:56	2.10
***************
*** 149,153 ****
  		}
  		if (errString == NULL) {
! 			newModule = NSLinkModule(image, pathname, TRUE);
  			if (!newModule)
  				errString = "Failure linking new module";
--- 149,154 ----
  		}
  		if (errString == NULL) {
! 			newModule = NSLinkModule(image, pathname,
! 				NSLINKMODULE_OPTION_BINDNOW|NSLINKMODULE_OPTION_RETURN_ON_ERROR);
  			if (!newModule)
  				errString = "Failure linking new module";