FreeBSD/contrib/mdocml/roff.c
/*
 * Push a roff node onto the instruction stack.  This must later be
 * removed with roffnode_pop().
 */
Push a roff node onto the instruction stack.  This must later be
removed with roffnode_pop().
Push a roff node onto the instruction stack . This must later be removed with roffnode_pop () .
static void
roffnode_push(struct roff *r, enum rofft tok, const char *name,
		int line, int col)
{
	struct roffnode	*p;
	p = mandoc_calloc(1, sizeof(struct roffnode));
	p->tok = tok;
	if (name)
		p->name = mandoc_strdup(name);
	p->parent = r->last;
	p->line = line;
	p->col = col;
	p->rule = p->parent ? p->parent->rule : 0;
	r->last = p;
}
static void roffnode_push ( struct roff * r , enum rofft tok , const char * name , int line , int col ) { struct roffnode * p ; p = mandoc_calloc ( 1 , sizeof ( struct roffnode ) ) ; p -> tok = tok ; if ( name ) p -> name = mandoc_strdup ( name ) ; p -> parent = r -> last ; p -> line = line ; p -> col = col ; p -> rule = p -> parent ? p -> parent -> rule : 0 ; r -> last = p ; }
Push a roff node onto the instruction stack.
Push a roff node onto the instruction stack .