Changeset 7258c6a in buchla-68k for ram/ptread.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/ptread.c
r0292fbb r7258c6a 30 30 #endif 31 31 32 extern u nsigned short dpecpos;33 extern u nsigned short dpepred;34 extern u nsigned short dpesucc;35 extern int errno;36 extern short ptecpos;37 extern short ptepred;38 extern short ptesucc;32 extern uint16_t dpecpos; 33 extern uint16_t dpepred; 34 extern uint16_t dpesucc; 35 extern int16_t errno; 36 extern int16_t ptecpos; 37 extern int16_t ptepred; 38 extern int16_t ptesucc; 39 39 40 40 extern struct patch ptebuf; … … 50 50 */ 51 51 52 short stashp(void)52 int16_t stashp(void) 53 53 { 54 register short c;55 register u nsigned short np, stim;54 register int16_t c; 55 register uint16_t np, stim; 56 56 57 57 c = findpte(); … … 219 219 void ptioerr(void) 220 220 { 221 charerms[40];221 int8_t erms[40]; 222 222 223 223 clrlsel(); … … 253 253 */ 254 254 255 short ptread(FILE *fp)255 int16_t ptread(FILE *fp) 256 256 { 257 register short go;258 charcb;257 register int16_t go; 258 int8_t cb; 259 259 260 260 go = TRUE; 261 261 262 ldwmsg(" Busy -- please stand by", ( char*)NULL, " Reading patches",262 ldwmsg(" Busy -- please stand by", (int8_t *)NULL, " Reading patches", 263 263 LCFBX10, LCBBX10); 264 264 … … 297 297 return(FAILURE); 298 298 299 if (rd_ec(fp, ( char*)&ptebuf.padat2 + 1, 1L))299 if (rd_ec(fp, (int8_t *)&ptebuf.padat2 + 1, 1L)) 300 300 return(FAILURE); 301 301 … … 305 305 case PA_SCTL: 306 306 307 if (rd_ec(fp, ( char*)&ptebuf.pasuba + 1, 1L))308 return(FAILURE); 309 310 if (rd_ec(fp, ( char*)&ptebuf.padat2 + 1, 1L))307 if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L)) 308 return(FAILURE); 309 310 if (rd_ec(fp, (int8_t *)&ptebuf.padat2 + 1, 1L)) 311 311 return(FAILURE); 312 312 … … 318 318 case PA_LED: 319 319 320 if (rd_ec(fp, ( char*)&ptebuf.pasuba + 1, 1L))320 if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L)) 321 321 return(FAILURE); 322 322 … … 328 328 case PA_SLIN: 329 329 330 if (rd_ec(fp, ( char*)&ptebuf.pasuba + 1, 1L))330 if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L)) 331 331 return(FAILURE); 332 332 … … 338 338 case PA_TUNE: 339 339 340 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))340 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 341 341 return(FAILURE); 342 342 … … 348 348 case PA_RADD: 349 349 350 if (rd_ec(fp, ( char*)&ptebuf.pasuba + 1, 1L))351 return(FAILURE); 352 353 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))354 return(FAILURE); 355 356 if (rd_ec(fp, ( char*)&ptebuf.padat2 + 1, 1L))350 if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L)) 351 return(FAILURE); 352 353 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 354 return(FAILURE); 355 356 if (rd_ec(fp, (int8_t *)&ptebuf.padat2 + 1, 1L)) 357 357 return(FAILURE); 358 358 … … 367 367 return(FAILURE); 368 368 369 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))369 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 370 370 return(FAILURE); 371 371 … … 379 379 return(FAILURE); 380 380 381 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))381 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 382 382 return(FAILURE); 383 383 … … 398 398 return(FAILURE); 399 399 400 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))400 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 401 401 return(FAILURE); 402 402 … … 411 411 case PA_DPTH: 412 412 413 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))413 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 414 414 return(FAILURE); 415 415 … … 421 421 case PA_VOUT: 422 422 423 if (rd_ec(fp, ( char*)&ptebuf.pasuba + 1, 1L))424 return(FAILURE); 425 426 if (rd_ec(fp, ( char*)&ptebuf.padat1 + 1, 1L))423 if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L)) 424 return(FAILURE); 425 426 if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L)) 427 427 return(FAILURE); 428 428
Note:
See TracChangeset
for help on using the changeset viewer.