Changeset b28c09e in buchla-68k


Ignore:
Timestamp:
11/15/2017 09:13:05 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
b27040e
Parents:
e68b406
Message:

Avoid shadowing.

Location:
ram
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ram/asgvce.c

    re68b406 rb28c09e  
    303303        register int16_t vp;
    304304        register int16_t trg;
    305         register int16_t aflag;
     305        register int16_t flag;
    306306
    307307        DB_ENTR("asgvce");
     
    337337
    338338                if (tv EQ -1)
    339                         aflag = TRUE;           /* OK - unassigned */
     339                        flag = TRUE;            /* OK - unassigned */
    340340                else if (0 EQ (tv & (MKEYHELD << 8)))
    341                         aflag = TRUE;           /* OK - not held */
     341                        flag = TRUE;            /* OK - not held */
    342342                else
    343                         aflag = FALSE;          /* NO - held */
    344 
    345                 if (aflag AND (vce2grp[vp] EQ (grp + 1))) {
     343                        flag = FALSE;           /* NO - held */
     344
     345                if (flag AND (vce2grp[vp] EQ (grp + 1))) {
    346346
    347347                        if ((ins2grp[grp] & GTAG1) AND
  • ram/delpnts.c

    re68b406 rb28c09e  
    216216{
    217217        register int8_t *fp1, *fp2;
    218         register int16_t i, j, k, l, npts;
     218        register int16_t i, j, k, l, pcnt;
    219219        int16_t topnt, frompt, oldi;
    220220
     
    227227        topnt = NIPNTS - ip->idhplft;           /* calculate move parameters */
    228228        frompt = topnt - 1;
    229         npts = frompt - inpnt;
     229        pcnt = frompt - inpnt;
    230230        i = topnt;
    231231        j = frompt;
     
    234234        if (debugsw)
    235235                printf("inspnt():  fn=%d, in=%d, to=%d, from=%d, npts=%d, pif=%d\r\n",
    236                         fn, inpnt, topnt, frompt, npts, ip->idhfnc[fn].idfpif);
     236                        fn, inpnt, topnt, frompt, pcnt, ip->idhfnc[fn].idfpif);
    237237#endif
    238238
     
    242242/* ++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++++++ */
    243243
    244         for (k = 0; k < npts; k++) {            /* move things up */
     244        for (k = 0; k < pcnt; k++) {            /* move things up */
    245245
    246246                fp1 = (int8_t *)&ip->idhpnt[i--];
  • ram/ldselbx.c

    re68b406 rb28c09e  
    7070        register int32_t count;
    7171        register int16_t c;
    72         int8_t errbuf[64];
     72        int8_t buf[64];
    7373
    7474        for (count = 0; count < len; count++) {
     
    7878                if (EOF EQ (c = getc(fp))) {
    7979
    80                         sprintf(errbuf, "errno = %d", errno);
     80                        sprintf(buf, "errno = %d", errno);
    8181
    8282                        ldermsg("Unexpected EOF",
    83                                 errbuf, (int8_t *)NULL, LD_EMCF, LD_EMCB);
     83                                buf, (int8_t *)NULL, LD_EMCF, LD_EMCB);
    8484
    8585#if     DEBUGIT
  • ram/showcfg.c

    re68b406 rb28c09e  
    313313{
    314314        register int16_t i, np;
    315         int8_t idbuf[8];
     315        int8_t buf[8];
    316316        register int8_t *cfgdat, *cfp;
    317317
     
    321321        tsplot4(instob, 64, CFBX18, wcmrow, 4 + wcmcol, "Config #", 14);
    322322
    323         sprintf(idbuf, "%02d", nn);
    324         tsplot4(instob, 64, CFBX18, wcmrow, 12 + wcmcol, idbuf, 14);
     323        sprintf(buf, "%02d", nn);
     324        tsplot4(instob, 64, CFBX18, wcmrow, 12 + wcmcol, buf, 14);
    325325
    326326        cfgdat = cfgptr[nn];
Note: See TracChangeset for help on using the changeset viewer.