home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CMENU.ZIP / MENUDRV.H < prev    next >
Text File  |  1989-03-21  |  1KB  |  43 lines

  1. /* menudrv.h -- header file for menu system */
  2.  
  3. #define editable   /* define editable to permit user to modify menus */
  4.  
  5. typedef char string14[15];
  6. typedef char string40[41];
  7. typedef char string80[81];
  8. typedef char string66[67];
  9. typedef char string255[256];
  10. typedef struct _linerec
  11.     {
  12.     string80 line;
  13.     struct _linerec * next;
  14.     } linerec;
  15.  
  16. typedef struct _menuitem
  17. {
  18.    char id;                          /*menu id (M is first)*/
  19.    char prompt;                     /*user prompt (1,2,3..)*/
  20.    char description[82];            /*line item description*/
  21.    char tomenu;                     /*id of next menu, if appropriate*/
  22.    struct _linerec * firstline;     /*pointer to first line for batch file*/
  23. } menuitem;
  24.  
  25. typedef linerec* lineptr;
  26. typedef menuitem *menuptr;
  27. typedef unsigned char vscreen[4000];
  28. typedef vscreen  *vptr;
  29.  
  30. #define blink         0x80
  31. #define maxitem     1000              /*maximum number of individual line items*/
  32. #define fname         "menu.dat"      /*data file name*/
  33. #define bakfname     "menu.bak"
  34. #define tempfname     "menu.$$$"
  35. #define parmfname     "menu.prm"
  36. #define bfname         "menuload.bat"  /*batch file name*/
  37. #define TRUE         1
  38. #define FALSE         0
  39.  
  40.  
  41.  
  42. /* function predeclarations */
  43. void display_menu(void);