Changeset 00c31a2 in buchla-68k


Ignore:
Timestamp:
11/15/2017 07:46:27 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
58ff1a9
Parents:
72741f4
Message:

Fixed parentheses and braces.

Location:
ram
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • ram/cminit.c

    r72741f4 r00c31a2  
    122122        QQop = QQstr;
    123123
    124         while (*QQop++ = *q++) ;
     124        while ((*QQop++ = *q++)) ;
    125125
    126126        QQip = t;
     
    163163        QQop = QQstr;
    164164
    165         while (*QQop++ = *q++) ;
     165        while ((*QQop++ = *q++)) ;
    166166
    167167        QQip = t;
     
    195195        n = c - '0';
    196196
    197         while (c = *p) {
     197        while ((c = *p)) {
    198198
    199199                if (!isascii(c))
     
    252252        n = 0;
    253253
    254         while (p = *l++) {
     254        while ((p = *l++)) {
    255255
    256256                q = p;
     
    260260                        QQop = QQstr;
    261261
    262                         while (*QQop++ = *q++) ;
     262                        while ((*QQop++ = *q++)) ;
    263263
    264264                        QQlnum = n;
     
    288288        n = 0;
    289289
    290         while (p = *l++) {
     290        while ((p = *l++)) {
    291291
    292292                q = p;
     
    296296                        QQop = QQstr;
    297297
    298                         while (*QQop++ = *q++) ;
     298                        while ((*QQop++ = *q++)) ;
    299299
    300300                        QQlnum = n;
  • ram/dformat.c

    r72741f4 r00c31a2  
    5555        for (trk = 0; trk < 80; trk++) {
    5656
    57                 if (dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
    58                     trk, 0, 1, 0x87654321L, 0xE5E5)) {
     57                if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
     58                    trk, 0, 1, 0x87654321L, 0xE5E5))) {
    5959
    6060                        defect = 1;     /* unable to format 1st side */
     
    6464                if (dfsides EQ 2) {     /* format second side */
    6565
    66                         if (dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
    67                             trk, 1, 1, 0x87654321L, 0xE5E5)) {
     66                        if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
     67                            trk, 1, 1, 0x87654321L, 0xE5E5))) {
    6868
    6969                                defect = 2;     /* unable to format 2nd side */
     
    8080        /* write boot sector to disk */
    8181
    82         if (dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1)) {
     82        if ((dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1))) {
    8383
    8484                defect = 3;     /* unable to write boot sector */
     
    101101        }
    102102
    103         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    104             DF_FSIZ, DF_FREC, 0)) {
     103        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     104            DF_FSIZ, DF_FREC, 0))) {
    105105
    106106                defect = 4;     /* unable to write primary FAT */
     
    108108        }
    109109
    110         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    111             DF_FSIZ, DF_FREC-DF_FSIZ, 0)) {
     110        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     111            DF_FSIZ, DF_FREC-DF_FSIZ, 0))) {
    112112
    113113                defect = 5;     /* unable to write secondary FAT */
     
    119119        memsetw(dfbuf, 0, 4096);
    120120
    121         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    122             DF_DSIZ, DF_FREC+DF_FSIZ, 0)) {
     121        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     122            DF_DSIZ, DF_FREC+DF_FSIZ, 0))) {
    123123
    124124                defect = 6;     /* unable to write directory */
  • ram/enterit.c

    r72741f4 r00c31a2  
    303303                /* limit text movement to 1 axis */
    304304
    305                 if (cmtype NE CT_GRAF)
     305                if (cmtype NE CT_GRAF) {
    306306                        if (acx GE acy)
    307307                                cyrate = 0;
    308308                        else
    309309                                cxrate = 0;
     310                }
    310311        }
    311312}
  • ram/etiosc.c

    r72741f4 r00c31a2  
    102102int16_t cnvp2c(void)
    103103{
    104         if (ebuf[0] EQ 9)               /* high limit is C9 00 */
     104        if (ebuf[0] EQ 9) {             /* high limit is C9 00 */
    105105                if (ebuf[1] GT 2)
    106106                        return(FAILURE);
    107                 else if (ebuf[1] EQ 2)
     107                else if (ebuf[1] EQ 2) {
    108108                        if (ebuf[2] NE 7)
    109109                                return(FAILURE);
    110110                        else if (ebuf[3] OR ebuf[4])
    111111                                return(FAILURE);
     112                }
     113        }
    112114
    113115        cents = (ebuf[0] * 1200) + pitches[ebuf[1]] + shrpflt[ebuf[2] - 7]
  • ram/instdsp.c

    r72741f4 r00c31a2  
    218218        }
    219219
    220         if (how AND (xp EQ 0))
     220        if (how AND (xp EQ 0)) {
    221221                if (wn EQ 12)
    222222                        drawpt(ptx, pty, ID_SELD);
    223223                else
    224224                        idpoint(ptx, pty, ID_SELD);
     225        }
    225226
    226227        for (i = 1; i < np; i++) {
  • ram/libdsp.c

    r72741f4 r00c31a2  
    12021202        /* make sure the name is unique */
    12031203
    1204         if (rc = ckdups()) {
     1204        if ((rc = ckdups())) {
    12051205
    12061206                sprintf(ldmsg1, "Duplicate %s", ftypes[rc - 1][2]);
  • ram/msl.c

    r72741f4 r00c31a2  
    380380                                case 73:                /* Tempo */
    381381
    382                                         if (aval > 50)          /* dead band */
     382                                        if (aval > 50) {        /* dead band */
    383383                                                if (aval < 53)
    384384                                                        aval = 50;
    385385                                                else
    386386                                                        aval -= 2;
     387                                        }
    387388
    388389                                        tmpomlt = aval > 100 ? 100 : aval;
     
    417418                                case 74:                /* Time */
    418419
    419                                         if (aval > 50)          /* dead band */
     420                                        if (aval > 50) {        /* dead band */
    420421                                                if (aval < 53)
    421422                                                        aval = 50;
    422423                                                else
    423424                                                        aval -= 2;
     425                                        }
    424426
    425427                                        ti = aval > 100 ? 100 : aval;
     
    447449                                case 75:                /* Tuning */
    448450
    449                                         if (aval > 50)          /* dead band */
     451                                        if (aval > 50) {        /* dead band */
    450452                                                if (aval < 53)
    451453                                                        aval = 50;
    452454                                                else
    453455                                                        aval -= 2;
     456                                        }
    454457
    455458                                        i = (aval > 100) ? 100 : aval;
  • ram/ptdkey.c

    r72741f4 r00c31a2  
    11851185
    11861186                        if (((ptesuba & 0x0001) AND (stccol EQ 45)) OR
    1187                             ((0 EQ ptesuba & 0x0001) AND (stccol EQ 44)))
     1187                            ((0 EQ (ptesuba & 0x0001)) AND (stccol EQ 44)))
    11881188                                ctcon();
    11891189                        else
  • ram/ptfield.c

    r72741f4 r00c31a2  
    268268                                patches[sp].prevstm = pp;
    269269
    270                         if (sp = findnxt(cp))           /* adjust ptecpos */
     270                        if ((sp = findnxt(cp)))         /* adjust ptecpos */
    271271                                ptecpos = sp;
    272                         else if (pp = findprv(cp))
     272                        else if ((pp = findprv(cp)))
    273273                                ptecpos = pp;
    274274                        else
     
    279279                        for (i = 0; i < NDEFSTMS; ++i) {        /* adjust defptr list */
    280280
    281                                 if (cp = defptr[i]) {           /* in use ? */
     281                                if ((cp = defptr[i])) {         /* in use ? */
    282282
    283283                                        pp = 0;         /* initial predecessor */
  • ram/ptselbx.c

    r72741f4 r00c31a2  
    12421242                                ptedat2 = 0x0000;
    12431243
    1244                                 if (ptd = desdatf[i]) {
     1244                                if ((ptd = desdatf[i])) {
    12451245
    12461246                                        if (ptd & 1)
  • ram/ptwrite.c

    r72741f4 r00c31a2  
    5959        nb = 0L;
    6060
    61         if (pp = find1st()) {
     61        if ((pp = find1st())) {
    6262
    6363                while (pp) {
     
    100100                LCFBX10, LCBBX10);
    101101
    102         if (pp = find1st()) {
     102        if ((pp = find1st())) {
    103103
    104104                while (pp) {
  • ram/scadv.c

    r72741f4 r00c31a2  
    251251                for (i = 224; i--; ) {
    252252
    253                         if (sword = maskpx & *fsl)
     253                        if ((sword = maskpx & *fsl))
    254254                                *optr = (*optr & masksl) | sword;
    255255
  • ram/stmproc.c

    r72741f4 r00c31a2  
    687687                        /* find the end of the chain for the stimulus */
    688688
    689                         while (pp = patches[np].nextstm)
     689                        while ((pp = patches[np].nextstm))
    690690                                np = pp;
    691691
  • ram/uslice.c

    r72741f4 r00c31a2  
    230230                                /* update the slice */
    231231
    232                                 if (w = *pxptr++)  /* 212 */
    233                                         *slptr = (*slptr & mask2) | (w & ncolor);
    234 
    235                                 ++slptr;
    236 
    237                                 if (w = *pxptr++)  /* 213 */
    238                                         *slptr = (*slptr & mask2) | (w & ncolor);
    239 
    240                                 ++slptr;
    241 
    242                                 if (w = *pxptr++)  /* 214 */
    243                                         *slptr = (*slptr & mask2) | (w & ncolor);
    244 
    245                                 ++slptr;
    246 
    247                                 if (w = *pxptr++)  /* 215 */
    248                                         *slptr = (*slptr & mask2) | (w & ncolor);
    249 
    250                                 ++slptr;
    251 
    252                                 if (w = *pxptr++)  /* 216 */
    253                                         *slptr = (*slptr & mask2) | (w & ncolor);
    254 
    255                                 ++slptr;
    256 
    257                                 if (w = *pxptr++)  /* 217 */
    258                                         *slptr = (*slptr & mask2) | (w & ncolor);
    259 
    260                                 ++slptr;
    261 
    262                                 if (w = *pxptr++)  /* 218 */
    263                                         *slptr = (*slptr & mask2) | (w & ncolor);
    264 
    265                                 ++slptr;
    266 
    267                                 if (w = *pxptr++)  /* 219 */
    268                                         *slptr = (*slptr & mask2) | (w & ncolor);
    269 
    270                                 ++slptr;
    271 
    272                                 if (w = *pxptr++)  /* 220 */
    273                                         *slptr = (*slptr & mask2) | (w & ncolor);
    274 
    275                                 ++slptr;
    276 
    277                                 if (w = *pxptr++)  /* 221 */
    278                                         *slptr = (*slptr & mask2) | (w & ncolor);
    279 
    280                                 ++slptr;
    281 
    282                                 if (w = *pxptr++)  /* 222 */
    283                                         *slptr = (*slptr & mask2) | (w & ncolor);
    284 
    285                                 ++slptr;
    286 
    287                                 if (w = *pxptr)    /* 223 */
     232                                if ((w = *pxptr++))  /* 212 */
     233                                        *slptr = (*slptr & mask2) | (w & ncolor);
     234
     235                                ++slptr;
     236
     237                                if ((w = *pxptr++))  /* 213 */
     238                                        *slptr = (*slptr & mask2) | (w & ncolor);
     239
     240                                ++slptr;
     241
     242                                if ((w = *pxptr++))  /* 214 */
     243                                        *slptr = (*slptr & mask2) | (w & ncolor);
     244
     245                                ++slptr;
     246
     247                                if ((w = *pxptr++))  /* 215 */
     248                                        *slptr = (*slptr & mask2) | (w & ncolor);
     249
     250                                ++slptr;
     251
     252                                if ((w = *pxptr++))  /* 216 */
     253                                        *slptr = (*slptr & mask2) | (w & ncolor);
     254
     255                                ++slptr;
     256
     257                                if ((w = *pxptr++))  /* 217 */
     258                                        *slptr = (*slptr & mask2) | (w & ncolor);
     259
     260                                ++slptr;
     261
     262                                if ((w = *pxptr++))  /* 218 */
     263                                        *slptr = (*slptr & mask2) | (w & ncolor);
     264
     265                                ++slptr;
     266
     267                                if ((w = *pxptr++))  /* 219 */
     268                                        *slptr = (*slptr & mask2) | (w & ncolor);
     269
     270                                ++slptr;
     271
     272                                if ((w = *pxptr++))  /* 220 */
     273                                        *slptr = (*slptr & mask2) | (w & ncolor);
     274
     275                                ++slptr;
     276
     277                                if ((w = *pxptr++))  /* 221 */
     278                                        *slptr = (*slptr & mask2) | (w & ncolor);
     279
     280                                ++slptr;
     281
     282                                if ((w = *pxptr++))  /* 222 */
     283                                        *slptr = (*slptr & mask2) | (w & ncolor);
     284
     285                                ++slptr;
     286
     287                                if ((w = *pxptr))    /* 223 */
    288288                                        *slptr = (*slptr & mask2) | (w & ncolor);
    289289
     
    514514                                /* update the slice */
    515515
    516                                 if (w = *pxptr++)  /* 212 */
    517                                         *slptr = (*slptr & mask2) | (w & ncolor);
    518 
    519                                 ++slptr;
    520 
    521                                 if (w = *pxptr++)  /* 213 */
    522                                         *slptr = (*slptr & mask2) | (w & ncolor);
    523 
    524                                 ++slptr;
    525 
    526                                 if (w = *pxptr++)  /* 214 */
    527                                         *slptr = (*slptr & mask2) | (w & ncolor);
    528 
    529                                 ++slptr;
    530 
    531                                 if (w = *pxptr++)  /* 215 */
    532                                         *slptr = (*slptr & mask2) | (w & ncolor);
    533 
    534                                 ++slptr;
    535 
    536                                 if (w = *pxptr++)  /* 216 */
    537                                         *slptr = (*slptr & mask2) | (w & ncolor);
    538 
    539                                 ++slptr;
    540 
    541                                 if (w = *pxptr++)  /* 217 */
    542                                         *slptr = (*slptr & mask2) | (w & ncolor);
    543 
    544                                 ++slptr;
    545 
    546                                 if (w = *pxptr++)  /* 218 */
    547                                         *slptr = (*slptr & mask2) | (w & ncolor);
    548 
    549                                 ++slptr;
    550 
    551                                 if (w = *pxptr++)  /* 219 */
    552                                         *slptr = (*slptr & mask2) | (w & ncolor);
    553 
    554                                 ++slptr;
    555 
    556                                 if (w = *pxptr++)  /* 220 */
    557                                         *slptr = (*slptr & mask2) | (w & ncolor);
    558 
    559                                 ++slptr;
    560 
    561                                 if (w = *pxptr++)  /* 221 */
    562                                         *slptr = (*slptr & mask2) | (w & ncolor);
    563 
    564                                 ++slptr;
    565 
    566                                 if (w = *pxptr++)  /* 222 */
    567                                         *slptr = (*slptr & mask2) | (w & ncolor);
    568 
    569                                 ++slptr;
    570 
    571                                 if (w = *pxptr)    /* 223 */
     516                                if ((w = *pxptr++))  /* 212 */
     517                                        *slptr = (*slptr & mask2) | (w & ncolor);
     518
     519                                ++slptr;
     520
     521                                if ((w = *pxptr++))  /* 213 */
     522                                        *slptr = (*slptr & mask2) | (w & ncolor);
     523
     524                                ++slptr;
     525
     526                                if ((w = *pxptr++))  /* 214 */
     527                                        *slptr = (*slptr & mask2) | (w & ncolor);
     528
     529                                ++slptr;
     530
     531                                if ((w = *pxptr++))  /* 215 */
     532                                        *slptr = (*slptr & mask2) | (w & ncolor);
     533
     534                                ++slptr;
     535
     536                                if ((w = *pxptr++))  /* 216 */
     537                                        *slptr = (*slptr & mask2) | (w & ncolor);
     538
     539                                ++slptr;
     540
     541                                if ((w = *pxptr++))  /* 217 */
     542                                        *slptr = (*slptr & mask2) | (w & ncolor);
     543
     544                                ++slptr;
     545
     546                                if ((w = *pxptr++))  /* 218 */
     547                                        *slptr = (*slptr & mask2) | (w & ncolor);
     548
     549                                ++slptr;
     550
     551                                if ((w = *pxptr++))  /* 219 */
     552                                        *slptr = (*slptr & mask2) | (w & ncolor);
     553
     554                                ++slptr;
     555
     556                                if ((w = *pxptr++))  /* 220 */
     557                                        *slptr = (*slptr & mask2) | (w & ncolor);
     558
     559                                ++slptr;
     560
     561                                if ((w = *pxptr++))  /* 221 */
     562                                        *slptr = (*slptr & mask2) | (w & ncolor);
     563
     564                                ++slptr;
     565
     566                                if ((w = *pxptr++))  /* 222 */
     567                                        *slptr = (*slptr & mask2) | (w & ncolor);
     568
     569                                ++slptr;
     570
     571                                if ((w = *pxptr))    /* 223 */
    572572                                        *slptr = (*slptr & mask2) | (w & ncolor);
    573573
  • ram/wheel.c

    r72741f4 r00c31a2  
    176176#endif
    177177
    178         while (c = 0x00FF & *str++)             /* get a byte */
     178        while ((c = 0x00FF & *str++))           /* get a byte */
    179179                BIOS(B_PUTC, PRT_DEV, c);       /* output it */
    180180}
Note: See TracChangeset for help on using the changeset viewer.