[Python-checkins] CVS: python/dist/src/Python import.c,2.138,2.139
Guido van Rossum
python-dev@python.org
Fri, 30 Jun 2000 18:06:58 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.96,2.97 dictobject.c,2.57,2.58 funcobject.c,2.27,2.28 listobject.c,2.78,2.79 object.c,2.78,2.79 tupleobject.c,2.41,2.42
- Next message: [Python-checkins] CVS: python/dist/src/Python getargs.c,2.36,2.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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)",
- Previous message: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.96,2.97 dictobject.c,2.57,2.58 funcobject.c,2.27,2.28 listobject.c,2.78,2.79 object.c,2.78,2.79 tupleobject.c,2.41,2.42
- Next message: [Python-checkins] CVS: python/dist/src/Python getargs.c,2.36,2.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]