Changeset 7258c6a in buchla-68k for ram/tdselbx.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/tdselbx.c

    r0292fbb r7258c6a  
    1515
    1616extern  void    enterit(void);
    17 extern  short   loc2key(short row, short col);
     17extern  int16_t loc2key(int16_t row, int16_t col);
    1818extern  void    advtcur(void);
    1919extern  void    bsptcur(void);
    20 extern  void    vtdisp(unsigned *obj, unsigned fg, unsigned bg, short row, short col, char *buf);
     20extern  void    vtdisp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf);
    2121extern  void    nokey(void);
    2222
    23 extern  unsigned        exp_c(unsigned c);
    24 
    25 extern  short   hitbox, cxval, cyval, hitcx, hitcy, submenu;
    26 extern  short   tunmod, curtun, tdnamsw;
    27 extern  short   ttcmdsv, ttsel1, ttsel2, ttsel3;
    28 
    29 extern  short   tdbox[][8];
     23extern  uint16_t        exp_c(uint16_t c);
     24
     25extern  int16_t hitbox, cxval, cyval, hitcx, hitcy, submenu;
     26extern  int16_t tunmod, curtun, tdnamsw;
     27extern  int16_t ttcmdsv, ttsel1, ttsel2, ttsel3;
     28
     29extern  int16_t tdbox[][8];
    3030
    3131extern  struct  selbox  *csbp, *curboxp;
    3232
    33 extern  unsigned        *tunob;
    34 
    35 extern  short   tuntab[];
    36 extern  short   oldtun[];
    37 
    38 extern  char    tuncurn[];
    39 extern  char    vtlin1[], vtlin2[], vtlin3[];
     33extern  uint16_t        *tunob;
     34
     35extern  int16_t tuntab[];
     36extern  int16_t oldtun[];
     37
     38extern  int8_t  tuncurn[];
     39extern  int8_t  vtlin1[], vtlin2[], vtlin3[];
    4040
    4141/* forward references */
    4242
    43 short   bx_null(void);
    44 short   tdfnbox(short n);
     43int16_t bx_null(void);
     44int16_t tdfnbox(int16_t n);
    4545
    4646/*
     
    8888*/
    8989
    90 short tcoladj(short icol)
     90int16_t tcoladj(int16_t icol)
    9191{
    9292        if (icol < 12)
     
    114114*/
    115115
    116 void tdhilit(short from, short to)
     116void tdhilit(int16_t from, int16_t to)
    117117{
    118         register short i, row, col, box;
     118        register int16_t i, row, col, box;
    119119
    120120        if (to < from) {
     
    180180*/
    181181
    182 short tdfnbox(short n)
     182int16_t tdfnbox(int16_t n)
    183183{
    184         register short i, key, dcol, row, col;
     184        register int16_t i, key, dcol, row, col;
    185185
    186186        row = hitcy / 14;
Note: See TracChangeset for help on using the changeset viewer.