Changeset 7258c6a in buchla-68k for ram/scread.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/scread.c
r0292fbb r7258c6a 16 16 #include "libdsp.h" 17 17 18 extern short scskip(FILE *fp, short ns);19 20 extern longschksum; /* 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 */18 extern int16_t scskip(FILE *fp, int16_t ns); 19 20 extern int32_t schksum; /* score checksum */ 21 22 extern int16_t errno; /* system error number */ 23 extern int16_t lderrsw; /* librarian error message switch */ 24 extern int16_t lrasw; /* "Content" switch */ 25 26 extern int16_t ldmap[]; /* librarian gather-read map */ 27 27 28 28 extern struct s_entry *libsp; /* librarian score insert pointer */ … … 40 40 */ 41 41 42 void scioerr( short sn, struct s_entry *ep)42 void scioerr(int16_t sn, struct s_entry *ep) 43 43 { 44 charscid[40];45 charerms[40];44 int8_t scid[40]; 45 int8_t erms[40]; 46 46 47 47 if (E_NULL NE ep) … … 64 64 */ 65 65 66 void noevent(int sn)66 void noevent(int16_t sn) 67 67 { 68 charscid[24];68 int8_t scid[24]; 69 69 70 70 sc_clr(sn); … … 87 87 */ 88 88 89 short scread(short ns, FILE *fp)89 int16_t scread(int16_t ns, FILE *fp) 90 90 { 91 91 register struct s_entry *ep; 92 register short ehdr, go, sn;93 longnbr, nev;94 charetype;95 charscid[40];96 charerms[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]; 97 97 98 98 sn = ldmap[ns]; /* map the score */ … … 160 160 } 161 161 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 */ 163 163 164 164 scioerr(sn, 0L);
Note:
See TracChangeset
for help on using the changeset viewer.