Changeset 7af8be4 in buchla-68k


Ignore:
Timestamp:
07/11/2017 05:20:01 PM (3 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
0170798
Parents:
4a17aeb
Message:

Prototypes for formatted I/O.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • iolib/dofmt.c

    r4a17aeb r7af8be4  
    3535#define min(a,b)        ((a)<(b)?(a):(b))
    3636
    37 int32_t dofmt_(int16_t (*putsub)(), int8_t *format, va_list args)
     37int32_t dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args)
    3838{
    3939        register int16_t fcode;
  • iolib/dofmt.x

    r4a17aeb r7af8be4  
    1616*/
    1717
    18 extern  int32_t         dofmt_(int16_t (*putsub)(), int8_t *format, va_list args);
     18extern  int32_t         dofmt_(int16_t (*putsub)(int16_t c), int8_t *format, va_list args);
  • iolib/sprintf.c

    r4a17aeb r7af8be4  
    99
    1010static int8_t   *buff;
    11 static int16_t spsub(int8_t c);
     11static int16_t spsub(int16_t c);
    1212
    1313/*
     
    3636*/
    3737
    38 static int16_t spsub(int8_t c)
     38static int16_t spsub(int16_t c)
    3939{
    4040        return((*buff++ = c) & 0xFF);
    4141}
    42 
  • libcio/fprintf.c

    r4a17aeb r7af8be4  
    2828        return(aputc(c, Stream));
    2929}
    30 
  • libcio/scan.c

    r4a17aeb r7af8be4  
    99
    1010static int16_t maxwide;
    11 static int16_t (*gsub)();
     11static int16_t (*gsub)(int16_t what);
    1212
    1313static int8_t *scnstr;
     
    9595*/
    9696
    97 int16_t scanfmt(int16_t (*getsub)(), int8_t *fmt, int16_t **args)
     97int16_t scanfmt(int16_t (*getsub)(int16_t what), int8_t *fmt, int16_t **args)
    9898{
    9999
  • libcio/scan.x

    r4a17aeb r7af8be4  
    1515*/
    1616
    17 extern  int16_t         scanfmt(int16_t (*getsub)(), int8_t *fmt, int16_t **args);
     17extern  int16_t         scanfmt(int16_t (*getsub)(int16_t which), int8_t *fmt, int16_t **args);
    1818extern  int16_t         sscanf(int8_t *string, int8_t *fmt, int16_t *args);
Note: See TracChangeset for help on using the changeset viewer.