/*+
 * Module Name:	IdxDef.H
 *
 * Description:
 *	Define data structures used by IdxTeX
 *
 * Author:	R L Aurbach	CR&DS MIS Group    26-Apr-1986
 *
 * Modification History:
 *
 * Version     Initials	   Date		Description
 * ------------------------------------------------------------------------
 * 1-001	RLA	26-Apr-1986	Original Code
 * 1-002	RLA	03-May-1986	Add support for page-no highlighting
-*/

/* Definitions							*/

#define		IDX_K_NONE	0	/* No highlighting	*/
#define		IDX_K_UNDERLINE	1	/* Underline		*/
#define		IDX_K_ITALIC	2	/* Italicize		*/
#define		IDX_K_BOLD	3	/* BoldFace		*/

#define		IDX_K_ARTICLE	1	/* /TOC:ARTICLE seen	*/
#define		IDX_K_REPORT	2	/* /TOC:REPORT seen	*/

/* Declarations							*/

typedef struct pgnode
    {
    struct pgnode	    *link;
    struct dsc$descriptor   page_dsc;
    char		    highlight;
    } PGNODE, *PGNODE_PTR;

typedef struct node
    {
    struct node		    *link;
    struct dsc$descriptor   spell;
    struct dsc$descriptor   item;
    struct node		    *subhead;
    struct pgnode	    *pghead;
    } TREE, *TREE_PTR;
