Changeset 7258c6a in buchla-68k for rom/booter.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
  • rom/booter.c

    r0292fbb r7258c6a  
    1515#include "biosdefs.h"
    1616
    17 extern  FILE    *fopenb(char *name, char *mode);
    18 extern  int     fclose(FILE *ptr);
    19 extern  int     fread(char *buffer, unsigned size, int number, FILE *stream);
    20 extern  int     flread(char *buff, long len, FILE *fp);
    21 extern  long    getl(FILE *stream);
     17extern  FILE    *fopenb(int8_t *name, int8_t *mode);
     18extern  int16_t fclose(FILE *ptr);
     19extern  int16_t fread(int8_t *buffer, uint16_t size, int16_t number, FILE *stream);
     20extern  int16_t flread(int8_t *buff, int32_t len, FILE *fp);
     21extern  int32_t getl(FILE *stream);
    2222
    2323#if     PRINTIT
    2424extern  struct  fcb     *SnapFCB(struct fcb *fcp);
    25 extern  int     ClusMap(struct fcb *fcp);
     25extern  int16_t ClusMap(struct fcb *fcp);
    2626#endif
    2727
     
    3030struct  EXFILE B_fhdr;  /* executable file header */
    3131
    32 long    B_txt_o,        /* test origin from file header */
     32int32_t B_txt_o,        /* test origin from file header */
    3333        B_dat_o,        /* data origin from file header */
    3434        B_bss_o,        /* bss origin from file header */
     
    4040        B_chk;          /* checksum */
    4141
    42 char    *B_buf_a;       /* boot load address */
     42int8_t  *B_buf_a;       /* boot load address */
    4343
    44 short   B_log_s;        /* boot log switch */
    45 short   B_dbg_s;        /* boot debug switch */
     44int16_t B_log_s;        /* boot log switch */
     45int16_t B_dbg_s;        /* boot debug switch */
    4646
    4747/*
     
    5656*/
    5757
    58 short booter(char *fn, long textadr)
     58int16_t booter(int8_t *fn, int32_t textadr)
    5959{
    60         register long i, bgnbss, endbss;
    61         register char *cp;
     60        register int32_t i, bgnbss, endbss;
     61        register int8_t *cp;
    6262#if     PRINTIT
    6363        register struct fcb *fcp;
Note: See TracChangeset for help on using the changeset viewer.