diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 2 | ||||
-rw-r--r-- | lib/stdio.h | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/Makefile b/lib/Makefile index f564ee0..68d1e74 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,7 +1,5 @@ include ../Makefile.config -CCFLAGS += -I. -I.. - libk.SRCS = stdio/printf.c stdio/fprintf.c stdio/vfprintf.c \ stdlib/memcpy.c stdlib/memset.c \ string/itoa.c diff --git a/lib/stdio.h b/lib/stdio.h index 4711a29..f7c1846 100644 --- a/lib/stdio.h +++ b/lib/stdio.h @@ -3,14 +3,14 @@ #include <stdarg.h> /** An object type used for streams */ -typedef struct FILE_t { +typedef struct kIoDevice { int id; /** Functions that prints a character to the stream */ - void (*putc)(const struct FILE_t *, char); + void (*putc)(const struct kIoDevice *, char); /** Function that prints a string to the stream */ - int (*puts)(const struct FILE_t *, const char *, int); + int (*puts)(const struct kIoDevice *, const char *, int); /** Flush all buffers */ - void (*flush)(const struct FILE_t *); + void (*flush)(const struct kIoDevice *); } FILE; /** A FILE value corresponding to stdin, the keyboard buffer */ |