Download include/python3.9/compile.h from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 3.78 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/include/python3.9/compile.h
- Command line
-
hf download hf://camenduru/slahmr-test/include/python3.9/compile.h
-
curl -L -o compile.h https://huggingface.co/camenduru/slahmr-test/resolve/main/include/python3.9/compile.h
3.78 kB
| extern "C" { | |
| /* Public interface */ | |
| struct _node; /* Declare the existence of this type */ | |
| Py_DEPRECATED(3.9) | |
| PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *); | |
| /* XXX (ncoghlan): Unprefixed type name in a public API! */ | |
| /* bpo-39562: CO_FUTURE_ and PyCF_ constants must be kept unique. | |
| PyCF_ constants can use bits from 0x0100 to 0x10000. | |
| CO_FUTURE_ constants use bits starting at 0x20000. */ | |
| typedef struct { | |
| int cf_flags; /* bitmask of CO_xxx flags relevant to future */ | |
| int cf_feature_version; /* minor Python version (PyCF_ONLY_AST) */ | |
| } PyCompilerFlags; | |
| /* Future feature support */ | |
| typedef struct { | |
| int ff_features; /* flags set by future statements */ | |
| int ff_lineno; /* line number of last future statement */ | |
| } PyFutureFeatures; | |
| struct _mod; /* Declare the existence of this type */ | |
| PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx( | |
| struct _mod *mod, | |
| const char *filename, /* decoded from the filesystem encoding */ | |
| PyCompilerFlags *flags, | |
| int optimize, | |
| PyArena *arena); | |
| PyAPI_FUNC(PyCodeObject *) PyAST_CompileObject( | |
| struct _mod *mod, | |
| PyObject *filename, | |
| PyCompilerFlags *flags, | |
| int optimize, | |
| PyArena *arena); | |
| PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST( | |
| struct _mod * mod, | |
| const char *filename /* decoded from the filesystem encoding */ | |
| ); | |
| PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromASTObject( | |
| struct _mod * mod, | |
| PyObject *filename | |
| ); | |
| /* _Py_Mangle is defined in compile.c */ | |
| PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); | |
| PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg); | |
| PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump); | |
| typedef struct { | |
| int optimize; | |
| int ff_features; | |
| } _PyASTOptimizeState; | |
| PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena, _PyASTOptimizeState *state); | |
| } | |
| /* These definitions must match corresponding definitions in graminit.h. */ | |
| /* This doesn't need to match anything */ | |