Changeset 7258c6a in buchla-68k for include/fields.h


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/fields.h

    r0292fbb r7258c6a  
    1010struct fet {                    /* field definition structure */
    1111
    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) */
    16         short   (*ebto)(short n);
     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);
    1717                                /* edit buffer 'to' (setup) function */
    18         short   (*ebfrom)(short n);
     18        int16_t (*ebfrom)(int16_t n);
    1919                                /* edit buffer 'from' (parse) function */
    20         short   (*redisp)(short nn);
     20        int16_t (*redisp)(int16_t nn);
    2121                                /* field (re)display function */
    22         short   (*datain)(short nn, short k);
     22        int16_t (*datain)(int16_t nn, int16_t k);
    2323                                /* data entry function */
    2424};
     
    2626struct  selbox  {               /* selection box structure */
    2727
    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 */
    33         short   (*boxhit)(short n);
     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);
    3434                                /* box-hit function */
    3535};
    3636
    3737#ifndef FET_DEFS
    38 extern  short   ebflag;                 /* edit buffer setup flag */
    39 extern  char    ebuf[MAXEBUF+1];        /* edit buffer */
     38extern  int16_t ebflag;                 /* edit buffer setup flag */
     39extern  int8_t  ebuf[MAXEBUF+1];        /* edit buffer */
    4040
    4141extern  struct  fet *curfet;            /* current fet table pointer */
Note: See TracChangeset for help on using the changeset viewer.