home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 328_02 / whelp.h < prev    next >
Text File  |  1991-04-11  |  730b  |  29 lines

  1. /* whelp.h  definitions for indexed help files
  2.  *
  3.  * method:  help text is in an ASCII file. New topics are identified by
  4.  *    a '@' in column 1 followed immediately by the topic name.
  5.  *    The text for that topic follows.
  6.  *
  7.  *    The help index file .HX contains the 2-byte count of the number of
  8.  *    entries and then an array of struct HX giving the topics, locations
  9.  *    and number of bytes for the text.
  10.  */
  11.  
  12.  
  13. /* size of topics, not counting terminal NULL
  14.  */
  15. #define TOPIC_SZ    45
  16. #define TOPIC_SIZE    45
  17.  
  18.  
  19.  
  20. typedef struct    {
  21.     char     hxtopic [TOPIC_SZ +1];
  22.     long     hxpos;
  23.     size_t     hxsize;
  24.         }
  25.     HX;
  26.  
  27. #define    MAX_TOPICS    2 * (32000 / sizeof(HX))
  28.  
  29. /*------------------------ end of whelp.h -----------------------*/