Changeset 7258c6a in buchla-68k for ram/idfield.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/idfield.c

    r0292fbb r7258c6a  
    2020extern  void    select(void);
    2121extern  void    stdmkey(void);
    22 extern  void    stddkey(short k);
     22extern  void    stddkey(int16_t k);
    2323extern  void    nokey(void);
    2424extern  void    cxkstd(void);
    2525extern  void    cykstd(void);
    26 extern  short   vtoy(short val, short window);
    27 extern  short   ttox(unsigned time, short window);
    28 extern  short   timeto(short fn, short pj);
    29 extern  void    vcputsv(int *obase, int nw, int fg, int bg, int row, int col, char *str, int pitch);
    30 extern  void    dswin(short n);
    31 extern  short   stdctp1(void);
    32 extern  short   whatbox(void);
    33 extern  short   inspnt(struct instdef *ip, short fn, short inpnt);
     26extern  int16_t vtoy(int16_t val, int16_t window);
     27extern  int16_t ttox(uint16_t time, int16_t window);
     28extern  int16_t timeto(int16_t fn, int16_t pj);
     29extern  void    vcputsv(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
     30extern  void    dswin(int16_t n);
     31extern  int16_t stdctp1(void);
     32extern  int16_t whatbox(void);
     33extern  int16_t inspnt(struct instdef *ip, int16_t fn, int16_t inpnt);
    3434extern  void    pntsel(void);
    35 extern  void    setseg(short pn, unsigned ptime);
    36 extern  void    showpt(short q);
    37 
    38 extern  short   et_null(short n);
    39 extern  short   ef_null(short n);
    40 extern  short   rd_null(short n);
    41 extern  short   nd_null(short n, short k);
    42 extern  short   et_ipnt(short n);
    43 extern  short   ef_ipnt(short n);
    44 extern  short   rd_ipnt(short n);
    45 extern  short   nd_ipnt(short n, short k);
    46 extern  short   et_idin(short n);
    47 extern  short   ef_idin(short n);
    48 extern  short   rd_idin(short n);
    49 extern  short   nd_idin(short n, short k);
    50 extern  short   et_ivce(short n);
    51 extern  short   ef_ivce(short n);
    52 extern  short   rd_ivce(short n);
    53 extern  short   nd_ivce(short n, short k);
    54 extern  short   et_icnf(short n);
    55 extern  short   ef_icnf(short n);
    56 extern  short   rd_icnf(short n);
    57 extern  short   nd_icnf(short n, short k);
    58 extern  short   et_ival(short n);
    59 extern  short   ef_ival(short n);
    60 extern  short   rd_ival(short n);
    61 extern  short   nd_ival(short n, short k);
    62 extern  short   et_itim(short n);
    63 extern  short   ef_itim(short n);
    64 extern  short   rd_itim(short n);
    65 extern  short   nd_itim(short n, short k);
    66 extern  short   et_iosc(short nn);
    67 extern  short   ef_iosc(short nn);
    68 extern  short   rd_iosc(short nn);
    69 extern  short   nd_iosc(short nn, short k);
    70 extern  short   et_iact(short nn);
    71 extern  short   ef_iact(short nn);
    72 extern  short   rd_iact(short nn);
    73 extern  short   nd_iact(short nn, short k);
    74 extern  short   et_iwsn(short nn);
    75 extern  short   ef_iwsn(short nn);
    76 extern  short   rd_iwsn(short nn);
    77 extern  short   nd_iwsn(short nn, short k);
    78 extern  short   et_ires(short n);
    79 extern  short   ef_ires(short n);
    80 extern  short   rd_ires(short n);
    81 extern  short   nd_ires(short n, short k);
    82 extern  short   et_imlt(short n);
    83 extern  short   ef_imlt(short n);
    84 extern  short   rd_imlt(short n);
    85 extern  short   nd_imlt(short n, short k);
    86 
    87 extern  unsigned        fromfpu(unsigned fputime);
    88 
    89 extern  void    *memset(void *vp, char c, int n);
    90 
    91 /*
    92 
    93 */
    94 
    95 extern  short   curvce, curfunc, curpnt, hitbox, astat, idnamsw;
    96 extern  short   cxval, cyval, cxrate, cyrate, curslim, cmtype, cmfirst;
    97 extern  short   pecase, pntsv, npts, subj, idimsw, wcflag, imflag;
    98 extern  short   idcfsw, idsrcsw, vtcrow, vtccol, stcrow, stccol;
    99 extern  short   vtxval, vtyval;
    100 
    101 extern  short   temax, temin;
    102 
    103 extern  short   *cratex, *cratey, crate0[], crate1[];
    104 
    105 extern  unsigned        *instob;
    106 
    107 extern  char    bfs[];
    108 extern  char    *idbxlbl[];
    109 
    110 extern  short   fnoff[];
    111 extern  short   idbox[][8];
     35extern  void    setseg(int16_t pn, uint16_t ptime);
     36extern  void    showpt(int16_t q);
     37
     38extern  int16_t et_null(int16_t n);
     39extern  int16_t ef_null(int16_t n);
     40extern  int16_t rd_null(int16_t n);
     41extern  int16_t nd_null(int16_t n, int16_t k);
     42extern  int16_t et_ipnt(int16_t n);
     43extern  int16_t ef_ipnt(int16_t n);
     44extern  int16_t rd_ipnt(int16_t n);
     45extern  int16_t nd_ipnt(int16_t n, int16_t k);
     46extern  int16_t et_idin(int16_t n);
     47extern  int16_t ef_idin(int16_t n);
     48extern  int16_t rd_idin(int16_t n);
     49extern  int16_t nd_idin(int16_t n, int16_t k);
     50extern  int16_t et_ivce(int16_t n);
     51extern  int16_t ef_ivce(int16_t n);
     52extern  int16_t rd_ivce(int16_t n);
     53extern  int16_t nd_ivce(int16_t n, int16_t k);
     54extern  int16_t et_icnf(int16_t n);
     55extern  int16_t ef_icnf(int16_t n);
     56extern  int16_t rd_icnf(int16_t n);
     57extern  int16_t nd_icnf(int16_t n, int16_t k);
     58extern  int16_t et_ival(int16_t n);
     59extern  int16_t ef_ival(int16_t n);
     60extern  int16_t rd_ival(int16_t n);
     61extern  int16_t nd_ival(int16_t n, int16_t k);
     62extern  int16_t et_itim(int16_t n);
     63extern  int16_t ef_itim(int16_t n);
     64extern  int16_t rd_itim(int16_t n);
     65extern  int16_t nd_itim(int16_t n, int16_t k);
     66extern  int16_t et_iosc(int16_t nn);
     67extern  int16_t ef_iosc(int16_t nn);
     68extern  int16_t rd_iosc(int16_t nn);
     69extern  int16_t nd_iosc(int16_t nn, int16_t k);
     70extern  int16_t et_iact(int16_t nn);
     71extern  int16_t ef_iact(int16_t nn);
     72extern  int16_t rd_iact(int16_t nn);
     73extern  int16_t nd_iact(int16_t nn, int16_t k);
     74extern  int16_t et_iwsn(int16_t nn);
     75extern  int16_t ef_iwsn(int16_t nn);
     76extern  int16_t rd_iwsn(int16_t nn);
     77extern  int16_t nd_iwsn(int16_t nn, int16_t k);
     78extern  int16_t et_ires(int16_t n);
     79extern  int16_t ef_ires(int16_t n);
     80extern  int16_t rd_ires(int16_t n);
     81extern  int16_t nd_ires(int16_t n, int16_t k);
     82extern  int16_t et_imlt(int16_t n);
     83extern  int16_t ef_imlt(int16_t n);
     84extern  int16_t rd_imlt(int16_t n);
     85extern  int16_t nd_imlt(int16_t n, int16_t k);
     86
     87extern  uint16_t        fromfpu(uint16_t fputime);
     88
     89extern  void    *memset(void *vp, int8_t c, int16_t n);
     90
     91/*
     92
     93*/
     94
     95extern  int16_t curvce, curfunc, curpnt, hitbox, astat, idnamsw;
     96extern  int16_t cxval, cyval, cxrate, cyrate, curslim, cmtype, cmfirst;
     97extern  int16_t pecase, pntsv, npts, subj, idimsw, wcflag, imflag;
     98extern  int16_t idcfsw, idsrcsw, vtcrow, vtccol, stcrow, stccol;
     99extern  int16_t vtxval, vtyval;
     100
     101extern  int16_t temax, temin;
     102
     103extern  int16_t *cratex, *cratey, crate0[], crate1[];
     104
     105extern  uint16_t        *instob;
     106
     107extern  int8_t  bfs[];
     108extern  int8_t  *idbxlbl[];
     109
     110extern  int16_t fnoff[];
     111extern  int16_t idbox[][8];
    112112
    113113extern  struct  selbox  *csbp;
     
    124124
    125125void    idx_key(void);
    126 short   idnfld(short k);
     126int16_t idnfld(int16_t k);
    127127void    idcxupd(void);
    128128void    idcyupd(void);
     
    134134*/
    135135
    136 short   zonemax[9] = { 63, 119, 175, 231, 287, 343, 399, 455, 509};
    137 
    138 short   zoneinc[9] = {  2,   2,   4,   9,  18,  36,  73, 146, 303};
     136int16_t zonemax[9] = { 63, 119, 175, 231, 287, 343, 399, 455, 509};
     137
     138int16_t zoneinc[9] = {  2,   2,   4,   9,  18,  36,  73, 146, 303};
    139139
    140140struct  fet     id_fet1[] = {
     
    163163};
    164164
    165 char    *srctbl[] = {           /* source label table */
     165int8_t  *srctbl[] = {           /* source label table */
    166166
    167167        "       ",      /*  0 */
     
    248248void idcyupd(void)
    249249{
    250         register short pval, vh, vl;
     250        register int16_t pval, vh, vl;
    251251
    252252        if (wcflag NE -1)               /* ws/cf menu page can't be up */
     
    317317void idcxupd(void)
    318318{
    319         register unsigned th, tl;
    320         register unsigned fptime, stime;
    321         short zone;
     319        register uint16_t th, tl;
     320        register uint16_t fptime, stime;
     321        int16_t zone;
    322322
    323323        if (idimsw) {                   /* see if instrument menu is up */
     
    435435*/
    436436
    437 short idnfld(short k)
     437int16_t idnfld(int16_t k)
    438438{
    439         register short endpnt, basepnt, t, fn;
     439        register int16_t endpnt, basepnt, t, fn;
    440440        register struct idfnhdr *fp;
    441441        register struct instdef *ip;
     
    541541        register struct sment *smp;
    542542        register struct valent *vep;
    543         register short i;
     543        register int16_t i;
    544544        register struct instdef *ip;
    545545
Note: See TracChangeset for help on using the changeset viewer.