=================================================================== RCS file: /cvs/texi2mdoc/extern.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- texi2mdoc/extern.h 2015/02/20 12:25:25 1.2 +++ texi2mdoc/extern.h 2015/02/21 17:00:33 1.3 @@ -1,4 +1,4 @@ -/* $Id: extern.h,v 1.2 2015/02/20 12:25:25 kristaps Exp $ */ +/* $Id: extern.h,v 1.3 2015/02/21 17:00:33 kristaps Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -54,8 +54,10 @@ enum texicmd { TEXICMD_CONTENTS, TEXICMD_COPYING, TEXICMD_COPYRIGHT, + TEXICMD_DEFCODEINDEX, TEXICMD_DEFFN, TEXICMD_DEFFNX, + TEXICMD_DEFINDEX, TEXICMD_DEFMAC, TEXICMD_DEFMACX, TEXICMD_DEFTP, @@ -120,6 +122,7 @@ enum texicmd { TEXICMD_IMAGE, TEXICMD_INCLUDE, TEXICMD_INDENTBLOCK, + TEXICMD_INDEX, TEXICMD_INSERTCOPYING, TEXICMD_ITEM, TEXICMD_ITEMIZE, @@ -174,6 +177,7 @@ enum texicmd { TEXICMD_SUBSUBSECTION, TEXICMD_SUBTITLE, TEXICMD_SUMMARYCONTENTS, + TEXICMD_SYNINDEX, TEXICMD_SYNCODEINDEX, TEXICMD_T, TEXICMD_TAB, @@ -260,8 +264,10 @@ struct texi { char *title; /* title of document */ char *subtitle; /* subtitle of document */ int secoffs; /* see sectioner() */ - struct texivalue *vals; - size_t valsz; + char **indexs; /* @defindex indices */ + size_t indexsz; /* entries in indexs */ + struct texivalue *vals; /* @value entries */ + size_t valsz; /* entries in vals */ /* * The following control what we output to the screen. * The complexity is required to accomodate for mdoc(7). @@ -294,11 +300,13 @@ void parseeoln(struct texi *, const char *, size_t, si void parsesingle(struct texi *, const char *, size_t, size_t *); void parseto(struct texi *, const char *, size_t, size_t *, const char *); -void texiabort(struct texi *, const char *); +void texiabort(struct texi *, const char *) + __attribute__((noreturn)); enum texicmd texicmd(struct texi *, const char *, size_t, size_t, size_t *); void texierr(struct texi *, const char *, ...) - __attribute__((format(printf, 2, 3))); + __attribute__((format(printf, 2, 3))) + __attribute__((noreturn)); void texiexit(struct texi *p); void texifilepop(struct texi *); void teximacro(struct texi *, const char *);