FreeBSD/contrib/mdocml/mdoc_macro.c
/*
 * Phrases occur within `Bl -column' entries, separated by `Ta' or tabs.
 * They're unusual because they're basically free-form text until a
 * macro is encountered.
 */
Phrases occur within `Bl -column' entries, separated by `Ta' or tabs.
They're unusual because they're basically free-form text until a
macro is encountered.
Phrases occur within ` Bl - column ' entries separated by ` Ta ' or tabs . They ' re unusual because they ' re basically free - form text until a macro is encountered .
static void
phrase_ta(MACRO_PROT_ARGS)
{
	struct roff_node *body, *n;
	body = NULL;
	for (n = mdoc->last; n != NULL; n = n->parent) {
		if (n->flags & MDOC_ENDED)
			continue;
		if (n->tok == MDOC_It && n->type == ROFFT_BODY)
			body = n;
		if (n->tok == MDOC_Bl)
			break;
	}
	if (n == NULL || n->norm->Bl.type != LIST_column) {
		mandoc_msg(MANDOCERR_TA_STRAY, mdoc->parse,
		    line, ppos, "Ta");
		return;
	}
	rew_last(mdoc, body);
	roff_body_alloc(mdoc, line, ppos, MDOC_It);
	parse_rest(mdoc, TOKEN_NONE, line, pos, buf);
}
static void phrase_ta ( MACRO_PROT_ARGS ) { struct roff_node * body , * n ; body = NULL ; for ( n = mdoc -> last ; n != NULL ; n = n -> parent ) { if ( n -> flags & MDOC_ENDED ) continue ; if ( n -> tok == MDOC_It && n -> type == ROFFT_BODY ) body = n ; if ( n -> tok == MDOC_Bl ) break ; } if ( n == NULL || n -> norm -> Bl . type != LIST_column ) { mandoc_msg ( MANDOCERR_TA_STRAY , mdoc -> parse , line , ppos , " " ) ; return ; } rew_last ( mdoc , body ) ; roff_body_alloc ( mdoc , line , ppos , MDOC_It ) ; parse_rest ( mdoc , TOKEN_NONE , line , pos , buf ) ; }
Phrases occur within `Bl -column' entries, separated by `Ta' or tabs.
Phrases occur within ` Bl - column ' entries separated by ` Ta ' or tabs .
/* Make sure we are in a column list or ignore this macro. */ /* Advance to the next column. */