Back to index

python3.2  3.2.2
Classes | Defines | Typedefs | Functions | Variables
node.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _node

Defines

#define NCH(n)   ((n)->n_nchildren)
#define CHILD(n, i)   (&(n)->n_child[i])
#define RCHILD(n, i)   (CHILD(n, NCH(n) + i))
#define TYPE(n)   ((n)->n_type)
#define STR(n)   ((n)->n_str)
#define REQ(n, type)   assert(TYPE(n) == (type))

Typedefs

typedef struct _node node

Functions

 PyAPI_FUNC (node *) PyNode_New(int type)
 PyAPI_FUNC (int) PyNode_AddChild(node *n
 PyAPI_FUNC (void) PyNode_Free(node *n)

Variables

int type
int char * str
int char int lineno
int char int int col_offset

Class Documentation

struct _node

Definition at line 10 of file node.h.

Collaboration diagram for _node:
Class Members
struct _node * n_child
int n_col_offset
int n_lineno
int n_nchildren
char * n_str
short n_type

Define Documentation

#define CHILD (   n,
  i 
)    (&(n)->n_child[i])

Definition at line 27 of file node.h.

#define NCH (   n)    ((n)->n_nchildren)

Definition at line 25 of file node.h.

#define RCHILD (   n,
  i 
)    (CHILD(n, NCH(n) + i))

Definition at line 28 of file node.h.

#define REQ (   n,
  type 
)    assert(TYPE(n) == (type))

Definition at line 33 of file node.h.

#define STR (   n)    ((n)->n_str)

Definition at line 30 of file node.h.

#define TYPE (   n)    ((n)->n_type)

Definition at line 29 of file node.h.


Typedef Documentation

typedef struct _node node

Function Documentation

PyAPI_FUNC ( node )

Definition at line 2396 of file pythonrun.c.

Here is the call graph for this function:

PyAPI_FUNC ( int  )

Definition at line 2410 of file pythonrun.c.

Definition at line 1904 of file object.c.


Variable Documentation

Definition at line 20 of file node.h.

Definition at line 20 of file node.h.

int char* str

Definition at line 20 of file node.h.

Definition at line 20 of file node.h.