version 1.43, 2015/02/24 20:34:43 |
version 1.44, 2015/02/24 21:06:52 |
Line 45 static void dobye(struct texi *, enum texicmd, const c |
|
Line 45 static void dobye(struct texi *, enum texicmd, const c |
|
static void dodefindex(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void dodefindex(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void dodefn(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void dodefn(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void dodisplay(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void dodisplay(struct texi *, enum texicmd, const char *, size_t, size_t *); |
|
static void doend(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doenumerate(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doenumerate(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doexample(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doexample(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doignargn(struct texi *, enum texicmd, const char *, size_t, size_t *); |
static void doignargn(struct texi *, enum texicmd, const char *, size_t, size_t *); |
Line 149 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
Line 150 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
{ doignbracket, "dmn", 3 }, /* TEXICMD_DMN */ |
{ doignbracket, "dmn", 3 }, /* TEXICMD_DMN */ |
{ doignblock, "documentdescription", 19 }, /* TEXICMD_DOCUMENTDESCRIPTION */ |
{ doignblock, "documentdescription", 19 }, /* TEXICMD_DOCUMENTDESCRIPTION */ |
{ doignline, "documentencoding", 16 }, /* TEXICMD_DOCUMENTENCODING */ |
{ doignline, "documentencoding", 16 }, /* TEXICMD_DOCUMENTENCODING */ |
|
{ doignline, "documentlanguage", 16 }, /* TEXICMD_DOCUMENTLANGUAGE */ |
{ doaccent, "dotaccent", 9 }, /* TEXICMD_DOTACCENT */ |
{ doaccent, "dotaccent", 9 }, /* TEXICMD_DOTACCENT */ |
{ doaccent, "dotless", 7 }, /* TEXICMD_DOTLESS */ |
{ doaccent, "dotless", 7 }, /* TEXICMD_DOTLESS */ |
{ dosymbol, "dots", 4 }, /* TEXICMD_DOTS */ |
{ dosymbol, "dots", 4 }, /* TEXICMD_DOTS */ |
{ dolink, "email", 5 }, /* TEXICMD_EMAIL */ |
{ dolink, "email", 5 }, /* TEXICMD_EMAIL */ |
{ doinline, "emph", 4 }, /* TEXICMD_EMPH */ |
{ doinline, "emph", 4 }, /* TEXICMD_EMPH */ |
{ NULL, "end", 3 }, /* TEXICMD_END */ |
{ doend, "end", 3 }, /* TEXICMD_END */ |
{ dosymbol, "enddots", 7 }, /* TEXICMD_ENDDOTS */ |
{ dosymbol, "enddots", 7 }, /* TEXICMD_ENDDOTS */ |
{ doenumerate, "enumerate", 9 }, /* TEXICMD_ENUMERATE */ |
{ doenumerate, "enumerate", 9 }, /* TEXICMD_ENUMERATE */ |
{ doinline, "env", 3 }, /* TEXICMD_ENV */ |
{ doinline, "env", 3 }, /* TEXICMD_ENV */ |
Line 168 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
Line 170 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
{ doinline, "file", 4 }, /* TEXICMD_FILE */ |
{ doinline, "file", 4 }, /* TEXICMD_FILE */ |
{ doignline, "finalout", 8 }, /* TEXICMD_FINALOUT */ |
{ doignline, "finalout", 8 }, /* TEXICMD_FINALOUT */ |
{ doignline, "findex", 6 }, /* TEXICMD_FINDEX */ |
{ doignline, "findex", 6 }, /* TEXICMD_FINDEX */ |
|
{ doblock, "flushleft", 9 }, /* TEXICMD_FLUSHLEFT */ |
|
{ doblock, "flushright", 10 }, /* TEXICMD_FLUSHRIGHT */ |
|
{ doignline, "firstparagraphindent", 20 }, /* TEXICMD_FIRSTPARAGRAPHINDENT */ |
{ doignbracket, "footnote", 8 }, /* TEXICMD_FOOTNOTE */ |
{ doignbracket, "footnote", 8 }, /* TEXICMD_FOOTNOTE */ |
|
{ doignline, "footnotestyle", 13 }, /* TEXICMD_FOOTNOTESTYLE */ |
{ dotable, "ftable", 6 }, /* TEXICMD_FTABLE */ |
{ dotable, "ftable", 6 }, /* TEXICMD_FTABLE */ |
{ dodisplay, "format", 6 }, /* TEXICMD_FORMAT */ |
{ dodisplay, "format", 6 }, /* TEXICMD_FORMAT */ |
{ dosymbol, "geq", 3 }, /* TEXICMD_GEQ */ |
{ dosymbol, "geq", 3 }, /* TEXICMD_GEQ */ |
Line 205 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
Line 211 static const struct texitok __texitoks[TEXICMD__MAX] = |
|
{ doignbracket, "image", 5 }, /* TEXICMD_IMAGE */ |
{ doignbracket, "image", 5 }, /* TEXICMD_IMAGE */ |
{ doinclude, "include", 7 }, /* TEXICMD_INCLUDE */ |
{ doinclude, "include", 7 }, /* TEXICMD_INCLUDE */ |
{ dodisplay, "indentblock", 11 }, /* TEXICMD_INDENTBLOCK */ |
{ dodisplay, "indentblock", 11 }, /* TEXICMD_INDENTBLOCK */ |
{ dolink, "inforef", 7 }, /* TEXICMD_INDENTBLOCK */ |
{ dolink, "indicateurl", 11 }, /* TEXICMD_INDICATEURL */ |
|
{ dolink, "inforef", 7 }, /* TEXICMD_INFOREF */ |
{ doignline, "insertcopying", 13 }, /* TEXICMD_INSERTCOPYING */ |
{ doignline, "insertcopying", 13 }, /* TEXICMD_INSERTCOPYING */ |
{ doitem, "item", 4 }, /* TEXICMD_ITEM */ |
{ doitem, "item", 4 }, /* TEXICMD_ITEM */ |
{ doitemize, "itemize", 7 }, /* TEXICMD_ITEMIZE */ |
{ doitemize, "itemize", 7 }, /* TEXICMD_ITEMIZE */ |
Line 1401 dolink(struct texi *p, enum texicmd cmd, |
|
Line 1408 dolink(struct texi *p, enum texicmd cmd, |
|
break; |
break; |
case (TEXICMD_UREF): |
case (TEXICMD_UREF): |
case (TEXICMD_URL): |
case (TEXICMD_URL): |
|
case (TEXICMD_INDICATEURL): |
teximacroopen(p, "Lk"); |
teximacroopen(p, "Lk"); |
break; |
break; |
case (TEXICMD_XREF): |
case (TEXICMD_XREF): |
Line 1738 dotable(struct texi *p, enum texicmd cmd, |
|
Line 1746 dotable(struct texi *p, enum texicmd cmd, |
|
parseto(p, buf, sz, pos, texitoks[cmd].tok); |
parseto(p, buf, sz, pos, texitoks[cmd].tok); |
teximacro(p, "El"); |
teximacro(p, "El"); |
p->list = sv; |
p->list = sv; |
|
} |
|
|
|
static void |
|
doend(struct texi *p, enum texicmd cmd, |
|
const char *buf, size_t sz, size_t *pos) |
|
{ |
|
size_t start; |
|
|
|
while (*pos < sz && isws(buf[*pos])) |
|
advance(p, buf, pos); |
|
start = *pos; |
|
while (*pos < sz && '\n' != buf[*pos]) |
|
advance(p, buf, pos); |
|
|
|
texiwarn(p, "unexpected \"end\": %.*s", (int)(*pos - start), &buf[start]); |
|
advanceeoln(p, buf, sz, pos, 1); |
} |
} |
|
|
static void |
static void |