home *** CD-ROM | disk | FTP | other *** search
- /* wfc_stru.h -- Windows for C structure declarations
-
- ************* Copyright 1985 by Vermont Creative Software **************
-
- DATE: April 2, 1987
- VERSION: v4.12
-
- */
-
- typedef struct bord /*BORDER STRUCTURE */
- {
- unsigned char batt; /*attribute of border characters */
- unsigned char h_ch, v_ch; /*horizontal and vertical characters */
- unsigned char c1, c2, c3, c4; /*corner char, starting in upper left */
- /*and continuing clockwise. */
- } BORDER, *BORDERPTR;
-
-
-
- typedef struct /*ASCII FILE LINE STRUCTURE */
- {
- int line_len; /*length of a line in the file */
- char *line_st; /*pointer to line string */
- }MFLINE, *MFLINEPTR;
-
-
-
- typedef struct /*ASCII FILE RECORD STRUCTURE */
- {
- char fr_tag[4]; /*sentinel */
- char *fn; /*filename */
- int ib; /*line-pointer array index of */
- /*beginning line of file */
- char *lbp; /*pointer to beginning line of file */
- char *lep; /*pointer to end line of file */
- int c_q; /*max number of columns, equal to */
- /*to maximum length line of file, */
- /*including newline. */
- int ln_q; /*number of lines in file, including */
- /*EOF (NULL) line */
- int wfr; /*row of file to appear in wn.r = 0 */
- int wfc; /*col. of file to appear in wn.c = 0 */
- MFLINEPTR *farray; /*pointer to a pointer to a MFLINE */
- int fmaxline; /*max number of lines allowed */
- int ftabq; /*number of spaces per tab character */
- int fmaxcol; /*maximum number of columns in file */
- } MFILE, *MFILEPTR;
-
-
-
- typedef struct wnd /*WINDOW STRUCTURE */
- {
- char wn_tag[4]; /*sentinel */
- int rb; /*top row of window */
- int re; /*bottom row of window */
- int cb; /*left hand column of window */
- int ce; /*right hand column of window */
- int r; /*virtual cursor row-position */
- int c; /*virtual cursor column-position */
- int att; /*window video attribute */
- int page; /*graphics-card alpha mode page # */
- int wrap; /*word-wrap switch */
- int location; /*window location parameter */
- int scr_q; /*max number of lines to scroll */
- int l_mg, r_mg; /*left and right spaces (margins) -- */
- /*to border */
- BORDERPTR bdrp; /*pointer to border struct */
- int setsw; /*window dimensions: FULL = 0, INSIDE */
- /* = 1; initialize to 0 */
- MFILEPTR frp; /*pointer to file-record struct */
- char *storp; /*pointer to window storage */
- char *userp[2]; /*2 pointers reserved for users */
- char *wname; /*pointer to window name */
- char *larray; /*pointer to logical attribute array */
- char *pu_storp; /*pointer to pop-up window storage */
- int bdratt; /*video attribute attribute of border */
- int popup; /*popup switch: 0 = no popup */
- /* 1 = popup */
- int wnameloc; /*location of window name */
- /* char *reserv3[4]; four reserved pointers */
- /* int reserv2[5]; five reserved words, not now used */
- } WINDOW, *WINDOWPTR;
-
-
-
- typedef struct krec /*MULTIPLE KEYSTROKE STRUCTURE */
- {
- int kv; /*key code value */
- int kq; /*quantity of identical codes found */
- int kmax; /*limit on number of codes to be re- */
- } KEYR, *KEYRPTR; /*moved from buffer */
-
-
- typedef struct addr_struct /*8086 ADDRESS STRUCTURE */
- {
- unsigned int off; /*address offset */
- unsigned int seg; /*address segment */
- } ADDR, *ADDRPTR;
-
-
-
- typedef struct vidioregs /*8086 REGISTER STRUCTURE */
- {
- unsigned int ax, bx, cx, dx, si, di, es, ds;
- } VIDIO, *VIDIOPTR;
-