home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / dv_x / dvxhlp10.zip / MDVXHELP.H < prev    next >
Text File  |  1992-05-30  |  1KB  |  42 lines

  1. /*
  2.  *   MDVXHELP - A utility to create DV/X Help Files
  3.  *
  4.  *   Copyright 1992 by Daniel J. Bodoh
  5.  *
  6.  *   File: mdvxhelp.h
  7.  *
  8.  *   Description: Contains data structure definitions and prototypes
  9.  *
  10.  *   History:
  11.  *      28-MAY-92   Created by DJB
  12.  *
  13.  */
  14.  
  15. #define VERSION "0.9"
  16.  
  17. #define BUFFER_SIZE 1024        /* Size of buffer for reading files into */
  18. #define MAXFILES    100         /* max # of input files */
  19.  
  20. typedef struct header_t {       /* First 6 bytes of Help file */
  21.     unsigned long dir_off;      /* offset of directory */
  22.     unsigned short dir_size;    /* size, in bytes of directory */
  23. } Header;
  24.  
  25. typedef struct tag_t {          /* element of a linked list of tags */
  26.     char *tagstr;               /* string of data for tag */
  27.     struct tag_t *flink;        /* Link to next element of list */
  28. } Tag;
  29.  
  30. typedef struct directory_t {    /* directory entry */
  31.     char sect_name[12];         /* name of a section */
  32.     unsigned long offset;       /* offset of section in file */
  33. } Dir_elem;
  34.  
  35. /* prototypes */
  36. void err_exit(char *msg);
  37. void process_section(char *file);
  38. void process_xpm(char *file);
  39. void create_dir_entry(char *path, long offset, int i);
  40. void create_tag(char *tagtxt);
  41.  
  42.