version 1.24, 2019/04/14 14:00:17 |
version 1.25, 2019/04/14 14:59:37 |
|
|
* |
* |
* Example usage: |
* Example usage: |
* statistics tgroup colspec < filenames.txt | grep colspec |
* statistics tgroup colspec < filenames.txt | grep colspec |
|
* |
|
* Synchronized with parse.c up to rev. 1.42. |
*/ |
*/ |
|
|
struct entry { |
struct entry { |
Line 304 parse_file(int fd, char *fname) |
|
Line 306 parse_file(int fd, char *fname) |
|
stack[stacki - 1] : "ROOT", |
stack[stacki - 1] : "ROOT", |
b + poff); |
b + poff); |
stack_push(b + poff); |
stack_push(b + poff); |
|
if (strcmp(b + poff, "sbr") == 0) |
|
elem_end = 1; |
} |
} |
if (elem_end) |
if (elem_end) |
stack_pop(b + poff); |
stack_pop(b + poff); |
Line 314 parse_file(int fd, char *fname) |
|
Line 318 parse_file(int fd, char *fname) |
|
} |
} |
} |
} |
assert(poff > 0); |
assert(poff > 0); |
memmove(b, b + poff, rlen - poff); |
|
rlen -= poff; |
rlen -= poff; |
|
memmove(b, b + poff, rlen); |
} |
} |
if (rsz < 0) |
if (rsz < 0) |
perror(fname); |
perror(fname); |