diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/utilities/mff-29/xstdio.h |
Initial commit
Diffstat (limited to 'fonts/utilities/mff-29/xstdio.h')
-rw-r--r-- | fonts/utilities/mff-29/xstdio.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/fonts/utilities/mff-29/xstdio.h b/fonts/utilities/mff-29/xstdio.h new file mode 100644 index 0000000000..05f3c4aa65 --- /dev/null +++ b/fonts/utilities/mff-29/xstdio.h @@ -0,0 +1,62 @@ +/* xstdio.h 2.9.0 92/07/06 -- standard IO header file plus prototypes */ + +/* + * This file is intended to get around the problem of + * using GNU C on a system that doesn't have ANSI C header files. + * I've taken it out of stdc.h because I want stdc.h to still be + * useful when I write non-stdio programs (as I very occasionally do). + * - Damian Cugley <pdc@prg.ox.ac.uk> Mon. 17 June 1991 + */ + +#ifndef MFF_xstdio_H +#define MFF_xstdio_H + +/* + * attempt to avoid loading the system header file more than once + * -- on some systems this seems to cause an error because NULL is redefined. + */ +#ifndef BUFSIZ +# include <stdio.h> +#endif + +#ifndef ARGS +# include "stdc.h" +#endif + +#ifdef NEEDPROTO + +int printf ARGS((const char *, ...)); +int fprintf ARGS((FILE *, const char *, ...)); +int puts ARGS((const char *)); +int fputs ARGS((const char *, FILE *)); +int fputc ARGS((int, FILE *)); +int ungetc ARGS((int, FILE *)); +int fclose ARGS((FILE *)); +void rewind ARGS((FILE *)); +int fflush ARGS((FILE *)); /* EOF on error */ +int putw ARGS((int, FILE *)); +int getw ARGS((FILE *)); +int fwrite ARGS((addr, sizeof_t, int, FILE *)); +int fread ARGS((addr, sizeof_t, int, FILE *)); +int setvbuf ARGS((FILE *, char *, int, sizeof_t)); + +/* + * functions used in the putc and getc macros in stdio.h + * I need to declare them if only to shut GCC up. + * I think they apply to BSD and System V systems at least. + */ +#ifndef NO_FLSBUF +int _flsbuf ARGS((int, FILE *)); +int _filbuf ARGS((FILE *)); +#endif + +#endif /* NEEDPROTO */ + + +/* + * Plus one extra routine: + */ +char * fgetword ARGS((char *buf, FILE *fp)); + + +#endif /* MFF_xstdio_H */ |