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

    r0292fbb r7258c6a  
    3535#include "glcdefs.h"
    3636
    37 extern  short   BarBcur[];
    38 extern  short   BarCcur[];
     37extern  int16_t BarBcur[];
     38extern  int16_t BarCcur[];
    3939
    4040/* left-most bar columns */
    4141
    42 short   BarCols[14] = { 2, 8, 14, 20, 26, 32, 38, 44, 50, 56, 62, 68, 74, 80 };
     42int16_t BarCols[14] = { 2, 8, 14, 20, 26, 32, 38, 44, 50, 56, 62, 68, 74, 80 };
    4343
    4444/* bar dot data */
    4545
    46 short   BarDots[3] = { 0x1C, 0xFC, 0xE0 };
     46int16_t BarDots[3] = { 0x1C, 0xFC, 0xE0 };
    4747
    4848#include "glcbars.h"            /* bar graph driver constant definitions */
     
    5858*/
    5959
    60 void BarBadj(short bar, short val)
     60void BarBadj(int16_t bar, int16_t val)
    6161{
    62         register short bardot, barpos, curdif;
    63         register unsigned baradr;
    64         short barcol, bardif, curbar, i, newbar;
     62        register int16_t bardot, barpos, curdif;
     63        register uint16_t baradr;
     64        int16_t barcol, bardif, curbar, i, newbar;
    6565
    6666        newbar = BarBLn[val];           /* look up the new bar position */
     
    142142*/
    143143
    144 void BarBset(short bar, short val)
     144void BarBset(int16_t bar, int16_t val)
    145145{
    146         register short bardot, barpos, newbar;
    147         register unsigned baradr;
    148         short barcol, i;
     146        register int16_t bardot, barpos, newbar;
     147        register uint16_t baradr;
     148        int16_t barcol, i;
    149149
    150150        newbar = BarBLn[val];   /* look up the new bar position */
     
    195195*/
    196196
    197 void BarCadj(short bar, short val)
     197void BarCadj(int16_t bar, int16_t val)
    198198{
    199         register short bardot, barpos, newbar;
    200         register unsigned baradr;
    201         short barcol, bardif, curbar, i;
     199        register int16_t bardot, barpos, newbar;
     200        register uint16_t baradr;
     201        int16_t barcol, bardif, curbar, i;
    202202
    203203        newbar = BarCLn[val + BOffset]; /* look up the new bar position */
     
    286286*/
    287287
    288 void BarCset(short bar, short val)
     288void BarCset(int16_t bar, int16_t val)
    289289{
    290         register short bardot, barpos, barloc1, barloc2;
    291         register unsigned baradr;
    292         short barcol, i, newbar;
     290        register int16_t bardot, barpos, barloc1, barloc2;
     291        register uint16_t baradr;
     292        int16_t barcol, i, newbar;
    293293
    294294        GLCcurs(G_ON);          /* turn on GLC cursor to enable writing */
Note: See TracChangeset for help on using the changeset viewer.