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
eec47f35
Kaydet (Commit)
eec47f35
authored
Agu 23, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport fix of #1752175.
üst
7d108b88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ast.c
Python/ast.c
+2
-0
import.c
Python/import.c
+5
-1
No files found.
Python/ast.c
Dosyayı görüntüle @
eec47f35
...
@@ -3115,6 +3115,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding)
...
@@ -3115,6 +3115,7 @@ decode_utf8(const char **sPtr, const char *end, char* encoding)
#endif
#endif
}
}
#ifdef Py_USING_UNICODE
static
PyObject
*
static
PyObject
*
decode_unicode
(
const
char
*
s
,
size_t
len
,
int
rawmode
,
const
char
*
encoding
)
decode_unicode
(
const
char
*
s
,
size_t
len
,
int
rawmode
,
const
char
*
encoding
)
{
{
...
@@ -3176,6 +3177,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
...
@@ -3176,6 +3177,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
Py_XDECREF
(
u
);
Py_XDECREF
(
u
);
return
v
;
return
v
;
}
}
#endif
/* s is a Python string literal, including the bracketing quote characters,
/* s is a Python string literal, including the bracketing quote characters,
* and r &/or u prefixes (if any), and embedded escape sequences (if any).
* and r &/or u prefixes (if any), and embedded escape sequences (if any).
...
...
Python/import.c
Dosyayı görüntüle @
eec47f35
...
@@ -119,15 +119,19 @@ _PyImport_Init(void)
...
@@ -119,15 +119,19 @@ _PyImport_Init(void)
/* prepare _PyImport_Filetab: copy entries from
/* prepare _PyImport_Filetab: copy entries from
_PyImport_DynLoadFiletab and _PyImport_StandardFiletab.
_PyImport_DynLoadFiletab and _PyImport_StandardFiletab.
*/
*/
#ifdef HAVE_DYNAMIC_LOADING
for
(
scan
=
_PyImport_DynLoadFiletab
;
scan
->
suffix
!=
NULL
;
++
scan
)
for
(
scan
=
_PyImport_DynLoadFiletab
;
scan
->
suffix
!=
NULL
;
++
scan
)
++
countD
;
++
countD
;
#endif
for
(
scan
=
_PyImport_StandardFiletab
;
scan
->
suffix
!=
NULL
;
++
scan
)
for
(
scan
=
_PyImport_StandardFiletab
;
scan
->
suffix
!=
NULL
;
++
scan
)
++
countS
;
++
countS
;
filetab
=
PyMem_NEW
(
struct
filedescr
,
countD
+
countS
+
1
);
filetab
=
PyMem_NEW
(
struct
filedescr
,
countD
+
countS
+
1
);
if
(
filetab
==
NULL
)
if
(
filetab
==
NULL
)
Py_FatalError
(
"Can't initialize import file table."
);
Py_FatalError
(
"Can't initialize import file table."
);
#ifdef HAVE_DYNAMIC_LOADING
memcpy
(
filetab
,
_PyImport_DynLoadFiletab
,
memcpy
(
filetab
,
_PyImport_DynLoadFiletab
,
countD
*
sizeof
(
struct
filedescr
));
countD
*
sizeof
(
struct
filedescr
));
#endif
memcpy
(
filetab
+
countD
,
_PyImport_StandardFiletab
,
memcpy
(
filetab
+
countD
,
_PyImport_StandardFiletab
,
countS
*
sizeof
(
struct
filedescr
));
countS
*
sizeof
(
struct
filedescr
));
filetab
[
countD
+
countS
].
suffix
=
NULL
;
filetab
[
countD
+
countS
].
suffix
=
NULL
;
...
@@ -1366,7 +1370,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
...
@@ -1366,7 +1370,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
saved_namelen
=
namelen
;
saved_namelen
=
namelen
;
#endif
/* PYOS_OS2 */
#endif
/* PYOS_OS2 */
for
(
fdp
=
_PyImport_Filetab
;
fdp
->
suffix
!=
NULL
;
fdp
++
)
{
for
(
fdp
=
_PyImport_Filetab
;
fdp
->
suffix
!=
NULL
;
fdp
++
)
{
#if defined(PYOS_OS2)
#if defined(PYOS_OS2)
&& defined(HAVE_DYNAMIC_LOADING)
/* OS/2 limits DLLs to 8 character names (w/o
/* OS/2 limits DLLs to 8 character names (w/o
extension)
extension)
* so if the name is longer than that and its a
* so if the name is longer than that and its a
...
...
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