Changeset 7258c6a in buchla-68k for ram/m7menu.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/m7menu.c

    r0292fbb r7258c6a  
    3636#endif
    3737
    38 extern  char    m7verms[], bfs[], loadedf[][8];
     38extern  int8_t  m7verms[], bfs[], loadedf[][8];
    3939
    4040extern  struct  selbox  *csbp, *curboxp;
    4141
    42 extern  void    (*point)(short x, short y, short pen);
     42extern  void    (*point)(int16_t x, int16_t y, int16_t pen);
    4343
    4444extern  void    nokey(void);
    45 extern  void    nodkey(short k);
    46 extern  short   nonf(short k);
     45extern  void    nodkey(int16_t k);
     46extern  int16_t nonf(int16_t k);
    4747extern  void    select(void);
    4848extern  void    cxkstd(void);
     
    5050extern  void    cxgen(void);
    5151extern  void    cygen(void);
    52 extern  short   stdctp2(void);
    53 
    54 extern  unsigned        exp_c(unsigned c);
    55 
    56 extern  short   ndisp, runit, curslim, sgcsw, cxval, cyval, stcrow, stccol;
    57 extern  short   crate1[], defect, dsp_ok;
     52extern  int16_t stdctp2(void);
     53
     54extern  uint16_t        exp_c(uint16_t c);
     55
     56extern  int16_t ndisp, runit, curslim, sgcsw, cxval, cyval, stcrow, stccol;
     57extern  int16_t crate1[], defect, dsp_ok;
    5858
    5959extern  struct  octent  *mdoct;
    6060
    61 extern  unsigned        *menuob, *obj0, vi_ctl;
    62 
    63 static char     ml01[61], ml02[61], ml03[61], ml04[61], ml05[61];
    64 
    65 short   mdselbx(short n);
    66 
    67 /*
    68 
    69 */
    70 
    71 static char mlc01[] = {1, 0xBA,  58, 0xB1,  1, 0xBB,  -1};
    72 static char mlc02[] = {1, 0xB6,  29, 0xB1,  1, 0xB7,  28, 0xB1,  1, 0xB4,  -1};
    73 static char mlc03[] = {1, 0xB6,  29, 0xB1,  1, 0xB2,  28, 0xB1,  1, 0xB4,  -1};
    74 static char mlc04[] = {1, 0xB6,  29, 0xB1,  1, 0xB5,  28, 0xB1,  1, 0xB4,  -1};
    75 static char mlc05[] = {1, 0xB9,  58, 0xB1,  1, 0xB8,  -1};
    76 
    77 static char     *mtexts[] = {
     61extern  uint16_t        *menuob, *obj0, vi_ctl;
     62
     63static int8_t   ml01[61], ml02[61], ml03[61], ml04[61], ml05[61];
     64
     65int16_t mdselbx(int16_t n);
     66
     67/*
     68
     69*/
     70
     71static int8_t mlc01[] = {1, 0xBA,  58, 0xB1,  1, 0xBB,  -1};
     72static int8_t mlc02[] = {1, 0xB6,  29, 0xB1,  1, 0xB7,  28, 0xB1,  1, 0xB4,  -1};
     73static int8_t mlc03[] = {1, 0xB6,  29, 0xB1,  1, 0xB2,  28, 0xB1,  1, 0xB4,  -1};
     74static int8_t mlc04[] = {1, 0xB6,  29, 0xB1,  1, 0xB5,  28, 0xB1,  1, 0xB4,  -1};
     75static int8_t mlc05[] = {1, 0xB9,  58, 0xB1,  1, 0xB8,  -1};
     76
     77static int8_t   *mtexts[] = {
    7878
    7979        /* 0 */         "MIDAS VII      for the Buchla 700      Version",
     
    9797*/
    9898
    99 static short mlintab[][4] = {
     99static int16_t mlintab[][4] = {
    100100
    101101        { 18,  26,  18, 322},
     
    142142*/
    143143
    144 static short    mrowcol[][2] = {
     144static int16_t  mrowcol[][2] = {
    145145
    146146        { 2,  4},       /* 0 */
     
    181181*/
    182182
    183 short   menupal[16][3] = {      /* menu display color palette */
     183int16_t menupal[16][3] = {      /* menu display color palette */
    184184
    185185        {0, 0, 0},      /* 0 */
     
    201201};
    202202
    203 short   blakpal[16][3] = {              /* black palette */
     203int16_t blakpal[16][3] = {              /* black palette */
    204204
    205205        {0, 0, 0},      /* 0 */
     
    225225*/
    226226
    227 short   mfrc[][2] = {   /* file name row and column  by load type LT_??? */
     227int16_t mfrc[][2] = {   /* file name row and column  by load type LT_??? */
    228228
    229229        {20,  6},       /* assignments */
     
    278278void dswap(void)
    279279{
    280         register short i;
     280        register int16_t i;
    281281
    282282        vsndpal(blakpal);                       /* blackout the palette */
     
    305305*/
    306306
    307 void mlbld(char *where, char *from)
     307void mlbld(int8_t *where, int8_t *from)
    308308{
    309         register short i, j;
    310         register char c;
     309        register int16_t i, j;
     310        register int8_t c;
    311311
    312312        while (-1 NE (i = *from++)) {
     
    327327*/
    328328
    329 void mlpoint(short x, short y, short pen)
     329void mlpoint(int16_t x, int16_t y, int16_t pen)
    330330{
    331331        if (v_regs[5] & 0x0180)
     
    345345*/
    346346
    347 short mdselbx(short n)
     347int16_t mdselbx(int16_t n)
    348348{
    349         register unsigned mlcv, mbcv, mbak;
    350         register short rc;
     349        register uint16_t mlcv, mbcv, mbak;
     350        register int16_t rc;
    351351
    352352#if     DEBUGIT
     
    470470void drawm(void)
    471471{
    472         register short *mlp;
    473         register short i;
    474         register unsigned mlcv, mbcv, mbak;
    475         char buf[16];
     472        register int16_t *mlp;
     473        register int16_t i;
     474        register uint16_t mlcv, mbcv, mbak;
     475        int8_t buf[16];
    476476
    477477        mlcv = exp_c(MLINES);
Note: See TracChangeset for help on using the changeset viewer.