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
40f470f7
Kaydet (Commit)
40f470f7
authored
May 23, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
moved verbose decl to pydebug.h; added dos_8x3 feature
üst
f857a6be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
import.c
Python/import.c
+18
-2
No files found.
Python/import.c
Dosyayı görüntüle @
40f470f7
...
...
@@ -26,6 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "allobjects.h"
/* XXX Some of the following are duplicate with allobjects.h... */
#include "node.h"
#include "token.h"
#include "graminit.h"
...
...
@@ -45,8 +46,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "macglue.h"
#endif
extern
int
verbose
;
/* Defined in pythonrun.c */
extern
long
getmtime
();
/* In getmtime.c */
/* Magic word to reject .pyc files generated by other Python versions */
...
...
@@ -452,8 +451,25 @@ find_module(name, path, buf, buflen, p_fp)
#endif
if
(
len
>
0
&&
buf
[
len
-
1
]
!=
SEP
)
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 eight 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 */
strcpy
(
buf
+
len
,
name
);
len
+=
namelen
;
}
#else
strcpy
(
buf
+
len
,
name
);
len
+=
namelen
;
#endif
for
(
fdp
=
import_filetab
;
fdp
->
suffix
!=
NULL
;
fdp
++
)
{
strcpy
(
buf
+
len
,
fdp
->
suffix
);
if
(
verbose
>
1
)
...
...
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