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
81c447f4
Kaydet (Commit)
81c447f4
authored
May 06, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
turn this into a macro
üst
608d8bcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
39 deletions
+2
-39
socketmodule.c
Modules/socketmodule.c
+0
-8
socketmodule.h
Modules/socketmodule.h
+2
-31
No files found.
Modules/socketmodule.c
Dosyayı görüntüle @
81c447f4
...
...
@@ -4146,14 +4146,6 @@ PySocketModule_APIObject PySocketModuleAPI =
NULL
};
PySocketModule_APIObject
*
PySocketModule_ImportModuleAndAPI
(
void
)
{
void
*
api
;
api
=
PyCapsule_Import
(
PySocket_CAPSULE_NAME
,
1
);;
return
(
PySocketModule_APIObject
*
)
api
;
}
/* Initialize the _socket module.
...
...
Modules/socketmodule.h
Dosyayı görüntüle @
81c447f4
...
...
@@ -190,38 +190,9 @@ typedef struct {
PyObject
*
error
;
}
PySocketModule_APIObject
;
/* XXX The net effect of the following appears to be to define a function
XXX named PySocketModule_APIObject in _ssl.c. It's unclear why it isn't
XXX defined there directly.
#define PySocketModule_ImportModuleAndAPI() PyCapsule_Import(PySocket_CAPSULE_NAME, 1)
>>> It's defined here because other modules might also want to use
>>> the C API.
*/
#ifndef PySocket_BUILDING_SOCKET
/* --- C API ----------------------------------------------------*/
/* Interfacestructure to C API for other modules.
Call PySocketModule_ImportModuleAndAPI() to initialize this
structure. After that usage is simple:
if (!PyArg_ParseTuple(args, "O!|zz:ssl",
&PySocketModule.Sock_Type, (PyObject*)&Sock,
&key_file, &cert_file))
return NULL;
...
*/
/* You *must* call this before using any of the functions in
PySocketModule and check its outcome; otherwise all accesses will
result in a segfault. Returns 0 on success. */
PyAPI_FUNC
(
PySocketModule_APIObject
*
)
PySocketModule_ImportModuleAndAPI
(
void
);
#endif
/* !PySocket_BUILDING_SOCKET */
#ifdef __cplusplus
#ifdef __cpluplus
}
#endif
#endif
/* !Py__SOCKET_H */
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