]> git.sur5r.net Git - cc65/blobdiff - include/stdio.h
Added a C header that translates from the source file's encoding to PetSCII.
[cc65] / include / stdio.h
index c29fa4901261dc1a4c2ec7a14a88a5a0d1ace853..73dc05bdb602a4e1b6a9eccf330e9b63a74527a7 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                 stdio.h                                  */
+/*                                  stdio.h                                  */
 /*                                                                           */
-/*                              Input/output                                */
+/*                               Input/output                                */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
 
 
 
-#ifndef _STDDEF_H
-#  include <stddef.h>
-#endif
-#ifndef _STDARG_H
-#  include <stdarg.h>
-#endif
+#include <stddef.h>
+#include <stdarg.h>
 
 
 
@@ -57,33 +53,35 @@ extern FILE* stdout;
 extern FILE* stderr;
 
 /* Standard defines */
-#define _IOFBF         0
-#define _IOLBF         1
-#define _IONBF         2
-#define BUFSIZ         256
-#define EOF            -1
-#define FOPEN_MAX      8
-#define SEEK_CUR       0
-#define SEEK_END       1
-#define SEEK_SET       2
-#define TMP_MAX                256
+#define _IOFBF          0
+#define _IOLBF          1
+#define _IONBF          2
+#define BUFSIZ          256
+#define EOF             -1
+#define FOPEN_MAX       8
+#define SEEK_CUR        0
+#define SEEK_END        1
+#define SEEK_SET        2
+#define TMP_MAX         256
 
 /* Standard defines that are platform dependent */
-#if defined(__APPLE2__) || defined(__APPLE2ENH__)
-#  define FILENAME_MAX (64+1)
+#if defined(__APPLE2__)
+#  define FILENAME_MAX  (64+1)
 #elif defined(__ATARI__)
-#  define FILENAME_MAX (12+1)
+#  define FILENAME_MAX  (12+1)
 #elif defined(__LUNIX__)
 #  define FILENAME_MAX  (80+1)
+#elif defined(__TELESTRAT__)
+#  define FILENAME_MAX  (50+1)
 #else
 #  define FILENAME_MAX  (16+1)
 #endif
-#define L_tmpnam       FILENAME_MAX
+#define L_tmpnam        FILENAME_MAX
 
 
 
 /*****************************************************************************/
-/*                                          Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
@@ -132,19 +130,16 @@ int __fastcall__ vsscanf (const char* s, const char* format, va_list ap);
 int __fastcall__ vfscanf (FILE* f, const char* format, va_list ap);
 
 #if __CC65_STD__ == __CC65_STD_CC65__
-FILE* __fastcall__ fdopen (int fd, const char* mode);  /* Unix */
-int __fastcall__ fileno (FILE* f);                     /* Unix */
+FILE* __fastcall__ fdopen (int fd, const char* mode);   /* Unix */
+int __fastcall__ fileno (FILE* f);                      /* Unix */
 #endif
-void __fastcall__ _poserror (const char* msg);         /* cc65 */
+void __fastcall__ _poserror (const char* msg);          /* cc65 */
 
 /* Masking macros for some functions */
-#define getc(f)                fgetc (f)               /* ANSI */
-#define putc(c, f)             fputc (c, f)            /* ANSI */
+#define getc(f)         fgetc (f)               /* ANSI */
+#define putc(c, f)      fputc (c, f)            /* ANSI */
 
 
 
 /* End of stdio.h */
 #endif
-
-
-