Changeset 7af8be4 in buchla-68k for iolib


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

Prototypes for formatted I/O.

Location:
iolib
Files:
3 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 
Note: See TracChangeset for help on using the changeset viewer.