Return to mdoc_validate.c CVS log | Up to [local] / src / usr.bin / mandoc |
version 1.205, 2015/04/19 14:25:05 | version 1.206, 2015/04/20 09:48:19 | ||
---|---|---|---|
|
|
||
/* Check that we begin with a proper `Sh'. */ | /* Check that we begin with a proper `Sh'. */ | ||
n = mdoc->first->child; | n = mdoc->first->child; | ||
while (n != NULL && mdoc_macros[n->tok].flags & MDOC_PROLOGUE) | while (n != NULL && n->tok != TOKEN_NONE && | ||
mdoc_macros[n->tok].flags & MDOC_PROLOGUE) | |||
n = n->next; | n = n->next; | ||
if (n == NULL) | if (n == NULL) |