|
|
@ -89,15 +89,11 @@ static void show_ktree(K_TREE *root, char *path, int pos, char *(*dsp_funct)(K_I |
|
|
|
|
|
|
|
|
|
|
|
path[pos] = '\0'; |
|
|
|
path[pos] = '\0'; |
|
|
|
|
|
|
|
|
|
|
|
switch(root->red) |
|
|
|
if (root->red == RED_RED) |
|
|
|
{ |
|
|
|
|
|
|
|
case RED_RED: |
|
|
|
|
|
|
|
col = 'R'; |
|
|
|
col = 'R'; |
|
|
|
break; |
|
|
|
else |
|
|
|
case RED_BLACK: |
|
|
|
// if (root->red == RED_BLACK)
|
|
|
|
col = 'B'; |
|
|
|
col = 'B'; |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf(" %c %s=%s\n", col, path, dsp_funct(root->data)); |
|
|
|
printf(" %c %s=%s\n", col, path, dsp_funct(root->data)); |
|
|
|
|
|
|
|
|
|
|
|