Set delta entries for the links of the given tree such that the preexisting delta value is larger than the current depth. */
| 376 | /* Set delta entries for the links of the given tree such that |
| 377 | the preexisting delta value is larger than the current depth. */ |
| 378 | static void |
| 379 | treedelta (register struct tree const *tree, |
| 380 | register unsigned int depth, |
| 381 | unsigned char delta[]) |
| 382 | { |
| 383 | if (!tree) |
| 384 | return; |
| 385 | treedelta(tree->llink, depth, delta); |
| 386 | treedelta(tree->rlink, depth, delta); |
| 387 | if (depth < delta[tree->label]) |
| 388 | delta[tree->label] = depth; |
| 389 | } |
| 390 | |
| 391 | /* Return true if A has every label in B. */ |
| 392 | static int |