Changeset 72741f4 in buchla-68k for ram


Ignore:
Timestamp:
11/15/2017 07:28:55 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
00c31a2
Parents:
7c5def4
Message:

Fixed incompatible pointers.

Location:
ram
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • ram/asgvce.c

    r7c5def4 r72741f4  
    9494                                newflag = TRUE;
    9595
    96                         se_disp(ep, D_FWD, gdstbc, 1);
     96                        se_disp((struct s_entry *)ep, D_FWD, gdstbc, 1);
    9797
    9898                } else {
     
    139139                                                      ep_adj(p_cur, 0, t_cur))->e_fwd;
    140140
    141                                         se_disp(ep, D_FWD, gdstbc, 1);
     141                                        se_disp((struct s_entry *)ep, D_FWD, gdstbc, 1);
    142142
    143143                                        if (lstendc < NLSTENTS)
     
    251251                                      ep_adj(p_cur, 0, t_cur))->e_fwd;
    252252
    253                         se_disp(ep, D_FWD, gdstbc, 1);
     253                        se_disp((struct s_entry *)ep, D_FWD, gdstbc, 1);
    254254
    255255                        if (t_cur EQ t_ctr)
  • ram/dcopy.c

    r7c5def4 r72741f4  
    2222{
    2323        register FILE *fp;
    24         register int8_t *from;
     24        register uint8_t *from;
    2525        register int32_t wrtlen, loadlen, bsslen, txtlen;
    2626
     
    5959        /* write program header to disk */
    6060
    61         from = &mphead;
     61        from = (uint8_t *)&mphead;
    6262
    6363        for (wrtlen = sizeof mphead; wrtlen--; )
     
    7272        /* write MIDAS-VII to disk */
    7373
    74         from = &Lo_RAM;
     74        from = (uint8_t *)&Lo_RAM;
    7575
    7676        for (wrtlen = loadlen; wrtlen--; )
  • ram/delnote.c

    r7c5def4 r72741f4  
    7878                                        /* scan right from note begin until: */
    7979
    80                                         ep = bp->e_fwd;
     80                                        ep = (struct n_entry *)bp->e_fwd;
    8181                                        scantag = TRUE;
    8282
     
    102102
    103103                                                        if (cp EQ ep)
    104                                                                 cp = cp->e_bak;
     104                                                                cp = (struct n_entry *)cp->e_bak;
    105105
    106106                                                        if (p_ctr EQ ep)
     
    116116                                                                p_cur = p_cur->e_bak;
    117117
    118                                                         e_del(e_rmv(ep));
     118                                                        e_del(e_rmv((struct s_entry *)ep));
    119119
    120120                                                        /* delete note begin */
    121121
    122122                                                        if (cp EQ bp)
    123                                                                 cp = cp->e_bak;
     123                                                                cp = (struct n_entry *)cp->e_bak;
    124124
    125125                                                        if (p_ctr EQ bp)
     
    135135                                                                p_cur = p_cur->e_bak;
    136136
    137                                                         e_del(e_rmv(bp));
     137                                                        e_del(e_rmv((struct s_entry *)bp));
    138138
    139139                                                        disptag = TRUE;
     
    149149
    150150                                                        if (cp EQ bp)
    151                                                                 cp = cp->e_bak;
     151                                                                cp = (struct n_entry *)cp->e_bak;
    152152
    153153                                                        if (p_ctr EQ bp)
     
    163163                                                                p_cur = p_cur->e_bak;
    164164
    165                                                         e_del(e_rmv(bp));
     165                                                        e_del(e_rmv((struct s_entry *)bp));
    166166
    167167                                                        disptag = TRUE;
     
    173173                                                /* scan right */
    174174
    175                                                 ep = ep->e_fwd;
     175                                                ep = (struct n_entry *)ep->e_fwd;
    176176
    177177                                        }       /* end while (scantag) */
     
    181181                                /* scan left */
    182182
    183                                 bp = bp->e_bak;
     183                                bp = (struct n_entry *)bp->e_bak;
    184184
    185185                        }       /* end while (runtag) */
     
    207207                /* search current time for a bar marker - delete any found */
    208208
    209                 ep = ep_adj(p_cur, 1, ctime);
     209                ep = (struct n_entry *)ep_adj(p_cur, 1, ctime);
    210210
    211211                while (ctime EQ ep->e_time) {
    212212
    213                         bp = ep->e_fwd;
     213                        bp = (struct n_entry *)ep->e_fwd;
    214214
    215215                        if (EV_BAR EQ ep->e_type) {
     
    227227                                        p_fwd = p_fwd->e_bak;
    228228
    229                                 e_del(e_rmv(ep));
     229                                e_del(e_rmv((struct s_entry *)ep));
    230230                                disptag = TRUE;
    231231                        }
  • ram/delpnts.c

    r7c5def4 r72741f4  
    103103                /* move points down */
    104104
    105                 pp1 = &vp->idhpnt[pt1];
    106                 pp2 = &vp->idhpnt[pt2];
     105                pp1 = (int8_t *)&vp->idhpnt[pt1];
     106                pp2 = (int8_t *)&vp->idhpnt[pt2];
    107107
    108108                for (i = nmv * (int16_t)PT_SIZE; i > 0; i--)
     
    153153                        /* move points down */
    154154
    155                         pp1 = &vp->idhpnt[pt1];
    156                         pp2 = &vp->idhpnt[pt2];
     155                        pp1 = (int8_t *)&vp->idhpnt[pt1];
     156                        pp2 = (int8_t *)&vp->idhpnt[pt2];
    157157
    158158                        for (i = nmv * (int16_t)PT_SIZE; i > 0; i--)
     
    244244        for (k = 0; k < npts; k++) {            /* move things up */
    245245
    246                 fp1 = &ip->idhpnt[i--];
    247                 fp2 = &ip->idhpnt[j--];
     246                fp1 = (int8_t *)&ip->idhpnt[i--];
     247                fp2 = (int8_t *)&ip->idhpnt[j--];
    248248
    249249                for (l = 0; l < sizeof (struct instpnt); l++)
  • ram/fcnote.c

    r7c5def4 r72741f4  
    5656                        /* done -- can't see begin,  or note not there */
    5757
    58                         return(E_NULL);
     58                        return((struct n_entry *)E_NULL);
    5959
    6060                } else if ((et EQ EV_NEND) AND (en EQ tnote) AND (eg EQ grp)) {
     
    6262                        /* done -- hit note end first -- notes overlap */
    6363
    64                         return(E_NULL);
     64                        return((struct n_entry *)E_NULL);
    6565
    6666                } else if ((et EQ EV_NBEG) AND (en EQ tnote) AND (eg EQ grp)) {
     
    6868                        /* found note begin -- possible note starting at bp */
    6969
    70                         ep = bp->e_fwd;         /* scan to right of begin */
     70                        ep = (struct n_entry *)bp->e_fwd;       /* scan to right of begin */
    7171
    7272                        FOREVER {       /* scan right from note begin */
     
    8181                                        /* hit note begin first -- done -- notes overlap */
    8282
    83                                         return(E_NULL);
     83                                        return((struct n_entry *)E_NULL);
    8484
    8585                                } else if ((et EQ EV_NEND) AND (en EQ tnote) AND
     
    9797                                        /* hit score end -- done -- can't find end */
    9898
    99                                         return(E_NULL);
     99                                        return((struct n_entry *)E_NULL);
    100100                                }
    101101
    102                                 ep = ep->e_fwd;         /* scan right */
     102                                ep = (struct n_entry *)ep->e_fwd;       /* scan right */
    103103
    104104                        }       /* end FOREVER */
     
    106106                }       /* end if */
    107107
    108                 bp = bp->e_bak;         /* scan left */
     108                bp = (struct n_entry *)bp->e_bak;       /* scan left */
    109109
    110110        }       /* end FOREVER */
  • ram/im700.c

    r7c5def4 r72741f4  
    527527        for (i = 0; i < NGPSRS; i++) {
    528528
    529                 valents[i].nxt = &valents[i];
    530                 valents[i].prv = &valents[i];
     529                valents[i].nxt = (struct sment *)&valents[i];
     530                valents[i].prv = (struct sment *)&valents[i];
    531531                valents[i].val = valof(i & 0x000F);
    532532        }
     
    642642                        k = (i << 4) + fnoff[j];
    643643
    644                         funcndx[k][0] = &ip->idhfnc[j];
    645                         funcndx[k][1] = ip->idhpnt;
     644                        funcndx[k][0] = (int8_t *)&ip->idhfnc[j];
     645                        funcndx[k][1] = (int8_t *)ip->idhpnt;
    646646                }
    647647        }
     
    736736        e_key = nokey;
    737737        m_key = stdmkey;
    738         d_key = nokey;
     738        d_key = nodkey;
    739739
    740740        not_fld = nonf;
  • ram/initi.c

    r7c5def4 r72741f4  
    350350
    351351                k = (voice << 4) + fnoff[j];
    352                 funcndx[k][0] = &ip->idhfnc[j];
    353                 funcndx[k][1] = ip->idhpnt;
     352                funcndx[k][0] = (int8_t *)&ip->idhfnc[j];
     353                funcndx[k][1] = (int8_t *)ip->idhpnt;
    354354        }
    355355
  • ram/lcdlbls.c

    r7c5def4 r72741f4  
    578578/*
    579579   =============================================================================
     580        _l_load() -- forward processing to l_load()
     581   =============================================================================
     582*/
     583
     584void _l_load(void)
     585{
     586        l_load(1, 0);
     587}
     588
     589/*
     590   =============================================================================
    580591        l_load() -- process "Load" key
    581592   =============================================================================
     
    636647                oldmkey = m_key;
    637648                d_key   = loadkey;
    638                 x_key   = l_load;
    639                 e_key   = l_load;
    640                 m_key   = l_load;
     649                x_key   = _l_load;
     650                e_key   = _l_load;
     651                m_key   = _l_load;
    641652
    642653                loadsw = TRUE;
  • ram/lcdlbls.x

    r7c5def4 r72741f4  
    5151extern  void            l_init(int16_t stat, int16_t _2);
    5252extern  void            l_inst(int16_t stat, int16_t _2);
     53extern  void            _l_load(void);
    5354extern  void            l_load(int16_t stat, int16_t _2);
    5455extern  void            l_none(int16_t _1, int16_t _2);
  • ram/localkb.c

    r7c5def4 r72741f4  
    242242                                        while (lstendc-- > 0) { /* note ends */
    243243
    244                                                 ep = lstends[lstendc];
     244                                                ep = (struct s_entry *)lstends[lstendc];
    245245                                                lstends[lstendc] = (struct n_entry *)NULL;
    246246
     
    268268                                        while (lstbgnc-- > 0) { /* note begins */
    269269
    270                                                 ep = lstbgns[lstbgnc];
     270                                                ep = (struct s_entry *)lstbgns[lstbgnc];
    271271                                                lstbgns[lstbgnc] = (struct n_entry *)NULL;
    272272
  • ram/scselbx.c

    r7c5def4 r72741f4  
    144144*/
    145145
    146 void svtdsp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf)
     146void svtdsp(volatile uint16_t *obj, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *buf)
    147147{
    148148        (void)fg;
  • ram/scselbx.x

    r7c5def4 r72741f4  
    4848extern  void            showsm(void);
    4949extern  void            showtm(void);
    50 extern  void            svtdsp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf);
     50extern  void            svtdsp(volatile uint16_t *obj, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *buf);
    5151extern  void            svtstop(void);
  • ram/sedump.c

    r7c5def4 r72741f4  
    391391        }
    392392
    393         cura6 = A6PTR;
     393        cura6 = (int32_t *)A6PTR;
    394394
    395395        while (cura6) {
     
    400400                        cura6, olda6, *(cura6 + 4L));
    401401
    402                 prptr = cura6 + 8L;
     402                prptr = (int16_t *)(cura6 + 8L);
    403403                n = 8;
    404404
  • ram/showcfg.c

    r7c5def4 r72741f4  
    313313{
    314314        register int16_t i, np;
    315         int16_t idbuf[8];
     315        int8_t idbuf[8];
    316316        register int8_t *cfgdat, *cfp;
    317317
  • ram/sqscan.c

    r7c5def4 r72741f4  
    6363        }
    6464
    65         cval = spool;
     65        cval = (struct s_entry *)spool;
    6666
    6767        if (ptr LT cval) {
     
    7575        }
    7676
    77         cval = &spool[(int32_t)MAX_SE-1];
     77        cval = (struct s_entry *)&spool[(int32_t)MAX_SE-1];
    7878
    7979        if (ptr GT cval) {
     
    104104        nsp->e_vel   = vel;
    105105
    106         return(e_ins((struct s_entry *)nsp, ep_adj(p_cur, 0, t_cur))->e_fwd);
     106        return((struct n_entry *)
     107                e_ins((struct s_entry *)nsp, ep_adj(p_cur, 0, t_cur))->e_fwd);
    107108}
    108109
     
    704705                while (tsp2) {
    705706
    706                         tsp3 = &spool[0];
     707                        tsp3 = (struct s_entry *)&spool[0];
    707708
    708709                        if (tsp2 LT tsp3) {
     
    715716                        }
    716717
    717                         tsp3 = &spool[MAX_SE-1];
     718                        tsp3 = (struct s_entry *)&spool[MAX_SE-1];
    718719
    719720                        if (tsp2 GT tsp3) {
     
    840841
    841842                noteon = t_cur;
    842                 p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     843                p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    843844
    844845                if (verbose)
     
    857858
    858859                noteoff = t_cur;
    859                 p_cur = insnevt(nsp1, EV_NEND, curgrp, notenum, 64);
     860                p_cur = (struct s_entry *)insnevt(nsp1, EV_NEND, curgrp, notenum, 64);
    860861
    861862                if (verbose)
     
    882883                }
    883884
    884                 p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     885                p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    885886
    886887                if (E_NULL EQ (nsp1 = (struct n_entry *)e_alc(E_SIZE1))) {
     
    915916        }
    916917
    917         p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     918        p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    918919
    919920        if (E_NULL EQ (nsp1 = (struct n_entry *)e_alc(E_SIZE1))) {
  • ram/wdfield.c

    r7c5def4 r72741f4  
    198198        ip = &vbufs[curvce];                    /* instrument definition */
    199199
    200         ov = curwslt    ? &ip->idhwvbo          /* offsets in definition */
    201                         : &ip->idhwvao;
     200        ov = curwslt    ? ip->idhwvbo           /* offsets in definition */
     201                        : ip->idhwvao;
    202202
    203203        cwnp   = wdcurct[curwdth][0];           /* number of points effected */
     
    271271
    272272        ip   = &vbufs[curvce];
    273         ov   = curwslt ? &ip->idhwvbo : &ip->idhwvao;
     273        ov   = curwslt ? ip->idhwvbo : ip->idhwvao;
    274274
    275275        ov[curwpnt] = curwoff << 5;     /* force current point value */
     
    411411        case 2:         /* harmonic selected */
    412412
    413                 hv = curwslt ? &ip->idhwvbh : &ip->idhwvah;
     413                hv = curwslt ? ip->idhwvbh : ip->idhwvah;
    414414
    415415                curwhrv = abs(hv[curwhrm]) - cyrate;
     
    514514
    515515                        ip = &vbufs[curvce];
    516                         hv = curwslt ? &ip->idhwvbh : &ip->idhwvah;
     516                        hv = curwslt ? ip->idhwvbh : ip->idhwvah;
    517517
    518518                        if (hitbox EQ 0) {      /* waveshape area */
  • ram/wsdsp.c

    r7c5def4 r72741f4  
    9090
    9191        ip = &vbufs[curvce];
    92         fv = curwslt ? &ip->idhwvbf : &ip->idhwvaf;
    93         ov = curwslt ? &ip->idhwvbo : &ip->idhwvao;
    94         hv = curwslt ? &ip->idhwvbh : &ip->idhwvah;
     92        fv = curwslt ? ip->idhwvbf : ip->idhwvaf;
     93        ov = curwslt ? ip->idhwvbo : ip->idhwvao;
     94        hv = curwslt ? ip->idhwvbh : ip->idhwvah;
    9595
    9696        point = wdpoint;
Note: See TracChangeset for help on using the changeset viewer.