CoolFace
Apppublic

vidya7732/AI_Doctor_LLM_GenModel

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
moduleobject.h91 linesDownload Raw Back to include
1 2/* Module object interface */3 4#ifndef Py_MODULEOBJECT_H5#define Py_MODULEOBJECT_H6#ifdef __cplusplus7extern "C" {8#endif9 10PyAPI_DATA(PyTypeObject) PyModule_Type;11 12#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)13#define PyModule_CheckExact(op) Py_IS_TYPE(op, &PyModule_Type)14 15#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0303000016PyAPI_FUNC(PyObject *) PyModule_NewObject(17    PyObject *name18    );19#endif20PyAPI_FUNC(PyObject *) PyModule_New(21    const char *name            /* UTF-8 encoded string */22    );23PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);24#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0303000025PyAPI_FUNC(PyObject *) PyModule_GetNameObject(PyObject *);26#endif27PyAPI_FUNC(const char *) PyModule_GetName(PyObject *);28Py_DEPRECATED(3.2) PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);29PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *);30#ifndef Py_LIMITED_API31PyAPI_FUNC(void) _PyModule_Clear(PyObject *);32PyAPI_FUNC(void) _PyModule_ClearDict(PyObject *);33PyAPI_FUNC(int) _PyModuleSpec_IsInitializing(PyObject *);34#endif35PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);36PyAPI_FUNC(void*) PyModule_GetState(PyObject*);37 38#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0305000039/* New in 3.5 */40PyAPI_FUNC(PyObject *) PyModuleDef_Init(struct PyModuleDef*);41PyAPI_DATA(PyTypeObject) PyModuleDef_Type;42#endif43 44typedef struct PyModuleDef_Base {45  PyObject_HEAD46  PyObject* (*m_init)(void);47  Py_ssize_t m_index;48  PyObject* m_copy;49} PyModuleDef_Base;50 51#define PyModuleDef_HEAD_INIT { \52    PyObject_HEAD_INIT(NULL)    \53    NULL, /* m_init */          \54    0,    /* m_index */         \55    NULL, /* m_copy */          \56  }57 58struct PyModuleDef_Slot;59#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0305000060/* New in 3.5 */61typedef struct PyModuleDef_Slot{62    int slot;63    void *value;64} PyModuleDef_Slot;65 66#define Py_mod_create 167#define Py_mod_exec 268 69#ifndef Py_LIMITED_API70#define _Py_mod_LAST_SLOT 271#endif72 73#endif /* New in 3.5 */74 75typedef struct PyModuleDef{76  PyModuleDef_Base m_base;77  const char* m_name;78  const char* m_doc;79  Py_ssize_t m_size;80  PyMethodDef *m_methods;81  struct PyModuleDef_Slot* m_slots;82  traverseproc m_traverse;83  inquiry m_clear;84  freefunc m_free;85} PyModuleDef;86 87#ifdef __cplusplus88}89#endif90#endif /* !Py_MODULEOBJECT_H */91