[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 |
|
---|
[7258c6a] | 12 | int16_t frow; /* row the field is in */
|
---|
| 13 | int16_t flcol; /* leftmost column of field */
|
---|
| 14 | int16_t frcol; /* rightmost column of field */
|
---|
| 15 | int16_t ftags; /* field tags / parameters (used variously) */
|
---|
| 16 | int16_t (*ebto)(int16_t n);
|
---|
[0c834c5] | 17 | /* edit buffer 'to' (setup) function */
|
---|
[7258c6a] | 18 | int16_t (*ebfrom)(int16_t n);
|
---|
[0c834c5] | 19 | /* edit buffer 'from' (parse) function */
|
---|
[7258c6a] | 20 | int16_t (*redisp)(int16_t nn);
|
---|
[0c834c5] | 21 | /* field (re)display function */
|
---|
[7258c6a] | 22 | int16_t (*datain)(int16_t nn, int16_t k);
|
---|
[0c834c5] | 23 | /* data entry function */
|
---|
[f40a309] | 24 | };
|
---|
| 25 |
|
---|
| 26 | struct selbox { /* selection box structure */
|
---|
| 27 |
|
---|
[7258c6a] | 28 | int16_t sbxmin; /* minimum x - left edge of box */
|
---|
| 29 | int16_t sbymin; /* minimum y - top edge of box */
|
---|
| 30 | int16_t sbxmax; /* maximum x - right edge of box */
|
---|
| 31 | int16_t sbymax; /* maximum y - bottom edge of box */
|
---|
| 32 | int16_t sbarg; /* select box argument */
|
---|
| 33 | int16_t (*boxhit)(int16_t n);
|
---|
[0c834c5] | 34 | /* box-hit function */
|
---|
[f40a309] | 35 | };
|
---|
| 36 |
|
---|
| 37 | #ifndef FET_DEFS
|
---|
[7258c6a] | 38 | extern int16_t ebflag; /* edit buffer setup flag */
|
---|
| 39 | extern int8_t ebuf[MAXEBUF+1]; /* edit buffer */
|
---|
[f40a309] | 40 |
|
---|
| 41 | extern struct fet *curfet; /* current fet table pointer */
|
---|
| 42 | extern struct fet *cfetp, *infetp; /* current and new fet entry pointers */
|
---|
| 43 | #endif
|
---|