[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | fields.h -- field definition header
|
---|
| 4 | Version 6 -- 1987-09-25 -- D.N. Lynx Crowe
|
---|
| 5 | =============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #define MAXEBUF 80 /* maximum length of data in the edit buffer */
|
---|
| 9 |
|
---|
| 10 | struct fet { /* field definition structure */
|
---|
| 11 |
|
---|
| 12 | short frow; /* row the field is in */
|
---|
| 13 | short flcol; /* leftmost column of field */
|
---|
| 14 | short frcol; /* rightmost column of field */
|
---|
| 15 | short ftags; /* field tags / parameters (used variously) */
|
---|
[60288f5] | 16 | short (*ebto)(short n);
|
---|
[0c834c5] | 17 | /* edit buffer 'to' (setup) function */
|
---|
[60288f5] | 18 | short (*ebfrom)(short n);
|
---|
[0c834c5] | 19 | /* edit buffer 'from' (parse) function */
|
---|
[60288f5] | 20 | short (*redisp)(short nn);
|
---|
[0c834c5] | 21 | /* field (re)display function */
|
---|
[60288f5] | 22 | short (*datain)(short nn, short k);
|
---|
[0c834c5] | 23 | /* data entry function */
|
---|
[f40a309] | 24 | };
|
---|
| 25 |
|
---|
| 26 | struct selbox { /* selection box structure */
|
---|
| 27 |
|
---|
| 28 | short sbxmin; /* minimum x - left edge of box */
|
---|
| 29 | short sbymin; /* minimum y - top edge of box */
|
---|
| 30 | short sbxmax; /* maximum x - right edge of box */
|
---|
| 31 | short sbymax; /* maximum y - bottom edge of box */
|
---|
| 32 | short sbarg; /* select box argument */
|
---|
[60288f5] | 33 | short (*boxhit)(short n);
|
---|
[0c834c5] | 34 | /* box-hit function */
|
---|
[f40a309] | 35 | };
|
---|
| 36 |
|
---|
| 37 | #ifndef FET_DEFS
|
---|
| 38 | extern short ebflag; /* edit buffer setup flag */
|
---|
| 39 | extern char ebuf[MAXEBUF+1]; /* edit buffer */
|
---|
| 40 |
|
---|
| 41 | extern struct fet *curfet; /* current fet table pointer */
|
---|
| 42 | extern struct fet *cfetp, *infetp; /* current and new fet entry pointers */
|
---|
| 43 | #endif
|
---|