[Ltrace-devel] [PATCH 2/6] Make sure there's at least one space after "typedef" when parsing
Petr Machata
pmachata at redhat.com
Mon Apr 20 07:49:22 UTC 2015
Роман Донченко <dpb at corrigendum.ru> writes:
> - if (strncmp(str, "typedef", 7) == 0) {
> + if (strncmp(str, "typedef ", 8) == 0) {
Agreed, the test is wrong. The new test however disallows "typedef"
followed by a tab character. It would be better fixed by dispatching to
try_parse_kwd.
Looking through the code, I found some other opportunities for clean-up,
and pushed the corresponding fixes.
Thanks,
Petr
More information about the Ltrace-devel
mailing list