CWB
Macros
treemacros.h File Reference
#include "../cl/macros.h"

Macros

#define NEW_TNODE(n)   n = (Evaltree)cl_malloc(sizeof(union e_tree))
 
#define NEW_EVALNODE(n, _relop, _left, _right, _min, _max)
 
#define NEW_EVALLEAF(n, _patindex)
 
#define NEW_BNODE(n)   n = (Constrainttree)cl_malloc(sizeof(union c_tree))
 
#define DELETE_NODE(n)   cl_free(n)
 

Macro Definition Documentation

#define DELETE_NODE (   n)    cl_free(n)

Referenced by free_evaltree().

#define NEW_BNODE (   n)    n = (Constrainttree)cl_malloc(sizeof(union c_tree))
#define NEW_EVALLEAF (   n,
  _patindex 
)
Value:
do { \
n = (Evaltree)cl_malloc(sizeof(union e_tree)); \
n->type = leaf; \
n->leaf.patindex = _patindex; \
} while (0)
Definition: eval.h:205
void * cl_malloc(size_t bytes)
Safely allocates memory malloc-style.
Definition: macros.c:47
union e_tree * Evaltree
Evaltree object.
Definition: eval.h:223
Underlying union for the Evaltree object.
Definition: eval.h:239
#define NEW_EVALNODE (   n,
  _relop,
  _left,
  _right,
  _min,
  _max 
)
Value:
do { \
n = (Evaltree)cl_malloc(sizeof(union e_tree)); \
n->type = node; \
n->node.op_id = _relop; \
n->node.left = _left; \
n->node.right = _right; \
n->node.min = _min; \
n->node.max = _max; \
} while (0)
Definition: eval.h:205
void * cl_malloc(size_t bytes)
Safely allocates memory malloc-style.
Definition: macros.c:47
union e_tree * Evaltree
Evaltree object.
Definition: eval.h:223
Underlying union for the Evaltree object.
Definition: eval.h:239

Referenced by reg_disj(), and reg_seq().

#define NEW_TNODE (   n)    n = (Evaltree)cl_malloc(sizeof(union e_tree))