X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fkernel%2Fao.h;h=204eaae75a3baead7637c772370bf632ad22a963;hp=0a3981d743b323c229ef75323867e42a2fca0369;hb=e8bb5128a09c7f48f9c2a0aa2ee6bae13b4b6322;hpb=f32bb8c1091cf77037f5f3c5eb384e512d24a359 diff --git a/src/kernel/ao.h b/src/kernel/ao.h index 0a3981d7..204eaae7 100644 --- a/src/kernel/ao.h +++ b/src/kernel/ao.h @@ -26,6 +26,15 @@ #include #include +/* replace stdio macros with direct calls to our functions */ +#undef putchar +#undef getchar +#define putchar(c) ao_putchar(c) +#define getchar ao_getchar + +extern int ao_putchar(char c); +extern char ao_getchar(void); + #define TRUE 1 #define FALSE 0