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
6b06da53
Kaydet (Commit)
6b06da53
authored
Agu 17, 2010
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused functions _PyImport_FindModule and _PyImport_IsScript
üst
0e5a41b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
import.h
Include/import.h
+0
-3
import.c
Python/import.c
+0
-16
No files found.
Include/import.h
Dosyayı görüntüle @
6b06da53
...
...
@@ -38,9 +38,6 @@ PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
#define _PyImport_ReleaseLock() 1
#endif
PyAPI_FUNC
(
struct
filedescr
*
)
_PyImport_FindModule
(
const
char
*
,
PyObject
*
,
char
*
,
size_t
,
FILE
**
,
PyObject
**
);
PyAPI_FUNC
(
int
)
_PyImport_IsScript
(
struct
filedescr
*
);
PyAPI_FUNC
(
void
)
_PyImport_ReInitLock
(
void
);
PyAPI_FUNC
(
PyObject
*
)
_PyImport_FindExtension
(
char
*
,
char
*
);
...
...
Python/import.c
Dosyayı görüntüle @
6b06da53
...
...
@@ -1790,22 +1790,6 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
return
fdp
;
}
/* Helpers for main.c
* Find the source file corresponding to a named module
*/
struct
filedescr
*
_PyImport_FindModule
(
const
char
*
name
,
PyObject
*
path
,
char
*
buf
,
size_t
buflen
,
FILE
**
p_fp
,
PyObject
**
p_loader
)
{
return
find_module
((
char
*
)
name
,
(
char
*
)
name
,
path
,
buf
,
buflen
,
p_fp
,
p_loader
);
}
PyAPI_FUNC
(
int
)
_PyImport_IsScript
(
struct
filedescr
*
fd
)
{
return
fd
->
type
==
PY_SOURCE
||
fd
->
type
==
PY_COMPILED
;
}
/* case_ok(char* buf, Py_ssize_t len, Py_ssize_t namelen, char* name)
* The arguments here are tricky, best shown by example:
* /a/b/c/d/e/f/g/h/i/j/k/some_long_module_name.py\0
...
...
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