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

    r0292fbb r7258c6a  
    2727*/
    2828
    29 extern  short   cmtype;
    30 extern  short   curslin;
    31 extern  short   stccol;
    32 extern  short   stcrow;
    33 extern  short   submenu;
    34 extern  short   vtccol;
    35 extern  short   vtcrow;
    36 
    37 extern  char    actlft[];
    38 
    39 extern  short   sqatype[];
    40 
    41 extern  unsigned        *obj11;
     29extern  int16_t cmtype;
     30extern  int16_t curslin;
     31extern  int16_t stccol;
     32extern  int16_t stcrow;
     33extern  int16_t submenu;
     34extern  int16_t vtccol;
     35extern  int16_t vtcrow;
     36
     37extern  int8_t  actlft[];
     38
     39extern  int16_t sqatype[];
     40
     41extern  uint16_t        *obj11;
    4242
    4343extern  struct seqent   seqtab[];
    4444
    45 short   action;                         /* current action column */
    46 short   sqdeflg;                        /* sequence data entry buffer filled */
    47 short   sqmenu;                         /* sqeuence submenu state */
    48 
    49 char    sqdebuf[50];                    /* sequence data entry buffer */
     45int16_t action;                         /* current action column */
     46int16_t sqdeflg;                        /* sequence data entry buffer filled */
     47int16_t sqmenu;                         /* sqeuence submenu state */
     48
     49int8_t  sqdebuf[50];                    /* sequence data entry buffer */
    5050
    5151struct seqent   seqbuf;                 /* sequence line buffer */
    5252
    53 short   sqfnbox(short n);
    54 
    55 /*
    56 
    57 */
    58 
    59 char    sqhilit[][8] = {                /* submenu highlight table */
     53int16_t sqfnbox(int16_t n);
     54
     55/*
     56
     57*/
     58
     59int8_t  sqhilit[][8] = {                /* submenu highlight table */
    6060
    6161        /* start, width, row1, row2, row3, row4, row5, pad */
     
    7575};
    7676
    77 char    sqopreq[] = {           /* action needs operand type flag table */
     77int8_t  sqopreq[] = {           /* action needs operand type flag table */
    7878
    7979        0,  0, 0, 0, 0,  0, 0, 0, 0,  1, 1, 1, 1,  0, 0, 0,  1
    8080};
    8181
    82 char    nextact[] = {  24, 36, 6 };     /* next column after action entry */
    83 
    84 /*
    85 
    86 */
    87 
    88 short   sqidata[] = {           /* intial data by box */
     82int8_t  nextact[] = {  24, 36, 6 };     /* next column after action entry */
     83
     84/*
     85
     86*/
     87
     88int16_t sqidata[] = {           /* intial data by box */
    8989
    9090        0x0000, /*      "           "   0 */
     
    112112*/
    113113
    114 char    actcol[] = {                    /* action data entry column by action */
     114int8_t  actcol[] = {                    /* action data entry column by action */
    115115
    116116        0,  3, 3, 3, 3,  9, 9, 9, 9,  5, 5, 5, 5,  10, 8, 3,  5
    117117};
    118118
    119 char    sqvcol[]  = { 9, 8, 9, 9 };     /* value entry column - type order */
    120 
    121 char    seqvcol[] = { 8, 8, 9, 9, 9 };  /* value entry column - box order */
    122 
    123 short   sqndata[] = {                   /* data types in box order */
     119int8_t  sqvcol[]  = { 9, 8, 9, 9 };     /* value entry column - type order */
     120
     121int8_t  seqvcol[] = { 8, 8, 9, 9, 9 };  /* value entry column - box order */
     122
     123int16_t sqndata[] = {                   /* data types in box order */
    124124
    125125        SQ_VAL, SQ_REG, SQ_VLT, SQ_RND
     
    136136*/
    137137
    138 void hilitsq(char n)
     138void hilitsq(int8_t n)
    139139{
    140         register short chr, h, v, w;
     140        register int16_t chr, h, v, w;
    141141
    142142        sqmenu = n;                             /* set current submenu type */
     
    218218*/
    219219
    220 void movestc(short r, short c)
     220void movestc(int16_t r, int16_t c)
    221221{
    222222        ctcpos(r, c);
     
    230230*/
    231231
    232 void endssm(short row, short col)
     232void endssm(int16_t row, int16_t col)
    233233{
    234234        submenu = FALSE;
     
    250250*/
    251251
    252 void setsqm(short r, short c)
     252void setsqm(int16_t r, int16_t c)
    253253{
    254254        submenu = TRUE;
     
    267267*/
    268268
    269 short sqenter(void)
     269int16_t sqenter(void)
    270270{
    271         register short i, lcol;
    272         register long ltemp;
    273         register unsigned short *ap, *dp;
    274         unsigned short theact, port, chan, key, val, obj, dtype;
     271        register int16_t i, lcol;
     272        register int32_t ltemp;
     273        register uint16_t *ap, *dp;
     274        uint16_t theact, port, chan, key, val, obj, dtype;
    275275
    276276        switch (action) {
     
    493493*/
    494494
    495 short sqfnbox(short n)
     495int16_t sqfnbox(int16_t n)
    496496{
    497         short act, vtype;
    498         register short box;
    499         register short i;
    500         register long ltemp;
     497        int16_t act, vtype;
     498        register int16_t box;
     499        register int16_t i;
     500        register int32_t ltemp;
    501501
    502502        if (NOT submenu) {                      /* SEQUENCE DATA ENTRY LINE */
Note: See TracChangeset for help on using the changeset viewer.