| 435 | #define TERM_TAB 2 |
| 436 | |
| 437 | static int name_terminate(int c, int terminate) |
| 438 | { |
| 439 | if (c == ' ' && !(terminate & TERM_SPACE)) |
| 440 | return 0; |
| 441 | if (c == '\t' && !(terminate & TERM_TAB)) |
| 442 | return 0; |
| 443 | |
| 444 | return 1; |
| 445 | } |
| 446 | |
| 447 | /* remove double slashes to make --index work with such filenames */ |
| 448 | static char *squash_slash(char *name) |