Download include/python3.11/internal/pycore_asdl.h from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 3.03 kB
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/python3.11/internal/pycore_asdl.h
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/include/python3.11/internal/pycore_asdl.h
-
curl -L -o pycore_asdl.h https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/python3.11/internal/pycore_asdl.h
3.03 kB
| extern "C" { | |
| typedef PyObject * identifier; | |
| typedef PyObject * string; | |
| typedef PyObject * object; | |
| typedef PyObject * constant; | |
| /* It would be nice if the code generated by asdl_c.py was completely | |
| independent of Python, but it is a goal the requires too much work | |
| at this stage. So, for example, I'll represent identifiers as | |
| interned Python strings. | |
| */ | |
| typedef struct { | |
| _ASDL_SEQ_HEAD | |
| } asdl_seq; | |
| typedef struct { | |
| _ASDL_SEQ_HEAD | |
| void *typed_elements[1]; | |
| } asdl_generic_seq; | |
| typedef struct { | |
| _ASDL_SEQ_HEAD | |
| PyObject *typed_elements[1]; | |
| } asdl_identifier_seq; | |
| typedef struct { | |
| _ASDL_SEQ_HEAD | |
| int typed_elements[1]; | |
| } asdl_int_seq; | |
| asdl_generic_seq *_Py_asdl_generic_seq_new(Py_ssize_t size, PyArena *arena); | |
| asdl_identifier_seq *_Py_asdl_identifier_seq_new(Py_ssize_t size, PyArena *arena); | |
| asdl_int_seq *_Py_asdl_int_seq_new(Py_ssize_t size, PyArena *arena); | |
| } | |