Changeset 7258c6a in buchla-68k for ram/etitim.c


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
  • ram/etitim.c

    r0292fbb r7258c6a  
    1818
    1919extern  void    advicur(void);
    20 extern  short   edfunc(short n);
     20extern  int16_t edfunc(int16_t n);
    2121extern  void    pntsel(void);
    2222
    23 extern  unsigned        *instob;
     23extern  uint16_t        *instob;
    2424
    25 extern  short   stccol, subj, curvce, curfunc, curpnt;
    26 extern  short   pecase, npts, temin, temax, pntsv;
     25extern  int16_t stccol, subj, curvce, curfunc, curpnt;
     26extern  int16_t pecase, npts, temin, temax, pntsv;
    2727
    28 extern  short   idbox[][8];
     28extern  int16_t idbox[][8];
    2929
    30 extern  char    dspbuf[];
     30extern  int8_t  dspbuf[];
    3131
    3232extern  struct  instdef vbufs[];
     
    4444*/
    4545
    46 short et_itim(short n)
     46int16_t et_itim(int16_t n)
    4747{
    48         register short th, tl;
    49         register long tt, sc;
     48        register int16_t th, tl;
     49        register int32_t tt, sc;
    5050
    5151        pntsel();               /* make sure edit limits are current */
     
    7777*/
    7878
    79 short ef_itim(short n)
     79int16_t ef_itim(int16_t n)
    8080{
    81         register short i, endpnt, basept;
    82         register unsigned tmpval;
     81        register int16_t i, endpnt, basept;
     82        register uint16_t tmpval;
    8383        register struct idfnhdr *fp;
    8484        register struct instdef *ip;
     
    105105                subj, pecase, temin, tmpval, temax);
    106106#endif
    107         if (tmpval > (unsigned)temax)
     107        if (tmpval > (uint16_t)temax)
    108108                return(FAILURE);
    109109
    110         if (tmpval < (unsigned)temin)
     110        if (tmpval < (uint16_t)temin)
    111111                return(FAILURE);
    112112
     
    133133*/
    134134
    135 short rd_itim(short n)
     135int16_t rd_itim(int16_t n)
    136136{
    137         register short th, tl;
    138         register long tt, sc;
     137        register int16_t th, tl;
     138        register int32_t tt, sc;
    139139
    140140        sc = 1000L;
     
    164164*/
    165165
    166 short nd_itim(short n, short k)
     166int16_t nd_itim(int16_t n, int16_t k)
    167167{
    168         register short ec;
     168        register int16_t ec;
    169169
    170170        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
Note: See TracChangeset for help on using the changeset viewer.