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

    r0292fbb r7258c6a  
    1515#include "instdsp.h"
    1616
    17 extern  void    (*itxput)(short row, short col, char *txt, short tag);
    18 
    19 extern  void    lseg(short x1, short y1, short x2, short y2, short t);
    20 extern  void    dswin(short n);
    21 extern  void    tsplot4(int *obase, int nw, int fg, int row, int col, char *str, int pitch);
    22 extern  void    vbfill4(unsigned *obj, short obwidth, short xmin, short ymin, short xmax, short ymax, unsigned color);
    23 extern  short   entbh(short n);
    24 extern  void    vtdisp(unsigned *obj, unsigned fg, unsigned bg, short row, short col, char *buf);
     17extern  void    (*itxput)(int16_t row, int16_t col, int8_t *txt, int16_t tag);
     18
     19extern  void    lseg(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t t);
     20extern  void    dswin(int16_t n);
     21extern  void    tsplot4(int16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
     22extern  void    vbfill4(uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color);
     23extern  int16_t entbh(int16_t n);
     24extern  void    vtdisp(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf);
    2525extern  void    advicur(void);
    2626extern  void    bspicur(void);
    2727
    28 extern  void    drawfn(short fn, short how, short pen, short wn);
    29 extern  short   selpnt(void);
    30 extern  short   ttox(unsigned time, short window);
    31 extern  short   vtoy(short val, short window);
    32 
    33 extern  short   timeto(short fn, short pj);
    34 extern  unsigned        exp_c(unsigned c);
    35 
    36 /*
    37 
    38 */
    39 
    40 extern  short   cursbox, cxval, cyval;
    41 extern  short   curvce, curfunc, curpnt;
    42 extern  short   hitbox, hitcx, hitcy, idnamsw, idimsw, idtdat;
    43 extern  short   pntsv, pecase, stccol, subj, submenu;
    44 
    45 extern  short   temin, temax;
     28extern  void    drawfn(int16_t fn, int16_t how, int16_t pen, int16_t wn);
     29extern  int16_t selpnt(void);
     30extern  int16_t ttox(uint16_t time, int16_t window);
     31extern  int16_t vtoy(int16_t val, int16_t window);
     32
     33extern  int16_t timeto(int16_t fn, int16_t pj);
     34extern  uint16_t        exp_c(uint16_t c);
     35
     36/*
     37
     38*/
     39
     40extern  int16_t cursbox, cxval, cyval;
     41extern  int16_t curvce, curfunc, curpnt;
     42extern  int16_t hitbox, hitcx, hitcy, idnamsw, idimsw, idtdat;
     43extern  int16_t pntsv, pecase, stccol, subj, submenu;
     44
     45extern  int16_t temin, temax;
    4646
    4747extern  struct  selbox  *csbp, *curboxp;
     
    5151extern  struct  instpnt *pntptr;
    5252
    53 extern  short   idbox[][8];
    54 extern  short   instmod[];
    55 
    56 extern  char    *vtdeptr;
    57 
    58 extern  char    *idbxlbl[];
    59 extern  char    idhlbl[];
    60 extern  char    bfs[];
    61 
    62 extern  unsigned        *instob;
     53extern  int16_t idbox[][8];
     54extern  int16_t instmod[];
     55
     56extern  int8_t  *vtdeptr;
     57
     58extern  int8_t  *idbxlbl[];
     59extern  int8_t  idhlbl[];
     60extern  int8_t  bfs[];
     61
     62extern  uint16_t        *instob;
    6363
    6464/* forward references */
    6565
    66 short   bx_null(void);
    67 short   idfnbox(short n);
     66int16_t bx_null(void);
     67int16_t idfnbox(int16_t n);
    6868
    6969/*
     
    117117*/
    118118
    119 void idtxput(short row, short col, char *txt, short tag)
     119void idtxput(int16_t row, int16_t col, int8_t *txt, int16_t tag)
    120120{
    121121        if (v_regs[5] & 0x0180)
     
    133133void showim(void)
    134134{
    135         register short row, col, ins;
     135        register int16_t row, col, ins;
    136136
    137137        ins = 0;
     
    251251*/
    252252
    253 short edfunc(short n)
    254 {
    255         register unsigned cx;
     253int16_t edfunc(int16_t n)
     254{
     255        register uint16_t cx;
    256256        register struct instdef *ip;
    257257
     
    336336*/
    337337
    338 void showpt(short q)
    339 {
    340         register short  ptx, pty, i, j, k;
     338void showpt(int16_t q)
     339{
     340        register int16_t        ptx, pty, i, j, k;
    341341        register struct instdef *ip;
    342         short ptc;
     342        int16_t ptc;
    343343
    344344        if (q)
     
    405405*/
    406406
    407 short bx_null(void)
     407int16_t bx_null(void)
    408408{
    409409        return(TRUE);
     
    416416*/
    417417
    418 void iclrwin(short n)
     418void iclrwin(int16_t n)
    419419{
    420420        if (v_regs[5] & 0x0180)
     
    435435*/
    436436
    437 short idfnbox(short n)
    438 {
    439         register short col, i, row;
     437int16_t idfnbox(int16_t n)
     438{
     439        register int16_t col, i, row;
    440440        register struct instdef *ip;
    441         register char *ivtdptr;
     441        register int8_t *ivtdptr;
    442442
    443443        ip = &vbufs[curvce];
Note: See TracChangeset for help on using the changeset viewer.