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
574b1279
Kaydet (Commit)
574b1279
authored
Ock 02, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove traces of Py_InitModule*.
üst
aa672ebe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
moduleobject.c
Objects/moduleobject.c
+2
-2
example.c
PC/example_nt/example.c
+14
-2
No files found.
Objects/moduleobject.c
Dosyayı görüntüle @
574b1279
...
...
@@ -91,9 +91,9 @@ PyModule_Create2(struct PyModuleDef* module, int module_api_version)
This is a bit of a hack: when the shared library is loaded,
the module name is "package.module", but the module calls
Py
_InitModul
e*() with just "module" for the name. The shared
Py
Module_Creat
e*() with just "module" for the name. The shared
library loader squirrels away the true name of the module in
_Py_PackageContext, and Py
_InitModul
e*() will substitute this
_Py_PackageContext, and Py
Module_Creat
e*() will substitute this
(if the name actually matches).
*/
if
(
_Py_PackageContext
!=
NULL
)
{
...
...
PC/example_nt/example.c
Dosyayı görüntüle @
574b1279
...
...
@@ -13,8 +13,20 @@ static PyMethodDef example_methods[] = {
{
NULL
,
NULL
}
};
static
struct
PyModuleDef
examplemodule
=
{
PyModuleDef_HEAD_INIT
,
"example"
,
"example module doc string"
,
-
1
,
example_methods
,
NULL
,
NULL
,
NULL
,
NULL
};
PyMODINIT_FUNC
init
example
(
void
)
PyInit_
example
(
void
)
{
Py_InitModule
(
"example"
,
example_methods
);
return
PyModule_Create
(
&
examplemodule
);
}
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