=================================================================== RCS file: /cvs/texi2mdoc/extern.h,v retrieving revision 1.21 retrieving revision 1.25 diff -u -p -r1.21 -r1.25 --- texi2mdoc/extern.h 2015/03/01 00:25:07 1.21 +++ texi2mdoc/extern.h 2015/03/03 15:04:24 1.25 @@ -1,4 +1,4 @@ -/* $Id: extern.h,v 1.21 2015/03/01 00:25:07 kristaps Exp $ */ +/* $Id: extern.h,v 1.25 2015/03/03 15:04:24 kristaps Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -55,6 +55,7 @@ enum texicmd { TEXICMD_AT, TEXICMD_AUTHOR, TEXICMD_B, + TEXICMD_BACKSLASH, TEXICMD_BANG, TEXICMD_BULLET, TEXICMD_BYE, @@ -373,7 +374,7 @@ struct teximacro { */ struct texi { const char *chapters; /* are we splitting chapters */ - size_t chapnum; + size_t chapnum; /* current chapter node */ char **dirs; /* texi directories */ size_t dirsz; /* number of texi directories */ FILE *outfile; @@ -404,6 +405,7 @@ struct texi { int seenvs; /* newline has been Pp'd */ int ign; /* if >0, don't print anything */ int literal; /* if >0, literal context */ + int uppercase; /* if >0, uppercase */ }; #define BUF(_p) ((_p)->files[(_p)->filepos - 1].map) @@ -444,7 +446,7 @@ void texifilepop(struct texi *); void teximacro(struct texi *, const char *); void teximacroclose(struct texi *); void teximacroopen(struct texi *, const char *); -void teximdocopen(struct texi *); +void teximdocopen(struct texi *, size_t *); void teximdocclose(struct texi *, int); void texipunctuate(struct texi *, size_t *); void texiputbuf(struct texi *p, size_t, size_t); @@ -453,7 +455,7 @@ void texiputchars(struct texi *, const char *); void texivspace(struct texi *); void texiwarn(const struct texi *, const char *, ...) __attribute__((format(printf, 2, 3))); -void texisplice(struct texi *, const char *, size_t, size_t *); +void texisplice(struct texi *, const char *, size_t, size_t); void valueadd(struct texi *, char *, char *); const char *