Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4d1b3b92
Kaydet (Commit)
4d1b3b92
authored
Şub 13, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added DJGPP version of check_case(), by Pit Scrorpion (Hans Nowak).
(BTW, the Mac version was by Jack Jansen.)
üst
b666c15c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
import.c
Python/import.c
+28
-0
No files found.
Python/import.c
Dosyayı görüntüle @
4d1b3b92
...
@@ -1005,6 +1005,34 @@ check_case(char *buf, int len, int namelen, char *name)
...
@@ -1005,6 +1005,34 @@ check_case(char *buf, int len, int namelen, char *name)
}
}
#endif
/* macintosh */
#endif
/* macintosh */
#ifdef DJGPP
static
int
check_case
(
char
*
buf
,
int
len
,
int
namelen
,
char
*
name
)
{
struct
ffblk
ffblk
;
int
done
;
if
(
getenv
(
"PYTHONCASEOK"
)
!=
NULL
)
return
1
;
done
=
findfirst
(
buf
,
&
ffblk
,
FA_ARCH
|
FA_RDONLY
|
FA_HIDDEN
);
if
(
done
)
{
PyErr_Format
(
PyExc_NameError
,
"Can't find file for module %.100s
\n
(filename %.300s)"
,
name
,
buf
);
return
0
;
}
if
(
strncmp
(
ffblk
.
ff_name
,
name
,
namelen
)
!=
0
)
{
strcpy
(
buf
+
len
-
namelen
,
ffblk
.
ff_name
);
PyErr_Format
(
PyExc_NameError
,
"Case mismatch for module name %.100s
\n
(filename %.300s)"
,
name
,
buf
);
return
0
;
}
return
1
;
}
#endif
#endif CHECK_IMPORT_CASE
#endif CHECK_IMPORT_CASE
#ifdef HAVE_STAT
#ifdef HAVE_STAT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment