=================================================================== RCS file: /cvs/texi2mdoc/extern.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -p -r1.27 -r1.28 --- texi2mdoc/extern.h 2015/03/11 12:51:41 1.27 +++ texi2mdoc/extern.h 2015/03/12 04:24:19 1.28 @@ -1,4 +1,4 @@ -/* $Id: extern.h,v 1.27 2015/03/11 12:51:41 kristaps Exp $ */ +/* $Id: extern.h,v 1.28 2015/03/12 04:24:19 kristaps Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -373,13 +373,23 @@ struct teximacro { }; /* + * A term is a word in an index. + * For example "@cindex foo" adds the term "foo" to the "cp" index. + * This occurs within a chapter ("nodes" in struct texi) + */ +struct texiterm { + char *term; + size_t chapter; +}; + +/* * Index tables. * These have a two or three letter name (usually) and any number of * terms that are associated with it. */ struct texidex { char *name; - char **index; + struct texiterm *index; size_t indexsz; }; @@ -411,6 +421,8 @@ struct texi { size_t macrosz; /* entries in macros */ char *copying; /* the @copying block */ size_t copyingsz; /* length of @copying */ + char **nodes; + size_t nodesz; /* * The following control what we output to the screen. * The complexity is required to accomodate for mdoc(7).