Changeset 60288f5 in buchla-68k for ram/idselbx.c


Ignore:
Timestamp:
07/09/2017 12:23:40 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6dd74a9
Parents:
0c834c5
Message:

Make function pointers more consistent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/idselbx.c

    r0c834c5 r60288f5  
    2121extern  void    tsplot4(int *obase, int nw, int fg, int row, int col, char *str, int pitch);
    2222extern  void    vbfill4(unsigned *obj, short obwidth, short xmin, short ymin, short xmax, short ymax, unsigned color);
    23 extern  void    enterit(void);
     23extern  short   entbh(short n);
    2424extern  void    vtdisp(unsigned *obj, unsigned fg, unsigned bg, short row, short col, char *buf);
    2525extern  void    advicur(void);
     
    6565
    6666short   bx_null(void);
    67 void    idfnbox(short n);
     67short   idfnbox(short n);
    6868
    6969/*
     
    8989        {  1,  56, 509, 208,     12, idfnbox},  /* 12: Level */
    9090
    91         {  1, 210, 110, 236, 0x0000, enterit},  /* 13: Source- Mlt */
    92         {112, 210, 142, 236, 0x0000, enterit},  /* 14: Pt */
    93         {144, 210, 206, 236, 0x0000, enterit},  /* 15: Time */
    94         {208, 210, 366, 236, 0x0000, enterit},  /* 16: Value */
    95         {368, 210, 509, 236, 0x0000, enterit},  /* 17: Action */
     91        {  1, 210, 110, 236, 0x0000, entbh},    /* 13: Source- Mlt */
     92        {112, 210, 142, 236, 0x0000, entbh},    /* 14: Pt */
     93        {144, 210, 206, 236, 0x0000, entbh},    /* 15: Time */
     94        {208, 210, 366, 236, 0x0000, entbh},    /* 16: Value */
     95        {368, 210, 509, 236, 0x0000, entbh},    /* 17: Action */
    9696
    9797        {  1, 238, 131, 348, 0x0000, idfnbox},  /* 18: Algorithm */
    9898        {133, 238, 267, 251, 0x0000, idfnbox},  /* 19: Voice & Inst */
    99         {269, 238, 379, 306, 0x0000, enterit},  /* 20: Oscillators */
     99        {269, 238, 379, 306, 0x0000, entbh},    /* 20: Oscillators */
    100100        {381, 238, 509, 348, 0x0000, idfnbox},  /* 21: Waveshape */
    101101
    102         {133, 308, 379, 348, 0x0000, enterit},  /* 22: Variables */
     102        {133, 308, 379, 348, 0x0000, entbh},    /* 22: Variables */
    103103
    104104        {133, 252, 267, 306,     19, idfnbox},  /* 23: Name & Comments */
     
    435435*/
    436436
    437 void idfnbox(short n)
     437short idfnbox(short n)
    438438{
    439439        register short col, i, row;
     
    453453                /* handle data entry special case for resonance in filter fn. */
    454454
    455                 if ((curfunc EQ 4) AND (row EQ 5) AND (col EQ 62)) {
    456                         enterit();
    457                         return;
    458                 }
     455                if ((curfunc EQ 4) AND (row EQ 5) AND (col EQ 62))
     456                        return(entbh(-1));
    459457
    460458                switch (pntsv) {        /* dispatch off of point select state */
     
    486484                }
    487485
    488                 return;
     486                return(TRUE);
    489487
    490488        } else if (hitbox EQ 18) {              /* configuration */
     
    493491
    494492                        wcmenu(0);
    495                         return;
     493                        return(TRUE);
    496494
    497495                } else {
    498496
    499                         enterit();
    500                         return;
     497                        return(entbh(-1));
    501498                }
    502499/*
     
    537534                        }
    538535
    539                         return;
     536                        return(SUCCESS);
    540537
    541538                } else {
    542539
    543                         enterit();      /* do data entry */
    544                         return;
     540                        return(entbh(-1));      /* do data entry */
    545541                }
    546542/*
     
    552548
    553549                        wcmenu(1);
    554                         return;
     550                        return(TRUE);
    555551
    556552                } else {
    557553
    558                         enterit();
    559                         return;
     554                        return(entbh(-1));
    560555                }
    561556
     
    592587                }
    593588
    594                 return;
     589                return(TRUE);
    595590/*
    596591
     
    622617
    623618                setgc(ICURX, ICURY);            /* put cursor in center */
    624                 return;
     619                return(TRUE);
    625620        }
    626 }
     621
     622        return(FALSE);
     623}
Note: See TracChangeset for help on using the changeset viewer.