Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Macros | Typedefs | Functions | Variables
code.h File Reference

Go to the source code of this file.

Classes

struct  PyCodeObject
 
struct  _addr_pair
 

Macros

#define CO_OPTIMIZED   0x0001
 
#define CO_NEWLOCALS   0x0002
 
#define CO_VARARGS   0x0004
 
#define CO_VARKEYWORDS   0x0008
 
#define CO_NESTED   0x0010
 
#define CO_GENERATOR   0x0020
 
#define CO_NOFREE   0x0040
 
#define CO_FUTURE_DIVISION   0x2000
 
#define CO_FUTURE_ABSOLUTE_IMPORT   0x4000 /* do absolute imports by default */
 
#define CO_FUTURE_WITH_STATEMENT   0x8000
 
#define CO_FUTURE_PRINT_FUNCTION   0x10000
 
#define CO_FUTURE_UNICODE_LITERALS   0x20000
 
#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
 
#define CO_MAXBLOCKS   20 /* Max static block nesting within a function */
 
#define PyCode_Check(op)   (Py_TYPE(op) == &PyCode_Type)
 
#define PyCode_GetNumFree(op)   (PyTuple_GET_SIZE((op)->co_freevars))
 
#define _PyCode_GETCODEPTR(co, pp)
 

Typedefs

typedef struct _addr_pair PyAddrPair
 

Functions

 PyAPI_DATA (PyTypeObject) PyCode_Type
 
 PyAPI_FUNC (PyCodeObject *) PyCode_New(int
 
 PyAPI_FUNC (int) PyCode_Addr2Line(PyCodeObject *
 
 PyAPI_FUNC (PyObject *) PyCode_Optimize(PyObject *code
 

Variables

 int
 
PyObject PyObject PyObject
PyObject PyObject PyObject
PyObject PyObject PyObject
const char * 
funcname
 
PyObject PyObject PyObject
PyObject PyObject PyObject
PyObject PyObject PyObject
const char int 
firstlineno
 
int lasti
 
int PyAddrPairbounds
 
PyObjectconsts
 
PyObject PyObjectnames
 
PyObject PyObject PyObjectlineno_obj
 

Macro Definition Documentation

#define _PyCode_GETCODEPTR (   co,
  pp 
)
Value:
((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
((co)->co_code, 0, (void **)(pp)))
#define CO_FUTURE_ABSOLUTE_IMPORT   0x4000 /* do absolute imports by default */
#define CO_FUTURE_DIVISION   0x2000
#define CO_FUTURE_PRINT_FUNCTION   0x10000
#define CO_FUTURE_UNICODE_LITERALS   0x20000
#define CO_FUTURE_WITH_STATEMENT   0x8000
#define CO_GENERATOR   0x0020
#define CO_MAXBLOCKS   20 /* Max static block nesting within a function */
#define CO_NESTED   0x0010
#define CO_NEWLOCALS   0x0002
#define CO_NOFREE   0x0040
#define CO_OPTIMIZED   0x0001
#define CO_VARARGS   0x0004
#define CO_VARKEYWORDS   0x0008
#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
#define PyCode_Check (   op)    (Py_TYPE(op) == &PyCode_Type)
#define PyCode_GetNumFree (   op)    (PyTuple_GET_SIZE((op)->co_freevars))

Typedef Documentation

typedef struct _addr_pair PyAddrPair

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_FUNC ( PyCodeObject )
PyAPI_FUNC ( int  )
read
PyAPI_FUNC ( PyObject )
read

Variable Documentation

int PyAddrPair* bounds
PyObject* consts
PyObject const char int
int lasti
PyObject PyObject PyObject* lineno_obj

Copyright 2014 Google Inc. All rights reserved.