]> git.sur5r.net Git - cc65/blobdiff - include/stdio.h
Stefan Haubenthal fixed a few typos.
[cc65] / include / stdio.h
index dcc5585bd0b73dcd31fe67d53a0d168a374d55ab..f1601603e957be8214bc83e4608e2d006870782a 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2004 Ullrich von Bassewitz                                       */
-/*               Römerstraße 52                                              */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -69,14 +69,16 @@ extern FILE* stderr;
 #define TMP_MAX                256
 
 /* Standard defines that are platform dependent */
-#if defined(__ATARI__)
-#  define FILENAME_MAX 12
+#if defined(__APPLE2__) || defined(__APPLE2ENH__)
+#  define FILENAME_MAX (64+1)
+#elif defined(__ATARI__)
+#  define FILENAME_MAX (12+1)
 #elif defined(__LUNIX__)
-#  define FILENAME_MAX  80
+#  define FILENAME_MAX  (80+1)
 #else
-#  define FILENAME_MAX  16
+#  define FILENAME_MAX  (16+1)
 #endif
-#define L_tmpnam       (FILENAME_MAX + 1)
+#define L_tmpnam       FILENAME_MAX
 
 
 
@@ -114,10 +116,12 @@ int __fastcall__ putchar (int c);
 int __fastcall__ puts (const char* s);
 int __fastcall__ remove (const char* name);
 int __fastcall__ rename (const char* oldname, const char* newname);
+int snprintf (char* buf, size_t size, const char* format, ...);
 int sprintf (char* buf, const char* format, ...);
 int __fastcall__ ungetc (int c, FILE* f);
 int __fastcall__ vfprintf (FILE* f, const char* format, va_list ap);
 int __fastcall__ vprintf (const char* format, va_list ap);
+int __fastcall__ vsnprintf (char* buf, size_t size, const char* format, va_list ap);
 int __fastcall__ vsprintf (char* buf, const char* format, va_list ap);
 
 int scanf (const char* format, ...);
@@ -137,11 +141,6 @@ void __fastcall__ _poserror (const char* msg);     /* cc65 */
 #define getc(f)                fgetc (f)               /* ANSI */
 #define putc(c, f)             fputc (c, f)            /* ANSI */
 
-/* Non-standard function like macros */
-#if __CC65_STD__ == __CC65_STD_CC65__
-#define flushall()                                     /* Unix */
-#endif
-
 
 
 /* End of stdio.h */