@@ -20,29 +20,29 @@ typedef uint16_t _Py_CODEUNIT;
2020/* Bytecode object */
2121typedef struct {
2222 PyObject_HEAD
23- int co_argcount ; /* #arguments, except *args */
24- int co_kwonlyargcount ; /* #keyword only arguments */
25- int co_nlocals ; /* #local variables */
26- int co_stacksize ; /* #entries needed for evaluation stack */
27- int co_flags ; /* CO_..., see below */
28- int co_firstlineno ; /* first source line number */
29- PyObject * co_code ; /* instruction opcodes */
30- PyObject * co_consts ; /* list (constants used) */
31- PyObject * co_names ; /* list of strings (names used) */
32- PyObject * co_varnames ; /* tuple of strings (local variable names) */
33- PyObject * co_freevars ; /* tuple of strings (free variable names) */
23+ int co_argcount ; /* #arguments, except *args */
24+ int co_kwonlyargcount ; /* #keyword only arguments */
25+ int co_nlocals ; /* #local variables */
26+ int co_stacksize ; /* #entries needed for evaluation stack */
27+ int co_flags ; /* CO_..., see below */
28+ int co_firstlineno ; /* first source line number */
29+ PyObject * co_code ; /* instruction opcodes */
30+ PyObject * co_consts ; /* list (constants used) */
31+ PyObject * co_names ; /* list of strings (names used) */
32+ PyObject * co_varnames ; /* tuple of strings (local variable names) */
33+ PyObject * co_freevars ; /* tuple of strings (free variable names) */
3434 PyObject * co_cellvars ; /* tuple of strings (cell variable names) */
3535 /* The rest aren't used in either hash or comparisons, except for co_name,
3636 used in both. This is done to preserve the name and line number
3737 for tracebacks and debuggers; otherwise, constant de-duplication
3838 would collapse identical functions/lambdas defined on different lines.
3939 */
4040 Py_ssize_t * co_cell2arg ; /* Maps cell vars which are arguments. */
41- PyObject * co_filename ; /* unicode (where it was loaded from) */
42- PyObject * co_name ; /* unicode (name, for reference) */
43- PyObject * co_lnotab ; /* string (encoding addr<->lineno mapping) See
44- Objects/lnotab_notes.txt for details. */
45- void * co_zombieframe ; /* for optimization only (see frameobject.c) */
41+ PyObject * co_filename ; /* unicode (where it was loaded from) */
42+ PyObject * co_name ; /* unicode (name, for reference) */
43+ PyObject * co_lnotab ; /* string (encoding addr<->lineno mapping) See
44+ Objects/lnotab_notes.txt for details. */
45+ void * co_zombieframe ; /* for optimization only (see frameobject.c) */
4646 PyObject * co_weakreflist ; /* to support weakrefs to code objects */
4747 /* Scratch space for extra data relating to the code object.
4848 Type is a void* to keep the format private in codeobject.c to force
@@ -51,10 +51,10 @@ typedef struct {
5151} PyCodeObject ;
5252
5353/* Masks for co_flags above */
54- #define CO_OPTIMIZED 0x0001
55- #define CO_NEWLOCALS 0x0002
56- #define CO_VARARGS 0x0004
57- #define CO_VARKEYWORDS 0x0008
54+ #define CO_OPTIMIZED 0x0001
55+ #define CO_NEWLOCALS 0x0002
56+ #define CO_VARARGS 0x0004
57+ #define CO_VARKEYWORDS 0x0008
5858#define CO_NESTED 0x0010
5959#define CO_GENERATOR 0x0020
6060/* The CO_NOFREE flag is set if there are no free or cell variables.
@@ -74,7 +74,7 @@ typedef struct {
7474#if 0
7575#define CO_GENERATOR_ALLOWED 0x1000
7676#endif
77- #define CO_FUTURE_DIVISION 0x2000
77+ #define CO_FUTURE_DIVISION 0x2000
7878#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
7979#define CO_FUTURE_WITH_STATEMENT 0x8000
8080#define CO_FUTURE_PRINT_FUNCTION 0x10000
@@ -101,9 +101,9 @@ PyAPI_DATA(PyTypeObject) PyCode_Type;
101101
102102/* Public interface */
103103PyAPI_FUNC (PyCodeObject * ) PyCode_New (
104- int , int , int , int , int , PyObject * , PyObject * ,
105- PyObject * , PyObject * , PyObject * , PyObject * ,
106- PyObject * , PyObject * , int , PyObject * );
104+ int , int , int , int , int , PyObject * , PyObject * ,
105+ PyObject * , PyObject * , PyObject * , PyObject * ,
106+ PyObject * , PyObject * , int , PyObject * );
107107 /* same as struct above */
108108
109109/* Creates a new empty code object with the specified source location. */
0 commit comments