84 static char rcsid[]
MTR_UNUSED =
"$Id: mtrBasic.c,v 1.15 2012/02/05 01:06:19 fabio Exp $";
165 if (node == NULL)
return(NULL);
190 if (node == NULL)
return;
220 if (node == NULL)
return(NULL);
221 if (expansion < 1)
return(NULL);
223 if (copy == NULL)
return(NULL);
225 if (node->
child != NULL) {
227 if (copy->
child == NULL) {
240 copy->
low = node->
low * expansion;
241 copy->
size = node->
size * expansion;
246 while (auxnode != NULL) {
275 if (parent->
child != NULL) {
281 parent->
child = child;
307 if (parent->
child == NULL) {
308 parent->
child = child;
311 for (node = parent->
child;
342 if (child == NULL)
return(NULL);
371 if (child == NULL)
return(NULL);
399 second->
elder = first;
425 if (node == NULL)
return;
426 (void) fprintf(stdout,
428 "N=0x%-8lx C=0x%-8lx Y=0x%-8lx E=0x%-8lx P=0x%-8lx F=%x L=%u S=%u\n",
429 (
unsigned long) node, (
unsigned long) node->
child,
430 (
unsigned long) node->
younger, (
unsigned long) node->
elder,
433 "N=0x%-8x C=0x%-8x Y=0x%-8x E=0x%-8x P=0x%-8x F=%x L=%hu S=%hu\n",
434 (unsigned) node, (
unsigned) node->
child,
void Mtr_PrintTree(MtrNode *node)
MtrNode * Mtr_CreateFirstChild(MtrNode *parent)
MtrNode * Mtr_CopyTree(MtrNode *node, int expansion)
static char rcsid [] MTR_UNUSED
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)
MtrNode * Mtr_CreateLastChild(MtrNode *parent)
void Mtr_MakeFirstChild(MtrNode *parent, MtrNode *child)
void Mtr_FreeTree(MtrNode *node)
MtrNode * Mtr_InitTree(void)