mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Implement tree-shaking for Python sources
This commit is contained in:
parent
81287b7ec0
commit
44c87b83ff
110 changed files with 899 additions and 1922 deletions
6
third_party/python/Python/Python-ast.c
generated
vendored
6
third_party/python/Python/Python-ast.c
generated
vendored
|
@ -17,8 +17,11 @@
|
|||
#include "third_party/python/Include/pyerrors.h"
|
||||
#include "third_party/python/Include/pythonrun.h"
|
||||
#include "third_party/python/Include/tupleobject.h"
|
||||
#include "third_party/python/Include/yoink.h"
|
||||
/* clang-format off */
|
||||
|
||||
PYTHON_PROVIDE("_ast");
|
||||
|
||||
/* File automatically generated by Parser/asdl_c.py. */
|
||||
|
||||
static PyTypeObject AST_type;
|
||||
|
@ -7862,6 +7865,7 @@ failed:
|
|||
static struct PyModuleDef _astmodule = {
|
||||
PyModuleDef_HEAD_INIT, "_ast"
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
PyInit__ast(void)
|
||||
{
|
||||
|
@ -8112,5 +8116,3 @@ int PyAST_Check(PyObject* obj)
|
|||
return -1;
|
||||
return PyObject_IsInstance(obj, (PyObject*)&AST_type);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue