Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/python2....
File: code.h
/* Definitions for bytecode */
[0] Fix | Delete
[1] Fix | Delete
#ifndef Py_CODE_H
[2] Fix | Delete
#define Py_CODE_H
[3] Fix | Delete
#ifdef __cplusplus
[4] Fix | Delete
extern "C" {
[5] Fix | Delete
#endif
[6] Fix | Delete
[7] Fix | Delete
/* Bytecode object */
[8] Fix | Delete
typedef struct {
[9] Fix | Delete
PyObject_HEAD
[10] Fix | Delete
int co_argcount; /* #arguments, except *args */
[11] Fix | Delete
int co_nlocals; /* #local variables */
[12] Fix | Delete
int co_stacksize; /* #entries needed for evaluation stack */
[13] Fix | Delete
int co_flags; /* CO_..., see below */
[14] Fix | Delete
PyObject *co_code; /* instruction opcodes */
[15] Fix | Delete
PyObject *co_consts; /* list (constants used) */
[16] Fix | Delete
PyObject *co_names; /* list of strings (names used) */
[17] Fix | Delete
PyObject *co_varnames; /* tuple of strings (local variable names) */
[18] Fix | Delete
PyObject *co_freevars; /* tuple of strings (free variable names) */
[19] Fix | Delete
PyObject *co_cellvars; /* tuple of strings (cell variable names) */
[20] Fix | Delete
/* The rest doesn't count for hash/cmp */
[21] Fix | Delete
PyObject *co_filename; /* string (where it was loaded from) */
[22] Fix | Delete
PyObject *co_name; /* string (name, for reference) */
[23] Fix | Delete
int co_firstlineno; /* first source line number */
[24] Fix | Delete
PyObject *co_lnotab; /* string (encoding addr<->lineno mapping) See
[25] Fix | Delete
Objects/lnotab_notes.txt for details. */
[26] Fix | Delete
void *co_zombieframe; /* for optimization only (see frameobject.c) */
[27] Fix | Delete
PyObject *co_weakreflist; /* to support weakrefs to code objects */
[28] Fix | Delete
} PyCodeObject;
[29] Fix | Delete
[30] Fix | Delete
/* Masks for co_flags above */
[31] Fix | Delete
#define CO_OPTIMIZED 0x0001
[32] Fix | Delete
#define CO_NEWLOCALS 0x0002
[33] Fix | Delete
#define CO_VARARGS 0x0004
[34] Fix | Delete
#define CO_VARKEYWORDS 0x0008
[35] Fix | Delete
#define CO_NESTED 0x0010
[36] Fix | Delete
#define CO_GENERATOR 0x0020
[37] Fix | Delete
/* The CO_NOFREE flag is set if there are no free or cell variables.
[38] Fix | Delete
This information is redundant, but it allows a single flag test
[39] Fix | Delete
to determine whether there is any extra work to be done when the
[40] Fix | Delete
call frame it setup.
[41] Fix | Delete
*/
[42] Fix | Delete
#define CO_NOFREE 0x0040
[43] Fix | Delete
[44] Fix | Delete
#if 0
[45] Fix | Delete
/* This is no longer used. Stopped defining in 2.5, do not re-use. */
[46] Fix | Delete
#define CO_GENERATOR_ALLOWED 0x1000
[47] Fix | Delete
#endif
[48] Fix | Delete
#define CO_FUTURE_DIVISION 0x2000
[49] Fix | Delete
#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
[50] Fix | Delete
#define CO_FUTURE_WITH_STATEMENT 0x8000
[51] Fix | Delete
#define CO_FUTURE_PRINT_FUNCTION 0x10000
[52] Fix | Delete
#define CO_FUTURE_UNICODE_LITERALS 0x20000
[53] Fix | Delete
[54] Fix | Delete
/* This should be defined if a future statement modifies the syntax.
[55] Fix | Delete
For example, when a keyword is added.
[56] Fix | Delete
*/
[57] Fix | Delete
#if 1
[58] Fix | Delete
#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
[59] Fix | Delete
#endif
[60] Fix | Delete
[61] Fix | Delete
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
[62] Fix | Delete
[63] Fix | Delete
PyAPI_DATA(PyTypeObject) PyCode_Type;
[64] Fix | Delete
[65] Fix | Delete
#define PyCode_Check(op) (Py_TYPE(op) == &PyCode_Type)
[66] Fix | Delete
#define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
[67] Fix | Delete
[68] Fix | Delete
/* Public interface */
[69] Fix | Delete
PyAPI_FUNC(PyCodeObject *) PyCode_New(
[70] Fix | Delete
int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
[71] Fix | Delete
PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
[72] Fix | Delete
/* same as struct above */
[73] Fix | Delete
[74] Fix | Delete
/* Creates a new empty code object with the specified source location. */
[75] Fix | Delete
PyAPI_FUNC(PyCodeObject *)
[76] Fix | Delete
PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno);
[77] Fix | Delete
[78] Fix | Delete
/* Return the line number associated with the specified bytecode index
[79] Fix | Delete
in this code object. If you just need the line number of a frame,
[80] Fix | Delete
use PyFrame_GetLineNumber() instead. */
[81] Fix | Delete
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
[82] Fix | Delete
[83] Fix | Delete
/* for internal use only */
[84] Fix | Delete
#define _PyCode_GETCODEPTR(co, pp) \
[85] Fix | Delete
((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
[86] Fix | Delete
((co)->co_code, 0, (void **)(pp)))
[87] Fix | Delete
[88] Fix | Delete
typedef struct _addr_pair {
[89] Fix | Delete
int ap_lower;
[90] Fix | Delete
int ap_upper;
[91] Fix | Delete
} PyAddrPair;
[92] Fix | Delete
[93] Fix | Delete
/* Update *bounds to describe the first and one-past-the-last instructions in the
[94] Fix | Delete
same line as lasti. Return the number of that line.
[95] Fix | Delete
*/
[96] Fix | Delete
PyAPI_FUNC(int) _PyCode_CheckLineNumber(PyCodeObject* co,
[97] Fix | Delete
int lasti, PyAddrPair *bounds);
[98] Fix | Delete
[99] Fix | Delete
/* Create a comparable key used to compare constants taking in account the
[100] Fix | Delete
* object type. It is used to make sure types are not coerced (e.g., float and
[101] Fix | Delete
* complex) _and_ to distinguish 0.0 from -0.0 e.g. on IEEE platforms
[102] Fix | Delete
*
[103] Fix | Delete
* Return (type(obj), obj, ...): a tuple with variable size (at least 2 items)
[104] Fix | Delete
* depending on the type and the value. The type is the first item to not
[105] Fix | Delete
* compare bytes and unicode which can raise a BytesWarning exception. */
[106] Fix | Delete
PyAPI_FUNC(PyObject*) _PyCode_ConstantKey(PyObject *obj);
[107] Fix | Delete
[108] Fix | Delete
PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts,
[109] Fix | Delete
PyObject *names, PyObject *lineno_obj);
[110] Fix | Delete
[111] Fix | Delete
#ifdef __cplusplus
[112] Fix | Delete
}
[113] Fix | Delete
#endif
[114] Fix | Delete
#endif /* !Py_CODE_H */
[115] Fix | Delete
[116] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function