home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c003 / 1.ddi / WFC_STRU.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-04-01  |  3.9 KB  |  107 lines

  1. /* wfc_stru.h -- Windows for C structure declarations
  2.  
  3.     ************* Copyright 1985 by Vermont Creative Software **************
  4.  
  5. DATE:      April 2, 1987
  6. VERSION:  v4.12
  7.  
  8. */
  9.  
  10. typedef struct bord            /*BORDER STRUCTURE              */
  11. {
  12.     unsigned char batt;         /*attribute of border characters      */
  13.     unsigned char h_ch, v_ch;        /*horizontal and vertical characters  */
  14.     unsigned char c1, c2, c3, c4;    /*corner char, starting in upper left */
  15.                     /*and continuing clockwise.          */
  16. } BORDER, *BORDERPTR;
  17.  
  18.  
  19.  
  20. typedef struct                /*ASCII FILE LINE STRUCTURE          */
  21. {
  22.     int line_len;            /*length of a line in the file          */
  23.     char *line_st;            /*pointer to line string          */
  24. }MFLINE, *MFLINEPTR;
  25.  
  26.  
  27.  
  28. typedef struct                /*ASCII FILE RECORD STRUCTURE          */
  29. {
  30.     char fr_tag[4];            /*sentinel                  */
  31.     char *fn;                /*filename                  */
  32.     int ib;                /*line-pointer array index of          */
  33.                     /*beginning line of file          */
  34.     char *lbp;                /*pointer to beginning line of file   */
  35.     char *lep;                /*pointer to end line of file          */
  36.     int c_q;                /*max number of columns, equal to     */
  37.                        /*to maximum length line of file,  */
  38.                        /*including newline.           */
  39.     int ln_q;                /*number of lines in file, including  */
  40.                        /*EOF (NULL) line              */
  41.     int wfr;                /*row of file to appear in wn.r = 0   */
  42.     int wfc;                /*col. of file to appear in wn.c = 0  */
  43.     MFLINEPTR *farray;            /*pointer to a pointer to a MFLINE    */
  44.     int fmaxline;            /*max number of lines allowed          */
  45.     int ftabq;                /*number of spaces per tab character  */
  46.     int fmaxcol;            /*maximum number of columns in file   */
  47. } MFILE, *MFILEPTR;
  48.  
  49.  
  50.  
  51. typedef struct wnd            /*WINDOW STRUCTURE              */
  52. {
  53.     char wn_tag[4];            /*sentinel                  */
  54.     int rb;                /*top row of window              */
  55.     int re;                /*bottom row of window              */
  56.     int cb;                /*left hand column of window          */
  57.     int ce;                /*right hand column of window          */
  58.     int r;                /*virtual cursor row-position          */
  59.     int c;                /*virtual cursor column-position      */
  60.     int att;                /*window video attribute          */
  61.     int page;                /*graphics-card alpha mode page #     */
  62.     int wrap;                /*word-wrap switch              */
  63.     int location;            /*window location parameter          */
  64.     int scr_q;                /*max number of lines to scroll       */
  65.     int l_mg, r_mg;            /*left and right spaces (margins) --  */
  66.                     /*to border                  */
  67.     BORDERPTR bdrp;            /*pointer to border struct          */
  68.     int setsw;                /*window dimensions: FULL = 0, INSIDE */
  69.                     /* = 1; initialize to 0           */
  70.     MFILEPTR frp;            /*pointer to file-record struct       */
  71.     char *storp;            /*pointer to window storage          */
  72.     char *userp[2];            /*2 pointers reserved for users       */
  73.     char *wname;            /*pointer to window name          */
  74.     char *larray;            /*pointer to logical attribute array  */
  75.     char *pu_storp;            /*pointer to pop-up window storage    */
  76.     int bdratt;             /*video attribute attribute of border */
  77.     int popup;                /*popup switch: 0 = no popup          */
  78.                     /*        1 = popup          */
  79.     int wnameloc;            /*location of window name          */
  80. /*  char *reserv3[4];              four reserved pointers          */
  81. /*  int reserv2[5];              five reserved words, not now used   */
  82. } WINDOW, *WINDOWPTR;
  83.  
  84.  
  85.  
  86. typedef struct krec            /*MULTIPLE KEYSTROKE STRUCTURE          */
  87. {
  88.     int kv;                /*key code value              */
  89.     int kq;                /*quantity of identical codes found   */
  90.     int kmax;                /*limit on number of codes to be re-  */
  91. } KEYR, *KEYRPTR;            /*moved from buffer              */
  92.  
  93.  
  94. typedef struct addr_struct        /*8086 ADDRESS STRUCTURE          */
  95. {
  96.     unsigned int off;            /*address offset              */
  97.     unsigned int seg;            /*address segment              */
  98. } ADDR, *ADDRPTR;
  99.  
  100.  
  101.  
  102. typedef struct vidioregs        /*8086 REGISTER STRUCTURE          */
  103. {
  104.     unsigned int ax, bx, cx, dx, si, di, es, ds;
  105. } VIDIO, *VIDIOPTR;
  106.  
  107.