diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2025-05-01 02:35:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-01 02:35:20 (GMT) |
commit | 811edcf9cda5fb09aa5189e88e693d35dee7a2d1 (patch) | |
tree | cf988b98d214eb6ecce4682bee7a6c148c03b3d7 /Include/internal/pycore_code.h | |
parent | 011979132648d50f83d4506d768dca24de47c8c6 (diff) | |
download | cpython-811edcf9cda5fb09aa5189e88e693d35dee7a2d1.zip cpython-811edcf9cda5fb09aa5189e88e693d35dee7a2d1.tar.gz cpython-811edcf9cda5fb09aa5189e88e693d35dee7a2d1.tar.bz2 |
Revert "gh-132775: Add _PyCode_GetVarCounts() (gh-133128)" (gh-133232)
The change broke the s390 builds, so I'm reverting it while I investigate.
This reverts commit 94b4fcd806e7b692955173d309ea3b70a193ad96.
Diffstat (limited to 'Include/internal/pycore_code.h')
-rw-r--r-- | Include/internal/pycore_code.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 9b02e29..635d2b2 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -565,57 +565,6 @@ extern int _Py_ClearUnusedTLBC(PyInterpreterState *interp); #endif -typedef struct { - int total; - struct co_locals_counts { - int total; - struct { - int total; - int numposonly; - int numposorkw; - int numkwonly; - int varargs; - int varkwargs; - } args; - int numpure; - struct { - int total; - // numargs does not contribute to locals.total. - int numargs; - int numothers; - } cells; - struct { - int total; - int numpure; - int numcells; - } hidden; - } locals; - int numfree; // nonlocal - struct co_unbound_counts { - int total; - struct { - int total; - int numglobal; - int numbuiltin; - int numunknown; - } globals; - int numattrs; - int numunknown; - } unbound; -} _PyCode_var_counts_t; - -PyAPI_FUNC(void) _PyCode_GetVarCounts( - PyCodeObject *, - _PyCode_var_counts_t *); -PyAPI_FUNC(int) _PyCode_SetUnboundVarCounts( - PyThreadState *, - PyCodeObject *, - _PyCode_var_counts_t *, - PyObject *globalnames, - PyObject *attrnames, - PyObject *globalsns, - PyObject *builtinsns); - PyAPI_FUNC(int) _PyCode_ReturnsOnlyNone(PyCodeObject *); |