Lines Matching refs:tok
122 assert(tok > TOKEN_NONE && tok < MDOC_MAX);
124 (*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf);
128 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, int tok)
132 p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok);
138 mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, int tok,
145 p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok);
156 int tok, struct mdoc_arg *args)
160 p = roff_node_alloc(mdoc, line, pos, ROFFT_BLOCK, tok);
165 switch (tok) {
183 int tok, struct mdoc_arg *args)
187 p = roff_node_alloc(mdoc, line, pos, ROFFT_ELEM, tok);
192 switch (tok) {
232 if (n->tok == MDOC_Bl && n->type == ROFFT_BODY &&
240 if (n->tok == MDOC_It && n->type == ROFFT_BLOCK &&
242 MDOC_Bl == n->parent->tok &&
337 int tok;
354 tok = (i > 1 && i < 4) ? mdoc_hash_find(mac) : TOKEN_NONE;
356 if (tok == TOKEN_NONE) {
396 if (NULL == mdoc->last || MDOC_It == tok || MDOC_El == tok) {
397 mdoc_macro(mdoc, tok, ln, sv, &offs, buf);
409 if (n->tok == MDOC_Bl && n->type == ROFFT_BODY &&
422 if (n->tok == MDOC_It && n->type == ROFFT_BLOCK &&
424 MDOC_Bl == n->parent->tok &&
433 mdoc_macro(mdoc, tok, ln, sv, &offs, buf);
437 if (mdoc->quick && MDOC_Sh == tok &&