treemacros.h File Reference

#include "../cl/macros.h"

Defines


Define Documentation

#define DELETE (  )     cl_free(n)
#define DELETE_NODE (  )     cl_free(n)

Referenced by free_evaltree().

#define NEW_BNODE (  )     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)
#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)

Referenced by reg_disj(), and reg_seq().

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

Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1