Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison directive.c @ 83:3e505c16b0b0
Accept # by itself, including with a comment after it.
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 21:33:31 -0400 |
parents | 05a94332f08b |
children | 594495750d84 |
comparison
equal
deleted
inserted
replaced
82:05a94332f08b | 83:3e505c16b0b0 |
---|---|
488 } | 488 } |
489 directives[i].func(p, &p2, line); | 489 directives[i].func(p, &p2, line); |
490 return; | 490 return; |
491 } | 491 } |
492 } | 492 } |
493 /* ugh. allow # by itself, including with a comment after it */ | |
494 uncomment(line); | |
495 if (line[0] == '\0') { | |
496 return; | |
497 } | |
498 | |
493 skip = strcspn(line, ws); | 499 skip = strcspn(line, ws); |
494 complain(p, "Unknown directive #%.*s", (int)skip, line); | 500 complain(p, "Unknown directive #%.*s", (int)skip, line); |
495 complain_fail(); | 501 complain_fail(); |
496 } | 502 } |
497 | 503 |