version 1.9, 2019/04/02 15:53:02 |
version 1.13, 2019/04/03 17:53:02 |
Line 69 static const struct element elements[] = { |
|
Line 69 static const struct element elements[] = { |
|
{ "citerefentry", NODE_CITEREFENTRY }, |
{ "citerefentry", NODE_CITEREFENTRY }, |
{ "citetitle", NODE_CITETITLE }, |
{ "citetitle", NODE_CITETITLE }, |
{ "cmdsynopsis", NODE_CMDSYNOPSIS }, |
{ "cmdsynopsis", NODE_CMDSYNOPSIS }, |
{ "code", NODE_CODE }, |
{ "code", NODE_LITERAL }, |
{ "colspec", NODE_COLSPEC }, |
{ "colspec", NODE_COLSPEC }, |
{ "command", NODE_COMMAND }, |
{ "command", NODE_COMMAND }, |
{ "constant", NODE_CONSTANT }, |
{ "constant", NODE_CONSTANT }, |
Line 81 static const struct element elements[] = { |
|
Line 81 static const struct element elements[] = { |
|
{ "emphasis", NODE_EMPHASIS }, |
{ "emphasis", NODE_EMPHASIS }, |
{ "entry", NODE_ENTRY }, |
{ "entry", NODE_ENTRY }, |
{ "envar", NODE_ENVAR }, |
{ "envar", NODE_ENVAR }, |
|
{ "errorname", NODE_ERRORNAME }, |
{ "fieldsynopsis", NODE_FIELDSYNOPSIS }, |
{ "fieldsynopsis", NODE_FIELDSYNOPSIS }, |
{ "filename", NODE_FILENAME }, |
{ "filename", NODE_FILENAME }, |
{ "firstname", NODE_PERSONNAME }, |
{ "firstname", NODE_PERSONNAME }, |
Line 98 static const struct element elements[] = { |
|
Line 99 static const struct element elements[] = { |
|
{ "indexterm", NODE_DELETE }, |
{ "indexterm", NODE_DELETE }, |
{ "info", NODE_INFO }, |
{ "info", NODE_INFO }, |
{ "informalequation", NODE_INFORMALEQUATION }, |
{ "informalequation", NODE_INFORMALEQUATION }, |
{ "informaltable", NODE_INFORMALTABLE }, |
{ "informaltable", NODE_TABLE }, |
{ "inlineequation", NODE_INLINEEQUATION }, |
{ "inlineequation", NODE_INLINEEQUATION }, |
{ "itemizedlist", NODE_ITEMIZEDLIST }, |
{ "itemizedlist", NODE_ITEMIZEDLIST }, |
{ "keysym", NODE_KEYSYM }, |
{ "keysym", NODE_KEYSYM }, |
Line 163 static const struct element elements[] = { |
|
Line 164 static const struct element elements[] = { |
|
{ "sgmltag", NODE_SGMLTAG }, |
{ "sgmltag", NODE_SGMLTAG }, |
{ "simplelist", NODE_SIMPLELIST }, |
{ "simplelist", NODE_SIMPLELIST }, |
{ "spanspec", NODE_SPANSPEC }, |
{ "spanspec", NODE_SPANSPEC }, |
{ "structname", NODE_STRUCTNAME }, |
{ "structfield", NODE_PARAMETER }, |
|
{ "structname", NODE_TYPE }, |
{ "subtitle", NODE_SUBTITLE }, |
{ "subtitle", NODE_SUBTITLE }, |
{ "surname", NODE_PERSONNAME }, |
{ "surname", NODE_PERSONNAME }, |
|
{ "symbol", NODE_CONSTANT }, |
{ "synopsis", NODE_SYNOPSIS }, |
{ "synopsis", NODE_SYNOPSIS }, |
{ "table", NODE_TABLE }, |
{ "table", NODE_TABLE }, |
{ "tbody", NODE_TBODY }, |
{ "tbody", NODE_TBODY }, |
Line 178 static const struct element elements[] = { |
|
Line 181 static const struct element elements[] = { |
|
{ "trademark", NODE_IGNORE }, |
{ "trademark", NODE_IGNORE }, |
{ "type", NODE_TYPE }, |
{ "type", NODE_TYPE }, |
{ "ulink", NODE_ULINK }, |
{ "ulink", NODE_ULINK }, |
{ "userinput", NODE_USERINPUT }, |
{ "userinput", NODE_LITERAL }, |
{ "variablelist", NODE_VARIABLELIST }, |
{ "variablelist", NODE_VARIABLELIST }, |
{ "varlistentry", NODE_VARLISTENTRY }, |
{ "varlistentry", NODE_VARLISTENTRY }, |
{ "varname", NODE_VARNAME }, |
{ "varname", NODE_VARNAME }, |
Line 692 parse_file(struct parse *p, int fd, const char *fname) |
|
Line 695 parse_file(struct parse *p, int fd, const char *fname) |
|
/* Parse an attribute value. */ |
/* Parse an attribute value. */ |
|
|
if (in_arg) { |
if (in_arg) { |
if (in_quotes == 0 && b[pend] == '"') { |
if (in_quotes == 0 && |
in_quotes = 1; |
(b[pend] == '\'' || b[pend] == '"')) { |
|
in_quotes = b[pend] == '"' ? 2 : 1; |
p->ncol++; |
p->ncol++; |
pend++; |
pend++; |
continue; |
continue; |
} |
} |
if (advance(p, b, rlen, &pend, |
if (advance(p, b, rlen, &pend, |
in_quotes ? "\"" : " >") && rsz > 0) |
in_quotes == 2 ? "\"" : |
|
in_quotes == 1 ? "'" : " >") && rsz > 0) |
break; |
break; |
in_arg = in_quotes = elem_end = 0; |
in_arg = in_quotes = elem_end = 0; |
if (b[pend] == '>') { |
if (b[pend] == '>') { |