85 static char rcsid[]
MTR_UNUSED =
"$Id: mtrBasic.c,v 1.13 2009/02/20 02:03:47 fabio Exp $";
166 if (node == NULL)
return(NULL);
191 if (node == NULL)
return;
221 if (node == NULL)
return(NULL);
222 if (expansion < 1)
return(NULL);
224 if (copy == NULL)
return(NULL);
226 if (node->
child != NULL) {
228 if (copy->
child == NULL) {
241 copy->
low = node->
low * expansion;
242 copy->
size = node->
size * expansion;
247 while (auxnode != NULL) {
276 if (parent->
child != NULL) {
308 if (parent->
child == NULL) {
312 for (node = parent->
child;
343 if (child == NULL)
return(NULL);
372 if (child == NULL)
return(NULL);
405 second->
elder = first;
426 if (node == NULL)
return;
427 (void) fprintf(stdout,
429 "N=0x%-8lx C=0x%-8lx Y=0x%-8lx E=0x%-8lx P=0x%-8lx F=%x L=%u S=%u\n",
430 (
unsigned long) node, (
unsigned long) node->
child,
431 (
unsigned long) node->
younger, (
unsigned long) node->
elder,
434 "N=0x%-8x C=0x%-8x Y=0x%-8x E=0x%-8x P=0x%-8x F=%x L=%hu S=%hu\n",
435 (unsigned) node, (
unsigned) node->
child,
void Mtr_PrintTree(MtrNode *node)
static void copy(const T &from, T &to)
MtrNode * Mtr_CreateFirstChild(MtrNode *parent)
MtrNode * Mtr_CopyTree(MtrNode *node, int expansion)
static ABC_NAMESPACE_IMPL_START char rcsid[] MTR_UNUSED
#define ABC_ALLOC(type, num)
void Mtr_MakeLastChild(MtrNode *parent, MtrNode *child)
#define MTR_TEST(node, flag)
void Mtr_MakeNextSibling(MtrNode *first, MtrNode *second)
void Mtr_DeallocNode(MtrNode *node)
MtrNode * Mtr_AllocNode(void)
#define ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_START
MtrNode * Mtr_CreateLastChild(MtrNode *parent)
void Mtr_MakeFirstChild(MtrNode *parent, MtrNode *child)
void Mtr_FreeTree(MtrNode *node)
MtrNode * Mtr_InitTree(void)