Changeset 7ecfb7b in buchla-68k


Ignore:
Timestamp:
07/14/2017 09:11:47 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
aa021e2
Parents:
4810254
Message:

Unused variables and parameters.

Files:
97 edited

Legend:

Unmodified
Added
Removed
  • iolib/dofmt.c

    r4810254 r7ecfb7b  
    4545
    4646        int16_t hradix,
    47                 lowbit,
    4847                length,
    4948                fplus,
  • iolib/rawio.c

    r4810254 r7ecfb7b  
    8383
    8484                for (j = 0; j < nc; j++)        /* scan each byte of ctl */
    85                         if (*ctl++ EQ c )       /* done if we find it */
     85                        if (*cp++ EQ c )        /* done if we find it */
    8686                                return((int16_t)c);
    8787
  • libcio/conin.c

    r4810254 r7ecfb7b  
    1515        int16_t         nbp;
    1616        register int16_t l;
     17
     18        (void)arg;
    1719
    1820        if (_ConBuf[1] EQ 0) {
  • libcio/fseek.c

    r4810254 r7ecfb7b  
    1616int16_t fseek(FILE *fp, int32_t pos, int16_t mode)
    1717{
    18         register int16_t i, lr;
    19         int32_t curpos;
     18        register int16_t lr;
    2019
    2120        if (fp->_flags & _DIRTY) {
  • libcio/fsinit.c

    r4810254 r7ecfb7b  
    4141int16_t _badfio(io_arg arg, int8_t *buff, int16_t len)
    4242{
     43        (void)arg;
     44        (void)buff;
     45        (void)len;
     46
    4347        errno = EBADF;          /* set bad fd code */
    4448        return(FAILURE);        /* return with an error indication */
     
    5357int16_t _badfc(io_arg arg)
    5458{
     59        (void)arg;
     60
    5561        errno = EBADF;          /* set bad fd code */
    5662        return(FAILURE);        /* return with an error indication */
     
    6571int16_t _nopo(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp)
    6672{
     73        (void)name;
     74        (void)flag;
     75        (void)mode;
     76        (void)chp;
     77        (void)dp;
     78
    6779        return(SUCCESS);        /* return with a non-error indication */
    6880}
     
    7688int16_t _nopc(io_arg arg)
    7789{
     90        (void)arg;
     91
    7892        return(SUCCESS);        /* return with a non-error indication */
    7993}
  • libcio/fstubs.c

    r4810254 r7ecfb7b  
    3838int16_t readbuf(int16_t dev, int8_t *buf)
    3939{
     40        (void)dev;
     41        (void)buf;
     42
    4043        xtrap15();
    4144        return(1);
  • libcio/open.c

    r4810254 r7ecfb7b  
    179179        int8_t  tmpname[9], tmpext[4];
    180180
     181        (void)mode;
     182        (void)dp;
     183
    181184        /* search for an available fcb entry */
    182185
  • libcio/rename.c

    r4810254 r7ecfb7b  
    1010int16_t rename(int8_t *old, int8_t *new)
    1111{
    12         int8_t buff[60];
     12        (void)old;
     13        (void)new;
    1314
    1415        return(-1);             /* return an error for now */
  • prolog/croot.c

    r4810254 r7ecfb7b  
    133133        }
    134134
     135#else
     136        (void)cp;
     137        (void)k;
     138        (void)fname;
    135139#endif
    136140
  • ram/adselbx.c

    r4810254 r7ecfb7b  
    5656void admtxt(int16_t row, int16_t col, int8_t *txt, int16_t tag)
    5757{
     58        (void)tag;
     59
    5860        if (v_regs[5] & 0x0180)
    5961                vbank(0);
     
    7072void admenu(int16_t n)
    7173{
    72         register int16_t i;
    73 
    7474        if (n GE 0) {           /* put up a submenu */
    7575
  • ram/asgdsp.c

    r4810254 r7ecfb7b  
    390390{
    391391        register int16_t cx, i;
    392         register int8_t *bfsp;
    393392        int8_t buf1[4], buf2[4];
    394393
  • ram/asgvce.c

    r4810254 r7ecfb7b  
    301301        register int16_t trg;
    302302        register int16_t aflag;
    303         register struct nevent *np;
    304         register struct n_entry *ep;
    305303
    306304        DB_ENTR("asgvce");
  • ram/barbadj.c

    r4810254 r7ecfb7b  
    5050void BarBadj(int16_t bar, int16_t val)
    5151{
    52         register int16_t bardot, barpos, curdif;
     52        register int16_t bardot, curdif;
    5353        register uint16_t baradr;
    5454        int16_t barcol, bardif, curbar, i, newbar;
  • ram/dopatch.c

    r4810254 r7ecfb7b  
    209209                chan = 0x000F & (suba >>  7);           /* channel */
    210210                trig = 0x007F &  suba;                  /* trigger */
     211
     212                (void)port;
     213                (void)chan;
    211214        }
    212215
  • ram/enterit.c

    r4810254 r7ecfb7b  
    7171void nodkey(int16_t k)
    7272{
     73        (void)k;
    7374}
    7475
     
    8182int16_t nonf(int16_t k)
    8283{
     84        (void)k;
     85
    8386        return(SUCCESS);
    8487}
     
    9295int16_t entbh(int16_t n)
    9396{
     97        (void)n;
     98
    9499        enterit();
    95100        return(SUCCESS);
     
    443448void stddkey(int16_t k)
    444449{
     450        (void)k;
     451
    445452        if (infield(stcrow, stccol, curfet)) {
    446453
  • ram/etaccn.c

    r4810254 r7ecfb7b  
    1717{
    1818        register int16_t ctl;
    19 
    20         int8_t buf[4];
    2119
    2220        ctl = 0x00FF & (n >> 8);
  • ram/etadep.c

    r4810254 r7ecfb7b  
    1616int16_t et_adep(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", ps_dpth);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etadyn.c

    r4810254 r7ecfb7b  
    3737{
    3838        register int16_t g, i, val;
    39         register int32_t ltmp;
    4039        register uint16_t *fpu;
    4140        register struct idfnhdr *fp;
  • ram/etagch.c

    r4810254 r7ecfb7b  
    1717{
    1818        register int16_t grp;
    19 
    20         int8_t buf[4];
    2119
    2220        grp = 0x00FF & (n >> 8);
  • ram/etagpt.c

    r4810254 r7ecfb7b  
    3636int16_t ef_agpt(int16_t n)
    3737{
    38         register int16_t tmpval, grp, i;
     38        register int16_t grp, i;
    3939
    4040        grp = 0x00FF & (n >> 8);
  • ram/etains.c

    r4810254 r7ecfb7b  
    3232{
    3333        register int16_t grp;
    34 
    35         int8_t buf[4];
    3634
    3735        grp = 0x00FF & (n >> 8);
     
    8078{
    8179        register int16_t n, grp;
    82         int8_t buf[4];
    8380
    8481        n = 0x00FF & nn;
  • ram/etaint.c

    r4810254 r7ecfb7b  
    1616int16_t et_aint(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", ps_intn);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etaopt.c

    r4810254 r7ecfb7b  
    1616int16_t et_aopt(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%01.1d", curmop);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[1] = '\0';                 /* terminate the string in ebuf */
  • ram/etaprg.c

    r4810254 r7ecfb7b  
    1818int16_t et_aprg(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%02d", prgchan);
    2123        ebflag = TRUE;
     
    3335{
    3436        register int16_t i, tmpval;
     37
     38        (void)n;
    3539
    3640        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etarat.c

    r4810254 r7ecfb7b  
    1616int16_t et_arat(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", ps_rate);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etatab.c

    r4810254 r7ecfb7b  
    1616int16_t et_atab(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", curasg);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etatun.c

    r4810254 r7ecfb7b  
    1616int16_t et_atun(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%01.1d", curtun);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[1] = '\0';                 /* terminate the string in ebuf */
  • ram/etdyn.c

    r4810254 r7ecfb7b  
    100100int16_t nd_dyn(int16_t n, int16_t k)
    101101{
     102        (void)n;
     103
    102104        ebuf[0]  = k + '0';
    103105
  • ram/etiact.c

    r4810254 r7ecfb7b  
    1919{
    2020        register struct instpnt *pp;
     21
     22        (void)nn;
    2123
    2224        pp = &vbufs[curvce].idhpnt[curpnt];
     
    6769        register struct instpnt *pp;
    6870        register struct idfnhdr *fp;
     71
     72        (void)nn;
    6973
    7074        fp = &vbufs[curvce].idhfnc[curfunc];
  • ram/eticnf.c

    r4810254 r7ecfb7b  
    1818int16_t et_icnf(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%02d", vbufs[curvce].idhcfg);
    2123        ebflag = TRUE;
     
    3335{
    3436        register int16_t i, tmpval;
     37
     38        (void)n;
    3539
    3640        ebuf[2] = '\0';                 /* terminate the string in ebuf */
     
    7983int16_t nd_icnf(int16_t n, int16_t k)
    8084{
    81         register int16_t ec, c;
     85        register int16_t ec;
    8286
    8387        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
  • ram/etidin.c

    r4810254 r7ecfb7b  
    1818int16_t et_idin(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%02d", curinst);
    2123        ebflag = TRUE;
     
    3436{
    3537        register int16_t i, tmpval, j;
    36         register struct instdef *ip;
     38
     39        (void)n;
    3740
    3841        if (idcfsw) {           /* 'E' with menu up */
     
    152155int16_t nd_idin(int16_t n, int16_t k)
    153156{
    154         register int16_t ec, c;
     157        register int16_t ec;
    155158
    156159        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
  • ram/etimlt.c

    r4810254 r7ecfb7b  
    5555        register struct idfnhdr *fp;
    5656
     57        (void)n;
     58
    5759        ip = &vbufs[curvce];
    5860        fp = &ip->idhfnc[curfunc];
     
    8082int16_t ef_imlt(int16_t n)
    8183{
    82         register int16_t i, tmpval, srctmp;
     84        register int16_t tmpval, srctmp;
    8385        register struct instdef *ip;
    8486        register struct idfnhdr *fp;
     87
     88        (void)n;
    8589
    8690        ip = &vbufs[curvce];
  • ram/etinst.c

    r4810254 r7ecfb7b  
    111111        register int16_t ec;
    112112
     113        (void)n;
     114
    113115        ec = stccol - cfetp->flcol;
    114116        ebuf[ec]  = k + '0';
  • ram/etioas.c

    r4810254 r7ecfb7b  
    2222int16_t et_ioas(int16_t n)
    2323{
     24        (void)n;
     25
    2426        sprintf(ebuf, "%02.2d", curasg);
    2527        ebflag = TRUE;
     
    3941        register int16_t ival;
    4042        register struct s_entry *ep;
     43
     44        (void)n;
    4145
    4246        ebuf[2] = '\0';
     
    8185int16_t rd_ioas(int16_t n)
    8286{
     87        (void)n;
     88
    8389        sprintf(dspbuf, "%02.2d", curasg);
    8490
     
    99105{
    100106        register int16_t ec;
     107
     108        (void)n;
    101109
    102110        ec = stccol - cfetp->flcol;
     
    125133int16_t et_tune(int16_t n)
    126134{
     135        (void)n;
     136
    127137        ebuf[0] = '0' + curtun;
    128138        ebuf[1] = '\0';
     
    141151        register int16_t ival;
    142152        register struct s_entry *ep;
     153
     154        (void)n;
    143155
    144156        ebuf[1] = '\0';
     
    177189int16_t rd_tune(int16_t n)
    178190{
     191        (void)n;
     192
    179193        if (v_regs[5] & 0x0180)
    180194                vbank(0);
     
    193207int16_t nd_tune(int16_t n, int16_t k)
    194208{
    195         register int16_t ec;
     209        (void)n;
    196210
    197211        ebuf[0]  = k + '0';
     
    219233int16_t et_tmpo(int16_t n)
    220234{
     235        (void)n;
     236
    221237        sprintf(ebuf, "%03.3d", tmpoval);
    222238        ebflag = TRUE;
     
    235251        register int16_t ival;
    236252        register struct s_entry *ep;
     253
     254        (void)n;
    237255
    238256        ebuf[3] = '\0';
     
    277295int16_t rd_tmpo(int16_t n)
    278296{
     297        (void)n;
     298
    279299        sprintf(dspbuf, "%03.3d", tmpoval);
    280300
     
    296316{
    297317        register int16_t ec;
     318
     319        (void)n;
    298320
    299321        ec = stccol - cfetp->flcol;
     
    325347        register int16_t th, tl;
    326348        register int32_t tt, sc, sf;
     349
     350        (void)n;
    327351
    328352        sc = 1000L;
     
    349373        register uint16_t tmpval;
    350374        register struct s_entry *ep;
     375
     376        (void)n;
    351377
    352378        ebuf[2] = '.';                  /* add implied decimal point */
     
    403429        register int32_t tt, sc, sf;
    404430
     431        (void)n;
     432
    405433        sc = 1000L;
    406434        sf = 100L;
     
    428456        register int16_t ec;
    429457
     458        (void)n;
     459
    430460        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
    431461
  • ram/etipnt.c

    r4810254 r7ecfb7b  
    1818int16_t et_ipnt(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%02d", subj);
    2123        ebflag = TRUE;
     
    3537        register struct idfnhdr *fp;
    3638        register struct instdef *ip;
     39
     40        (void)n;
    3741
    3842        ip = &vbufs[curvce];            /* set instrument pointer */
  • ram/etires.c

    r4810254 r7ecfb7b  
    3232int16_t et_ires(int16_t n)
    3333{
     34        (void)n;
     35
    3436        if (curfunc NE 4)
    3537                return(FAILURE);
     
    5052{
    5153        register int16_t tmpval;
     54
     55        (void)n;
    5256
    5357        if (curfunc NE 4)
  • ram/etitim.c

    r4810254 r7ecfb7b  
    2020        register int16_t th, tl;
    2121        register int32_t tt, sc;
     22
     23        (void)n;
    2224
    2325        pntsel();               /* make sure edit limits are current */
     
    4749int16_t ef_itim(int16_t n)
    4850{
    49         register int16_t i, endpnt, basept;
     51        register int16_t i;
    5052        register uint16_t tmpval;
    51         register struct idfnhdr *fp;
    52         register struct instdef *ip;
    5353
    54         ip = &vbufs[curvce];            /* set instrument pointer */
    55         fp = &ip->idhfnc[curfunc];      /* set function pointer */
     54        (void)n;
    5655
    5756        ebuf[2] = '.';                  /* add implied decimal point */
  • ram/etival.c

    r4810254 r7ecfb7b  
    1919{
    2020        register int16_t vv, vh, vl;
     21
     22        (void)n;
    2123
    2224        vv = pntptr->ipval >> 5;
     
    4749{
    4850        register int16_t i, tmpval, srctmp;
     51
     52        (void)n;
    4953
    5054        ebuf[2] = '.';
  • ram/etivce.c

    r4810254 r7ecfb7b  
    1818int16_t et_ivce(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%02d", curvce + 1);
    2123        ebflag = TRUE;
     
    3335{
    3436        register int16_t i, tmpval;
     37
     38        (void)n;
    3539
    3640        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etiwsn.c

    r4810254 r7ecfb7b  
    119119int16_t nd_iwsn(int16_t nn, int16_t k)
    120120{
    121         register int16_t ec, c, n;
     121        register int16_t ec, n;
    122122
    123123        n = nn & 0x00FF;
  • ram/etloc.c

    r4810254 r7ecfb7b  
    3131{
    3232        register int16_t g, i, val;
    33         register int32_t ltmp;
    3433        register uint16_t *fpu;
    3534        register struct idfnhdr *fp;
     
    165164int16_t nd_loc(int16_t n, int16_t k)
    166165{
     166        (void)n;
     167
    167168        ebuf[0]  = k + '0';
    168169
  • ram/etmcfn.c

    r4810254 r7ecfb7b  
    1616int16_t et_mcfn(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", vbufs[curvce].idhcfg);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t tmpval;
     35
     36        (void)n;
    3337
    3438        wmctag = FALSE;
     
    5559int16_t rd_mcfn(int16_t n)
    5660{
     61        (void)n;
     62
    5763        sprintf(dspbuf, "%02d", vbufs[curvce].idhcfg);
    5864
     
    7379int16_t nd_mcfn(int16_t n, int16_t k)
    7480{
    75         register int16_t ec, c;
     81        register int16_t ec;
     82
     83        (void)n;
    7684
    7785        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
     
    201209int16_t nd_mwsn(int16_t nn, int16_t k)
    202210{
    203         register int16_t ec, c;
     211        register int16_t ec;
     212
     213        (void)nn;
    204214
    205215        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
  • ram/etres1.c

    r4810254 r7ecfb7b  
    9797int16_t nd_res1(int16_t n, int16_t k)
    9898{
     99        (void)n;
     100
    99101        ebuf[0] = k;
    100102
     
    116118{
    117119        register int16_t val, grp, gs;
    118         int16_t val1, val2, val3;
     120        int16_t val1, val2;
    119121
    120122        grp = abs(angroup) - 1;
     
    246248        register int16_t ec;
    247249
     250        (void)n;
     251
    248252        ec = stccol - cfetp->flcol;
    249253
     
    282286int16_t et_agrp(int16_t n)
    283287{
     288        (void)n;
     289
    284290        sprintf(ebuf, "%02.2d", abs(angroup));
    285291        ebflag = TRUE;
     
    296302{
    297303        register int16_t ival;
     304
     305        (void)n;
    298306
    299307        ebflag = FALSE;
     
    321329        int8_t  buf[4];
    322330
     331        (void)n;
     332
    323333        sprintf(buf, "%02.2d", abs(angroup));
    324334
     
    340350{
    341351        register int16_t ec;
     352
     353        (void)n;
    342354
    343355        ec = stccol - cfetp->flcol;
  • ram/etscor.c

    r4810254 r7ecfb7b  
    1616int16_t et_scor(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02.2d", curscor + 1);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t ival;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';
     
    5963int16_t rd_scor(int16_t n)
    6064{
     65        (void)n;
     66
    6167        sprintf(dspbuf, "%02.2d", curscor + 1);
    6268
     
    7985        register int16_t ec;
    8086
     87        (void)n;
     88
    8189        ec = stccol - cfetp->flcol;
    8290        ebuf[ec]  = k + '0';
  • ram/etsnbt.c

    r4810254 r7ecfb7b  
    1717{
    1818        register int32_t curfr, beat;
     19
     20        (void)n;
    1921
    2022        if (clkrun) {
     
    4345        register int32_t ival;
    4446        register int16_t i;
     47
     48        (void)n;
    4549
    4650        if (clkrun)
     
    7579        int8_t  buf[8];
    7680
     81        (void)n;
     82
    7783        curfr = t_cur;
    7884        beat  = curfr / 48;
     
    97103        register int16_t ec;
    98104
     105        (void)n;
     106
    99107        if (clkrun)
    100108                return(FAILURE);
  • ram/etstrn.c

    r4810254 r7ecfb7b  
    1616int16_t et_strn(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%c%02d", grptran < 0 ? '-' : '+', abs(grptran));
    1921
     
    3234{
    3335        register int16_t ival;
     36
     37        (void)n;
    3438
    3539        ebuf[3] = '\0';
     
    5458int16_t rd_strn(int16_t n)
    5559{
     60        (void)n;
     61
    5662        sprintf(dspbuf, "%c%02d", grptran < 0 ? '-' : '+', abs(grptran));
    5763
     
    7379{
    7480        register int16_t ec;
     81
     82        (void)n;
    7583
    7684        if (sdmctl NE 4)
  • ram/ettpch.c

    r4810254 r7ecfb7b  
    7171        register int16_t key, val;
    7272
     73        (void)nn;
     74
    7375        key = loc2key(stcrow, stccol);
    7476
     
    9193{
    9294        register int16_t key;
     95
     96        (void)nn;
    9397
    9498        ebflag = FALSE;
  • ram/ettrns.c

    r4810254 r7ecfb7b  
    112112int16_t rd_trns(int16_t n)
    113113{
    114         register int16_t trval, i;
     114        register int16_t trval;
    115115        register int8_t trsign;
    116116
     
    183183int16_t nd_trns(int16_t n, int16_t k)
    184184{
    185         register int16_t ec, c, advsw;
     185        register int16_t ec, advsw;
     186
     187        (void)n;
    186188
    187189        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
  • ram/etttab.c

    r4810254 r7ecfb7b  
    1616int16_t et_ttab(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%d", curtun);
    1921        ebflag = TRUE;
     
    3032int16_t ef_ttab(int16_t n)
    3133{
    32         register int16_t i, tmpval;
     34        (void)n;
    3335
    3436        ebuf[1] = '\0';                 /* terminate the string in ebuf */
  • ram/ettval.c

    r4810254 r7ecfb7b  
    3434        register int8_t ts;
    3535
     36        (void)n;
     37
    3638        tv = (tunval < 0 ? -tunval : tunval) >> 1;
    3739        ts = tunval < 0 ? '-' : '+';
     
    5153int16_t ef_tval(int16_t n)
    5254{
    53         register int16_t *ov;
    5455        register int16_t i, tmpval, tv;
    5556        register int8_t ts;
  • ram/etvel.c

    r4810254 r7ecfb7b  
    9595        register int16_t ec;
    9696
     97        (void)n;
     98
    9799        ec = stccol - cfetp->flcol;     /* setup edit buffer column */
    98100        ebuf[ec]  = k + '0';
  • ram/etwavs.c

    r4810254 r7ecfb7b  
    1616int16_t et_wavs(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", curwave + 1);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etwhar.c

    r4810254 r7ecfb7b  
    1616int16_t et_whar(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", curwhrm + 1);
    1921        ebflag = TRUE;
     
    3032{
    3133        register int16_t i, tmpval;
     34
     35        (void)n;
    3236
    3337        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/etwhrv.c

    r4810254 r7ecfb7b  
    1818        register int16_t harv;
    1919        register int8_t hvsgn;
     20
     21        (void)n;
    2022
    2123        if (curwhrv LT 0) {
     
    4648        register int16_t *hv;
    4749        register int16_t i, tmpval;
     50
     51        (void)n;
    4852
    4953        ebuf[4] = '\0';                 /* terminate the string in ebuf */
  • ram/etwoff.c

    r4810254 r7ecfb7b  
    1818        register int16_t hoff;
    1919        register int8_t hosgn;
     20
     21        (void)n;
    2022
    2123        lstwoff = curwoff;
     
    4648int16_t ef_woff(int16_t n)
    4749{
    48         register int16_t *ov;
    4950        register int16_t i, tmpval;
     51
     52        (void)n;
    5053
    5154        ebuf[5] = '\0';                 /* terminate the string in ebuf */
  • ram/etwpnt.c

    r4810254 r7ecfb7b  
    1616int16_t et_wpnt(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%03d", curwpnt);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[3] = '\0';                 /* terminate the string in ebuf */
  • ram/etwslt.c

    r4810254 r7ecfb7b  
    1818int16_t et_wslt(int16_t n)
    1919{
     20        (void)n;
     21
    2022        sprintf(ebuf, "%c", curwslt + 'A');
    2123        ebflag = TRUE;
     
    3234int16_t ef_wslt(int16_t n)
    3335{
     36        (void)n;
     37
    3438        ebuf[1] = '\0';                 /* terminate the string in ebuf */
    3539        ebflag = FALSE;
  • ram/etwvce.c

    r4810254 r7ecfb7b  
    1616int16_t et_wvce(int16_t n)
    1717{
     18        (void)n;
     19
    1820        sprintf(ebuf, "%02d", curvce + 1);
    1921        ebflag = TRUE;
     
    3133{
    3234        register int16_t i, tmpval;
     35
     36        (void)n;
    3337
    3438        ebuf[2] = '\0';                 /* terminate the string in ebuf */
  • ram/idfield.c

    r4810254 r7ecfb7b  
    382382        register struct sment *smp;
    383383        register struct valent *vep;
    384         register int16_t i;
    385         register struct instdef *ip;
    386384
    387385        if (astat) {
  • ram/idselbx.c

    r4810254 r7ecfb7b  
    5252void idtxput(int16_t row, int16_t col, int8_t *txt, int16_t tag)
    5353{
     54        (void)tag;
     55
    5456        if (v_regs[5] & 0x0180)
    5557                vbank(0);
  • ram/im700.c

    r4810254 r7ecfb7b  
    792792        scinit();               /* initialize the score */
    793793
    794         clearer(1, 0);          /* reset the fpu to its nominal values */
     794        clearer(1);             /* reset the fpu to its nominal values */
    795795        getasg(curasg = 0);     /* setup default assignments */
    796796
  • ram/initi.c

    r4810254 r7ecfb7b  
    337337void setivce(int16_t voice)
    338338{
    339         register int16_t i, j, k, oldi;
     339        register int16_t j, k, oldi;
    340340        register struct instdef *ip;
    341341
  • ram/instdsp.c

    r4810254 r7ecfb7b  
    456456void dswin(int16_t n)
    457457{
    458         int16_t th, tl, vh, vl, vv, mltval, lboff;
    459         int8_t *s1, mltstr[6], mltsgn;
     458        int16_t th, tl, vh, vl, vv;
     459        int8_t *s1;
    460460        int32_t tt, sc;
    461461        register int16_t cx, pnt, par;
     
    842842void instdsp(void)
    843843{
    844         register struct instdef *ip;
    845         register struct idfnhdr *fp;
    846 
    847844        instob = &v_score[0];           /* setup object pointer */
    848845        idoct  = &v_obtab[INSTOBJ];     /* setup object control table pointer */
  • ram/lcdlbls.c

    r4810254 r7ecfb7b  
    302302void l_none(int16_t _1, int16_t _2)
    303303{
     304        (void)_1;
     305        (void)_2;
    304306}
    305307
     
    313315{
    314316        register int16_t vce;
     317
     318        (void)_1;
     319        (void)_2;
    315320
    316321        for (vce = 0; vce < 12; vce++)          /* for each voice ... */
     
    335340void rpctl(int16_t stat, int16_t _2)
    336341{
     342        (void)_2;
     343
    337344        if (NOT stat)
    338345                return;
     
    350357void trapper(int16_t stat, int16_t _2)
    351358{
     359        (void)_2;
     360
    352361        if (stat)
    353362                xtrap15();
     
    362371void l_clock(int16_t stat, int16_t _2)
    363372{
     373        (void)_2;
     374
    364375        if (NOT stat)
    365376                return;
     
    443454{
    444455        register int16_t oldi;
     456
     457        (void)_2;
    445458
    446459        if (NOT stat)           /* only act on key closures */
     
    571584void l_load(int16_t stat, int16_t _2)
    572585{
     586        (void)_2;
     587
    573588        if (NOT stat)
    574589                return;
     
    847862void l_adfl(int16_t stat, int16_t _2)
    848863{
     864        (void)_2;
     865
    849866        if (NOT stat)
    850867                return;
     
    861878void l_asgn(int16_t stat, int16_t _2)
    862879{
     880        (void)_2;
     881
    863882        if (NOT stat)                   /* only do this on key closure */
    864883                return;
     
    928947void l_inst(int16_t stat, int16_t _2)
    929948{
     949        (void)_2;
     950
    930951        if (NOT stat)
    931952                return;
     
    10551076void l_dflt(int16_t stat, int16_t _2)
    10561077{
     1078        (void)_2;
     1079
    10571080        if (NOT stat)
    10581081                return;
     
    10691092void l_goto(int16_t stat, int16_t _2)
    10701093{
     1094        (void)_2;
     1095
    10711096        if (NOT stat)                   /* only do this on key closure */
    10721097                return;
     
    13541379*/
    13551380
    1356 void l_prmtr(int16_t stat, int16_t sig)
    1357 {
     1381void l_prmtr(int16_t stat, int16_t _2)
     1382{
     1383        (void)_2;
     1384
    13581385        if (NOT stat)
    13591386                return;
     
    14521479*/
    14531480
    1454 void l_other(int16_t stat, int16_t sig)
    1455 {
     1481void l_other(int16_t stat, int16_t _2)
     1482{
     1483        (void)_2;
     1484
    14561485        if (NOT stat)
    14571486                return;
     
    14691498*/
    14701499
    1471 void l_eq(int16_t stat, int16_t sig)
    1472 {
     1500void l_eq(int16_t stat, int16_t _2)
     1501{
     1502        (void)_2;
     1503
    14731504        if (NOT stat)
    14741505                return;
     
    15081539*/
    15091540
    1510 void l_init(int16_t stat, int16_t sig)
     1541void l_init(int16_t stat, int16_t _2)
    15111542{
    15121543        register uint16_t *fpu;
    15131544        register int16_t barval, i, j;
    1514         int8_t buf[16];
     1545
     1546        (void)_2;
    15151547
    15161548        if (NOT stat)
  • ram/ldfield.c

    r4810254 r7ecfb7b  
    313313void loadem(int16_t key)
    314314{
    315         register int16_t c, i, rc, slot;
     315        register int16_t c, i, rc;
    316316
    317317        rc = FALSE;
     
    356356{
    357357        register int16_t c, col, row, slot;
    358         int8_t buf[4];
    359358
    360359        if (NOT astat)                          /* only on key closure */
  • ram/ldselbx.c

    r4810254 r7ecfb7b  
    105105int16_t scskip(FILE *fp, int16_t ns)
    106106{
    107         register int16_t ehdr, go;
     107        register int16_t go;
    108108        int8_t etype;
    109109        int8_t erms[64];
  • ram/libdsp.c

    r4810254 r7ecfb7b  
    796796int16_t showcat(void)
    797797{
    798         register int16_t i, fcslot, fcrow, fcount;
     798        register int16_t fcslot, fcrow, fcount;
    799799        register uint16_t color;
    800800
  • ram/librw.c

    r4810254 r7ecfb7b  
    557557        register FILE *fp;
    558558        register int16_t        i;
    559         int32_t tnb;
    560559        int8_t cstemp[8];
    561560
  • ram/m7menu.c

    r4810254 r7ecfb7b  
    270270int16_t mdselbx(int16_t n)
    271271{
    272         register uint16_t mlcv, mbcv, mbak;
     272        register uint16_t mbcv, mbak;
    273273        register int16_t rc;
    274274
     
    278278#endif
    279279
    280         mlcv = exp_c(MLINES);
    281280        mbcv = exp_c(MBUTTON);
    282281        mbak = exp_c(MBKGRND);
  • ram/msl.c

    r4810254 r7ecfb7b  
    5555{
    5656        register int8_t *ioadr;
    57         register uint16_t *fpu;
    5857        register struct s_entry *ep;
    5958        register int16_t i, ti, val;
    60         register int32_t rt;
    6159        uint16_t chan, crel, oldsr, port, trg, trig, vel;
    62         int16_t cxprev, cyprev, esi, newsig, oldclk, oldrec;
     60        int16_t esi, newsig, oldclk, oldrec;
    6361        int32_t fctemp;
    6462
  • ram/ptdkey.c

    r4810254 r7ecfb7b  
    5959void SnapPTV(int8_t *s)
    6060{
    61         register uint16_t stim;
    6261        register int16_t i;
    6362        int8_t dbuf[50];
     
    295294void pte2buf(void)
    296295{
    297         register uint16_t spec;
    298 
    299296        memset(ptdebuf, ' ', 50);
    300297
     
    369366                stim =  (n ? ptestm : ptedef)        & 0x007F;
    370367
     368                (void)stim;
     369
    371370                if ((port EQ 0) OR (port EQ 1) OR ((port EQ 2) AND (chan < 2))) {
    372371
     
    486485        register int16_t key, val, vg;
    487486        int8_t buf[8];
     487
     488        (void)k;
    488489
    489490        if (NOT astat)                  /* only do this on key closures */
  • ram/ptread.c

    r4810254 r7ecfb7b  
    212212int16_t ptread(FILE *fp)
    213213{
    214         register int16_t go;
    215214        int8_t cb;
    216 
    217         go = TRUE;
    218215
    219216        ldwmsg(" Busy -- please stand by", (int8_t *)NULL, "  Reading patches",
  • ram/ptselbx.c

    r4810254 r7ecfb7b  
    802802        register int32_t ltemp;
    803803
     804        (void)n;
     805
    804806        if (NOT submenu) {                      /* PATCH DATA ENTRY LINE */
    805807
  • ram/scfield.c

    r4810254 r7ecfb7b  
    156156int16_t et_null(int16_t n)
    157157{
     158        (void)n;
     159
    158160        return(SUCCESS);
    159161}
     
    161163int16_t ef_null(int16_t n)
    162164{
     165        (void)n;
     166
    163167        return(SUCCESS);
    164168}
     
    166170int16_t rd_null(int16_t n)
    167171{
     172        (void)n;
     173
    168174        return(SUCCESS);
    169175}
     
    171177int16_t nd_null(int16_t n, int16_t k)
    172178{
     179        (void)n;
     180        (void)k;
     181
    173182        return(SUCCESS);
    174183}
  • ram/scinit.c

    r4810254 r7ecfb7b  
    227227struct s_entry *e_alc(int16_t w)
    228228{
    229         register struct s_entry *ev, *ex;
     229        register struct s_entry *ex;
    230230
    231231        se_chg = TRUE;
     
    517517int16_t selscor(int16_t ns)
    518518{
    519         register int16_t        oldscor, grp;
     519        register int16_t        oldscor;
    520520        register struct s_entry *nsp, *ep;
    521521
  • ram/scordsp.c

    r4810254 r7ecfb7b  
    657657void sdwin(int16_t n)
    658658{
    659         int16_t atr[64], atrib, i;
     659        int16_t atrib, i;
    660660
    661661        if (ndisp NE 2)                 /* only if score is selected */
  • ram/scselbx.c

    r4810254 r7ecfb7b  
    146146void svtdsp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf)
    147147{
     148        (void)fg;
     149        (void)bg;
     150
    148151        if (v_regs[5] & 0x0180)
    149152                vbank(0);
     
    363366void sdmtxt(int16_t row, int16_t col, int8_t *txt, int16_t tag)
    364367{
     368        (void)tag;
     369
    365370        if ((v_regs[5] & 0x0180) NE 0x0100)
    366371                vbank(1);
     
    464469void scmenu(int16_t n)
    465470{
    466         register int16_t i;
    467471        register struct octent *op;
    468472
     
    10281032int16_t sdboxfn(int16_t n)
    10291033{
    1030         register int16_t        row, col, grp, what, i;
     1034        register int16_t        row, col, i;
    10311035        register struct s_entry *ep;
    10321036        int16_t atr, modewas;
     1037
     1038        (void)n;
    10331039
    10341040        row = hitcy / 14;
  • ram/sctrak.c

    r4810254 r7ecfb7b  
    280280{
    281281        register struct s_entry *rp, *ep;
    282         register int32_t tc, rt;
     282        register int32_t rt;
    283283        register int16_t et, grp;
    284284
  • ram/sedump.c

    r4810254 r7ecfb7b  
    275275{
    276276        register int16_t i;
    277         register struct gdsel *gp;
    278277
    279278        printf("\n");
  • ram/sendval.c

    r4810254 r7ecfb7b  
    8282*/
    8383
    84 void clearer(int16_t stat, int16_t sig)
     84void clearer(int16_t stat)
    8585{
    8686        register uint16_t *fpu;
  • ram/sendval.x

    r4810254 r7ecfb7b  
    1515*/
    1616
    17 extern  void            clearer(int16_t stat, int16_t sig);
     17extern  void            clearer(int16_t stat);
    1818extern  void            sendval(int16_t voice, int16_t par, int16_t ival);
  • ram/setv2gi.c

    r4810254 r7ecfb7b  
    1717{
    1818        register int16_t grp, vce, ins;
    19         register struct instdef *ip;
    20         register struct idfnhdr *fp;
    2119
    2220        ins = ins2grp[group] & 0x00FF;
  • ram/showcfg.c

    r4810254 r7ecfb7b  
    496496int16_t imfnbox(int16_t n)
    497497{
    498         register int16_t row, col;
    499 
    500         row = hitcy / 14;
     498        register int16_t col;
     499
     500        (void)n;
     501
    501502        col = hitcx >> 3;
    502503
  • ram/smscrl.c

    r4810254 r7ecfb7b  
    236236void stopcm(void)
    237237{
    238         register int16_t i;
    239 
    240238        if (PdScDnF)
    241239                SetDTop(CurLine, CurScan = TOPSCAN);
     
    274272void stopsm(void)
    275273{
    276         register int16_t i;
    277 
    278274        if (PdScDnF)
    279275                SetDTop(CurLine, CurScan = TOPSCAN);
  • ram/sqdisp.c

    r4810254 r7ecfb7b  
    123123void dsact(int8_t *buf, uint16_t act, uint16_t dat)
    124124{
    125         uint16_t sqa, sqd, sqf, sqr, sqt, t1, t2, val;
     125        uint16_t sqa, sqd, sqf, sqr, sqt;
    126126        uint16_t chan, i, key, port;
    127127
     
    304304void sqwin(int16_t n)
    305305{
    306         register int16_t i, j;
     306        register int16_t i;
    307307        int16_t atrbuf[64];
    308308        int8_t  linbuf[66];
  • ram/sqdkey.c

    r4810254 r7ecfb7b  
    341341        int8_t buf[8];
    342342
     343        (void)k;
     344
    343345        if (NOT astat)                  /* only do this on key closures */
    344346                return;
  • ram/sqscan.c

    r4810254 r7ecfb7b  
    115115int16_t Qevent(void)
    116116{
    117         register int16_t aux1, aux2, aux3, aux4, aux5;
     117        register int16_t aux1, aux2, aux3, aux4;
    118118        register int8_t *chptr;
    119119        register struct s_entry *tsp1, *tsp2;
  • ram/sqselbx.c

    r4810254 r7ecfb7b  
    421421        register int32_t ltemp;
    422422
     423        (void)n;
     424
    423425        if (NOT submenu) {                      /* SEQUENCE DATA ENTRY LINE */
    424426
  • ram/sqwrite.c

    r4810254 r7ecfb7b  
    6565        int16_t seq;
    6666        int8_t cb, zero;
    67         int8_t scid[48];
    6867
    6968#if     DEBUGIT
  • ram/tdfield.c

    r4810254 r7ecfb7b  
    209209void tdcyupd(void)
    210210{
    211         register int16_t pval, vh, vl;
    212 
    213211        if (tdnamsw) {  /* see if we're in the menu area */
    214212
  • ram/tdselbx.c

    r4810254 r7ecfb7b  
    128128int16_t tdfnbox(int16_t n)
    129129{
    130         register int16_t i, key, dcol, row, col;
     130        register int16_t i, dcol, row, col;
    131131
    132132        row = hitcy / 14;
  • ram/uslice.c

    r4810254 r7ecfb7b  
    430430        register struct gdsel *gdsep;
    431431        register uint16_t i, ncolor, w;
    432         uint16_t *ncptr, *nctabp;
     432        uint16_t *ncptr;
    433433        struct gdsel **gdstp, *gdprv, *gdnxt;
    434434        int16_t wrote;
     
    440440
    441441        gdstp = gdstb;                          /* group control table */
    442         nctabp = sd ? nttab2 : nttab1;          /* note transition table */
    443442        ncptr = gtctab;                         /* group to color table */
    444443        wrote = 0;                              /* reset count of active groups */
  • ram/wdfield.c

    r4810254 r7ecfb7b  
    9898void updfpu(void)
    9999{
    100         register int16_t i;
    101100        register int16_t *wsp1, *wsp2;
    102101
     
    355354{
    356355        register struct instdef *ip;
    357         register int16_t *ov, *hv;
    358         register int16_t i, j, k, tv;
     356        register int16_t *hv;
    359357        register int8_t wsgn;
    360         int16_t wval, cwnp, cwin;
     358        int16_t wval;
    361359
    362360        ip = &vbufs[curvce];
  • ram/wdselbx.c

    r4810254 r7ecfb7b  
    9090int16_t wdfnbox(int16_t n)
    9191{
    92         register int16_t wval;
    93         register int8_t wsgn;
    94         register int16_t *fpuws;
    95 
    9692        switch (n) {    /* switch off of window ID */
    9793
  • ram/wheel.c

    r4810254 r7ecfb7b  
    727727void txstd(void)
    728728{
    729         register int16_t i, oldcx, oldi, txdelta, txcdvr;
     729        register int16_t oldcx, txdelta, txcdvr;
    730730
    731731        trkball = TRUE;                         /* set trackball mode */
     
    815815void tystd(void)
    816816{
    817         register int16_t i, oldcy, oldi, tydelta, tycdvr;
     817        register int16_t oldcy, tydelta, tycdvr;
    818818
    819819        trkball = TRUE;                         /* set trackball mode */
     
    901901void curproc(void)
    902902{
    903         register int16_t i, cxprev, cyprev;
     903        register int16_t cxprev, cyprev;
    904904        int16_t oldcx, oldcy;
    905905        register uint16_t oldi;
  • rom/romp.c

    r4810254 r7ecfb7b  
    32673267*/
    32683268
    3269 void rompbp(int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, int32_t d6, int32_t d7, int8_t *a0, int8_t *a1, int8_t *a2, int8_t *a3, int8_t *a4, int8_t *a5, int8_t *a6, int8_t *a7, uint16_t sr0, uint16_t sr, int8_t *pc)
     3269void rompbp(uint32_t d0, ...)
    32703270{
    32713271        register int16_t i;
    32723272
    32733273        regptr = (struct regs *)&d0;    /* make registers accessable */
    3274         pc -= 2L;                       /* adjust pc */
     3274        regptr->reg_pc -= 2L;           /* adjust pc */
    32753275
    32763276        if (-1 EQ setipl(iplev))                /* enable interrupts */
     
    32873287                regptr->a_reg[7] = ISTACK;      /* setup initial stack */
    32883288
    3289                 sr = INITSR;            /* setup sr */
    3290                 pc += 2L;               /* adjust pc past TRAP 15 */
     3289                regptr->reg_sr = INITSR;        /* setup sr */
     3290                regptr->reg_pc += 2L;           /* adjust pc past TRAP 15 */
    32913291
    32923292        } else {                        /* breakpoint */
     
    32963296                showrs(regptr);         /* show registers */
    32973297
    3298                 if (bphit() EQ FALSE)   /* fixup breakpoints */
    3299                         pc += 2L;       /* and maybe the pc */
     3298                if (bphit() EQ FALSE)           /* fixup breakpoints */
     3299                        regptr->reg_pc += 2L;   /* and maybe the pc */
    33003300
    33013301        }
     
    35693569        GLCcrc(0, 0);
    35703570
    3571         (int8_t *)BIOS(B_SETV, 47, trap15);     /* set ROMP trap vec */
     3571        BIOS(B_SETV, 47, trap15);       /* set ROMP trap vec */
    35723572
    35733573        for (i = 0; i < 128; i++) {
     
    35923592        progid();       /* identify the program */
    35933593
    3594         (int8_t *)BIOS(B_SETV, 47, trap15);     /* set ROMP trap vec */
     3594        BIOS(B_SETV, 47, trap15);       /* set ROMP trap vec */
    35953595        writeln(cmdunit, "\r\n\n");
    35963596
  • rom/romp.x

    r4810254 r7ecfb7b  
    164164extern  void            puthn(uint32_t num, int16_t cw, int16_t unit);
    165165extern  void            putn(uint32_t num, int16_t cw, int16_t unit);
    166 extern  void            rompbp(int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, int32_t d6, int32_t d7, int8_t *a0, int8_t *a1, int8_t *a2, int8_t *a3, int8_t *a4, int8_t *a5, int8_t *a6, int8_t *a7, uint16_t sr0, uint16_t sr, int8_t *pc);
     166extern  void            rompbp(uint32_t d0, ...);
    167167extern  int16_t         setp(void *var, void *deflt);
    168168extern  int16_t         setvar(int32_t *var, int32_t deflt);
Note: See TracChangeset for help on using the changeset viewer.