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

    r0292fbb r7258c6a  
    1515
    1616#if     CHEKSTOP
    17 short   chkstop = TRUE;
     17int16_t chkstop = TRUE;
    1818#endif
    1919
    20 extern  short   notenum, notepit, curgrp, thescore, verbose;
    21 extern  short   testing;
    22 extern  short   sharp, endflg;
    23 
    24 extern  long    curtime, noteon, noteoff, noteval, noteper, nrest;
    25 extern  long    dvwork;
    26 
    27 char    *nlist[]  = { "a", "b", "c", "d", "e", "f", "g", NULL };
    28 
    29 int     notetab[] = { 0, 2, 3, 5, 7, 8, 10 };
    30 int     octab[]   = { 21, 33, 45, 57, 69, 81, 93, 105 };
     20extern  int16_t notenum, notepit, curgrp, thescore, verbose;
     21extern  int16_t testing;
     22extern  int16_t sharp, endflg;
     23
     24extern  int32_t curtime, noteon, noteoff, noteval, noteper, nrest;
     25extern  int32_t dvwork;
     26
     27int8_t  *nlist[]  = { "a", "b", "c", "d", "e", "f", "g", NULL };
     28
     29int16_t notetab[] = { 0, 2, 3, 5, 7, 8, 10 };
     30int16_t octab[]   = { 21, 33, 45, 57, 69, 81, 93, 105 };
    3131
    3232/*
     
    4040*/
    4141
    42 void nospace(char *et)
     42void nospace(int8_t *et)
    4343{
    4444
     
    6767*/
    6868
    69 int Pcheck(struct s_entry *ptr, char *msg)
     69int16_t Pcheck(struct s_entry *ptr, int8_t *msg)
    7070{
    7171        register struct s_entry *cval;
     
    9494        }
    9595               
    96         cval = &spool[(long)MAX_SE-1];
     96        cval = &spool[(int32_t)MAX_SE-1];
    9797
    9898        if (ptr GT cval) {
     
    119119*/
    120120
    121 struct n_entry *insnevt(struct n_entry *nsp, short nt, short grp, short note, short vel)
     121struct n_entry *insnevt(struct n_entry *nsp, int16_t nt, int16_t grp, int16_t note, int16_t vel)
    122122{
    123123        nsp->e_time  = t_cur;
     
    140140*/
    141141
    142 int Qevent(void)
     142int16_t Qevent(void)
    143143{
    144         register int aux1, aux2, aux3, aux4, aux5;
    145         register char *chptr;
     144        register int16_t aux1, aux2, aux3, aux4, aux5;
     145        register int8_t *chptr;
    146146        register struct s_entry *tsp1, *tsp2;
    147147        struct s_entry *tsp3;
     
    858858*/
    859859
    860 int Qnote(void)
     860int16_t Qnote(void)
    861861{
    862862        struct n_entry *nsp1;
     
    10261026*/
    10271027
    1028 int Qadv(void)
     1028int16_t Qadv(void)
    10291029{
    10301030        if (CM_CHR('.')) {      /* advance by 1 frame */
     
    10701070*/
    10711071
    1072 int Qseq(void)
     1072int16_t Qseq(void)
    10731073{
    10741074        CM_DBLK;
     
    11411141*/
    11421142
    1143 int sqscan(char *ip)
     1143int16_t sqscan(int8_t *ip)
    11441144{
    11451145        endflg = FALSE;
Note: See TracChangeset for help on using the changeset viewer.