[Python-checkins] CVS: python/dist/src/Python import.c,2.153,2.154
Guido van Rossum
python-dev@python.org
Mon, 13 Nov 2000 09:26:35 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/PC/utils makesrc.c,1.2,NONE makesrc.lk1,1.2,NONE makesrc.mk1,1.2,NONE makesrc.tgt,1.2,NONE utils.mk,1.2,NONE utils.wpj,1.2,NONE
- Next message: [Python-checkins] CVS: python/dist/src/PC config.h,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19962
Modified Files:
import.c
Log Message:
Rip out DOS-8x3 support.
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.153
retrieving revision 2.154
diff -C2 -r2.153 -r2.154
*** import.c 2000/10/03 16:02:05 2.153
--- import.c 2000/11/13 17:26:32 2.154
***************
*** 958,978 ****
)
buf[len++] = SEP;
! #ifdef IMPORT_8x3_NAMES
! /* see if we are searching in directory dos-8x3 */
! if (len > 7 && !strncmp(buf + len - 8, "dos-8x3", 7)){
! int j;
! char ch; /* limit name to 8 lower-case characters */
! for (j = 0; (ch = name[j]) && j < 8; j++)
! if (isupper(ch))
! buf[len++] = tolower(ch);
! else
! buf[len++] = ch;
! }
! else /* Not in dos-8x3, use the full name */
! #endif
! {
! strcpy(buf+len, name);
! len += namelen;
! }
#ifdef HAVE_STAT
if (stat(buf, &statbuf) == 0) {
--- 958,963 ----
)
buf[len++] = SEP;
! strcpy(buf+len, name);
! len += namelen;
#ifdef HAVE_STAT
if (stat(buf, &statbuf) == 0) {
- Previous message: [Python-checkins] CVS: python/dist/src/PC/utils makesrc.c,1.2,NONE makesrc.lk1,1.2,NONE makesrc.mk1,1.2,NONE makesrc.tgt,1.2,NONE utils.mk,1.2,NONE utils.wpj,1.2,NONE
- Next message: [Python-checkins] CVS: python/dist/src/PC config.h,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]