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
0f84a349
Kaydet (Commit)
0f84a349
authored
Agu 06, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added handling for Mac code resource modules (Jack Jansen).
üst
11274879
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
import.c
Python/import.c
+10
-0
No files found.
Python/import.c
Dosyayı görüntüle @
0f84a349
...
@@ -906,6 +906,12 @@ find_module(name, path, buf, buflen, p_fp)
...
@@ -906,6 +906,12 @@ find_module(name, path, buf, buflen, p_fp)
return
&
resfiledescr
;
return
&
resfiledescr
;
}
}
if
(
PyMac_FindCodeResourceModule
((
PyStringObject
*
)
v
,
name
,
buf
))
{
static
struct
filedescr
resfiledescr
=
{
""
,
""
,
PY_CODERESOURCE
};
return
&
resfiledescr
;
}
#endif
#endif
if
(
len
>
0
&&
buf
[
len
-
1
]
!=
SEP
if
(
len
>
0
&&
buf
[
len
-
1
]
!=
SEP
#ifdef ALTSEP
#ifdef ALTSEP
...
@@ -1185,6 +1191,9 @@ load_module(name, fp, buf, type)
...
@@ -1185,6 +1191,9 @@ load_module(name, fp, buf, type)
case
PY_RESOURCE
:
case
PY_RESOURCE
:
m
=
PyMac_LoadResourceModule
(
name
,
buf
);
m
=
PyMac_LoadResourceModule
(
name
,
buf
);
break
;
break
;
case
PY_CODERESOURCE
:
m
=
PyMac_LoadCodeResourceModule
(
name
,
buf
);
break
;
#endif
#endif
case
PKG_DIRECTORY
:
case
PKG_DIRECTORY
:
...
@@ -2306,6 +2315,7 @@ initimp()
...
@@ -2306,6 +2315,7 @@ initimp()
if
(
setint
(
d
,
"PKG_DIRECTORY"
,
PKG_DIRECTORY
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"PKG_DIRECTORY"
,
PKG_DIRECTORY
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"C_BUILTIN"
,
C_BUILTIN
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"C_BUILTIN"
,
C_BUILTIN
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"PY_FROZEN"
,
PY_FROZEN
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"PY_FROZEN"
,
PY_FROZEN
)
<
0
)
goto
failure
;
if
(
setint
(
d
,
"PY_CODERESOURCE"
,
PY_CODERESOURCE
)
<
0
)
goto
failure
;
failure
:
failure
:
;
;
...
...
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