version 1.24, 2019/04/28 15:03:29 |
version 1.26, 2019/04/28 20:26:49 |
Line 32 struct nodeprop { |
|
Line 32 struct nodeprop { |
|
}; |
}; |
|
|
static const struct nodeprop properties[] = { |
static const struct nodeprop properties[] = { |
|
{ "abstract", CLASS_BLOCK }, |
{ "appendix", CLASS_BLOCK }, |
{ "appendix", CLASS_BLOCK }, |
{ "arg", CLASS_ENCL }, |
{ "arg", CLASS_ENCL }, |
{ "author", CLASS_LINE }, |
{ "author", CLASS_LINE }, |
Line 258 pnode_alloc(struct pnode *np) |
|
Line 259 pnode_alloc(struct pnode *np) |
|
TAILQ_INIT(&n->attrq); |
TAILQ_INIT(&n->attrq); |
if ((n->parent = np) != NULL) |
if ((n->parent = np) != NULL) |
TAILQ_INSERT_TAIL(&np->childq, n, child); |
TAILQ_INSERT_TAIL(&np->childq, n, child); |
|
return n; |
|
} |
|
|
|
struct pnode * |
|
pnode_alloc_text(struct pnode *np, const char *text) |
|
{ |
|
struct pnode *n; |
|
|
|
n = pnode_alloc(np); |
|
n->node = NODE_TEXT; |
|
n->b = xstrdup(text); |
return n; |
return n; |
} |
} |
|
|