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

    r0292fbb r7258c6a  
    1616#include "libdsp.h"
    1717
    18 extern  short   scskip(FILE *fp, short ns);
    19 
    20 extern  long    schksum;                /* score checksum */
    21 
    22 extern  int     errno;                  /* system error number */
    23 extern  short   lderrsw;                /* librarian error message switch */
    24 extern  short   lrasw;                  /* "Content" switch */
    25 
    26 extern  short   ldmap[];                /* librarian gather-read map */
     18extern  int16_t scskip(FILE *fp, int16_t ns);
     19
     20extern  int32_t schksum;                /* score checksum */
     21
     22extern  int16_t errno;                  /* system error number */
     23extern  int16_t lderrsw;                /* librarian error message switch */
     24extern  int16_t lrasw;                  /* "Content" switch */
     25
     26extern  int16_t ldmap[];                /* librarian gather-read map */
    2727
    2828extern  struct  s_entry *libsp;         /* librarian score insert pointer */
     
    4040*/
    4141
    42 void scioerr(short sn, struct s_entry *ep)
     42void scioerr(int16_t sn, struct s_entry *ep)
    4343{
    44         char scid[40];
    45         char erms[40];
     44        int8_t scid[40];
     45        int8_t erms[40];
    4646
    4747        if (E_NULL NE ep)
     
    6464*/
    6565
    66 void noevent(int sn)
     66void noevent(int16_t sn)
    6767{
    68         char scid[24];
     68        int8_t scid[24];
    6969
    7070        sc_clr(sn);
     
    8787*/
    8888
    89 short scread(short ns, FILE *fp)
     89int16_t scread(int16_t ns, FILE *fp)
    9090{
    9191        register struct s_entry *ep;
    92         register short ehdr, go, sn;
    93         long nbr, nev;
    94         char etype;
    95         char scid[40];
    96         char erms[40];
     92        register int16_t ehdr, go, sn;
     93        int32_t nbr, nev;
     94        int8_t etype;
     95        int8_t scid[40];
     96        int8_t erms[40];
    9797
    9898        sn = ldmap[ns];         /* map the score */
     
    160160        }
    161161
    162         if (rd_ec(fp, &stimes[sn], (long)(N_SECTS * 12))) { /* section times */
     162        if (rd_ec(fp, &stimes[sn], (int32_t)(N_SECTS * 12))) { /* section times */
    163163
    164164                scioerr(sn, 0L);
Note: See TracChangeset for help on using the changeset viewer.