[Python-checkins] CVS: python/dist/src/Python import.c,2.138,2.139

Guido van Rossum python-dev@python.org
2000年6月30日 18:06:58 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24571
Modified Files:
	import.c 
Log Message:
Jack Jansen, Mac patch:
Include stat.h if needed; different Mac filename compare
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.138
retrieving revision 2.139
diff -C2 -r2.138 -r2.139
*** import.c	2000年06月30日 23:58:06	2.138
--- import.c	2000年07月01日 01:06:56	2.139
***************
*** 40,43 ****
--- 40,45 ----
 #ifndef DONT_HAVE_SYS_STAT_H
 #include <sys/stat.h>
+ #elif defined(HAVE_STAT_H)
+ #include <stat.h>
 #endif
 
***************
*** 1130,1135 ****
 		return 0;
 	}
! 	p2cstr(fss.name);
! 	if ( strncmp(name, (char *)fss.name, namelen) != 0 ) {
 		PyErr_Format(PyExc_NameError,
 		 "Case mismatch for module name %.100s\n(filename %.300s)",
--- 1132,1136 ----
 		return 0;
 	}
! 	if ( namelen > fss.name[0] || strncmp(name, (char *)fss.name+1, namelen) != 0 ) {
 		PyErr_Format(PyExc_NameError,
 		 "Case mismatch for module name %.100s\n(filename %.300s)",

AltStyle によって変換されたページ (->オリジナル) /