Results of 1 - 4 of about 4 for pointers (0.002 sec.)
- Expat C API 12260
- Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included
...inter to a PyExpat_CAPI . PyExpat_CAPI_MAGIC The string identifying the layout of PyExpat_CAPI . Before using the function pointers in the structure, check that its magic member compares equal to this string using strcmp() and its size member is at least...sizeof ( struct PyExpat_CAPI ) . struct PyExpat_CAPI Table of function pointers exported by xml.parsers.expat . The capsule owns this structure: treat it as read-only and do not free it. Keep a strong r...sule while using the table. Check the compatibility fields as described under PyExpat_CAPI_MAGIC before using the function pointers. char * magic Interface identifier, set to PyExpat_CAPI_MAGIC . int size Size of the structure in bytes, set to sizeof(str... - https://man.mtool.work/python/3.14/c-api/pyexpat.html
- Curses C API 9246
- Curses C API curses は拡張モジュール向けに小さな C インターフェースを公開しています。 利用する側は py_curses.h ヘッダをインクルードする必要があります (このヘッダは Python.h にはデフォルトで含まれません)。 また、通常はモジュールの初期化関数内
...注釈 この構造体のエントリー数は変更されることがあります。 新しいフィールドが利用できるかどうかを確認するには、 PyCurses_API_pointers の使用を検討してください。 PyCurses_API_pointers PyCurses_API 内のアクセス可能なフィールドの数 ( 4 )。 新しいフィールドが追... - https://man.mtool.work/python/3.14/c-api/curses.html
- 複素数オブジェクト 7822
- 複素数オブジェクト Python's complex number objects are implemented as two distinct types when viewed from the C API: one is the Python object exposed to Python programs, and the other is a C structure which represents the actual complex num
...ich accept these structures as parameters and return them as results do so by value rather than dereferencing them through pointers. This is consistent throughout the API. type Py_complex The C structure which corresponds to the value portion of a Python... - https://man.mtool.work/python/3.14/c-api/complex.html
- 1. Extending Python with C or C++ 7637
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...g_ParseTuple ( args , "s" , & command )) return NULL ; It returns NULL (the error indicator for functions returning object pointers) if an error is detected in the argument list, relying on the exception set by PyArg_ParseTuple() . Otherwise the string v...ンター配列を初期化する必要があります。 static int spam_module_exec ( PyObject * m ) { static void * PySpam_API [ PySpam_API_pointers ]; PyObject * c_api_object ; /* C API ポインターの配列を初期化する */ PySpam_API [ PySpam_System_NUM ] = ( void * ) PySpam...PySpam_System_RETURN int #define PySpam_System_PROTO (const char *command) /* C API ポインターの総数 */ #define PySpam_API_pointers 1 #ifdef SPAM_MODULE /* この部分は spammodule.c のコンパイル時に使う */ static PySpam_System_RETURN PySpam_System PySpam_S... - https://man.mtool.work/python/3.14/extending/extending.html
PREV
1
NEXT