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

    r0292fbb r7258c6a  
    1818#define SCOPENEW        0x0054          /* scope new text attribute */
    1919
    20 short           scopec;                 /* scope col position */
    21 short           scopef;                 /* scope control flag */
    22 short           scoper;                 /* scope row position */
     20int16_t         scopec;                 /* scope col position */
     21int16_t         scopef;                 /* scope control flag */
     22int16_t         scoper;                 /* scope row position */
    2323
    24 unsigned        scopev;                 /* last scope value */
     24uint16_t        scopev;                 /* last scope value */
    2525
    26 unsigned        *scopeob;               /* scope display object */
     26uint16_t        *scopeob;               /* scope display object */
    2727
    28 char            scopebf[65];            /* scope display buffer */
     28int8_t          scopebf[65];            /* scope display buffer */
    2929
    30 extern  short   stdctp2(void);
     30extern  int16_t stdctp2(void);
    3131extern  void    nokey(void);
    32 extern  void    nodkey(short k);
    33 extern  short   nonf(short k);
     32extern  void    nodkey(int16_t k);
     33extern  int16_t nonf(int16_t k);
    3434extern  void    stdmkey(void);
    3535
    36 extern  short   astat;
    37 extern  short   ndisp;
     36extern  int16_t astat;
     37extern  int16_t ndisp;
    3838
    39 extern  short   scorpal[][3];
     39extern  int16_t scorpal[][3];
    4040
    41 extern  short   crate1[];
     41extern  int16_t crate1[];
    4242
    4343/* forward reference */
     
    8484*/
    8585
    86 void scope(unsigned val)
     86void scope(uint16_t val)
    8787{
    88         register short i;
    89         register char *bp = scopebf;
     88        register int16_t i;
     89        register int8_t *bp = scopebf;
    9090
    9191        if ((ndisp NE 11) OR (NOT scopef))
Note: See TracChangeset for help on using the changeset viewer.