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

    r0292fbb r7258c6a  
    3030#endif
    3131
    32 extern  unsigned short  dpecpos;
    33 extern  unsigned short  dpepred;
    34 extern  unsigned short  dpesucc;
    35 extern  int     errno;
    36 extern  short   ptecpos;
    37 extern  short   ptepred;
    38 extern  short   ptesucc;
     32extern  uint16_t        dpecpos;
     33extern  uint16_t        dpepred;
     34extern  uint16_t        dpesucc;
     35extern  int16_t errno;
     36extern  int16_t ptecpos;
     37extern  int16_t ptepred;
     38extern  int16_t ptesucc;
    3939
    4040extern  struct  patch   ptebuf;
     
    5050*/
    5151
    52 short stashp(void)
     52int16_t stashp(void)
    5353{
    54         register short c;
    55         register unsigned short np, stim;
     54        register int16_t c;
     55        register uint16_t np, stim;
    5656
    5757        c = findpte();
     
    219219void ptioerr(void)
    220220{
    221         char erms[40];
     221        int8_t erms[40];
    222222
    223223        clrlsel();
     
    253253*/
    254254
    255 short ptread(FILE *fp)
     255int16_t ptread(FILE *fp)
    256256{
    257         register short go;
    258         char cb;
     257        register int16_t go;
     258        int8_t cb;
    259259
    260260        go = TRUE;
    261261
    262         ldwmsg(" Busy -- please stand by", (char *)NULL, "  Reading patches",
     262        ldwmsg(" Busy -- please stand by", (int8_t *)NULL, "  Reading patches",
    263263                LCFBX10, LCBBX10);
    264264
     
    297297                                return(FAILURE);
    298298
    299                         if (rd_ec(fp, (char *)&ptebuf.padat2 + 1, 1L))
     299                        if (rd_ec(fp, (int8_t *)&ptebuf.padat2 + 1, 1L))
    300300                                return(FAILURE);
    301301
     
    305305                case PA_SCTL:
    306306
    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))
    311311                                return(FAILURE);
    312312
     
    318318                case PA_LED:
    319319
    320                         if (rd_ec(fp, (char *)&ptebuf.pasuba + 1, 1L))
     320                        if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L))
    321321                                return(FAILURE);
    322322
     
    328328                case PA_SLIN:
    329329
    330                         if (rd_ec(fp, (char *)&ptebuf.pasuba + 1, 1L))
     330                        if (rd_ec(fp, (int8_t *)&ptebuf.pasuba + 1, 1L))
    331331                                return(FAILURE);
    332332
     
    338338                case PA_TUNE:
    339339
    340                         if (rd_ec(fp, (char *)&ptebuf.padat1 + 1, 1L))
     340                        if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L))
    341341                                return(FAILURE);
    342342
     
    348348                case PA_RADD:
    349349
    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))
    357357                                return(FAILURE);
    358358
     
    367367                                return(FAILURE);
    368368
    369                         if (rd_ec(fp, (char *)&ptebuf.padat1 + 1, 1L))
     369                        if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L))
    370370                                return(FAILURE);
    371371
     
    379379                                return(FAILURE);
    380380
    381                         if (rd_ec(fp, (char *)&ptebuf.padat1 + 1, 1L))
     381                        if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L))
    382382                                return(FAILURE);
    383383
     
    398398                                return(FAILURE);
    399399
    400                         if (rd_ec(fp, (char *)&ptebuf.padat1 + 1, 1L))
     400                        if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L))
    401401                                return(FAILURE);
    402402
     
    411411                case PA_DPTH:
    412412
    413                         if (rd_ec(fp, (char *)&ptebuf.padat1 + 1, 1L))
     413                        if (rd_ec(fp, (int8_t *)&ptebuf.padat1 + 1, 1L))
    414414                                return(FAILURE);
    415415
     
    421421                case PA_VOUT:
    422422
    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))
    427427                                return(FAILURE);
    428428
Note: See TracChangeset for help on using the changeset viewer.