]> git.sur5r.net Git - cc65/commitdiff
Corrected copyright and moved file type globals
authorBill Chatfield <bill_chatfield@yahoo.com>
Fri, 28 Jul 2017 16:01:57 +0000 (12:01 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2017 16:01:57 +0000 (12:01 -0400)
The file type globals., _filetype and _auxtype, were moved from apple2.h to this file.

include/apple2_filetype.h

index 96cf49581282dc3abafd7e2b6f5ba225c61aa6c0..bdfa930930d39d39fbbcb387e31b9142e92c395c 100644 (file)
@@ -6,8 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000  Kevin Ruland, <kevin@rodin.wustl.edu>                           */
-/* (C) 2003  Ullrich von Bassewitz, <uz@cc65.org>                            */
+/* (C) 2017  Bill Chatfield, <bill_chatfield@yahoo.com>                      */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 /* BAS auxiliary types */
 #define PRODOS_AUX_T_BAS_PGM_LOAD_ADDR  0x0801  /* Applesoft pgm load addr  */
 
+/* The file stream implementation and the POSIX I/O functions will use the
+** following variables to determine the file type and auxiliary type to use.
+** This applies specifically to the fopen and open functions.
+*/
+extern unsigned char _filetype;  /* Default: PRODOS_T_BIN */
+extern unsigned int _auxtype;    /* Default: 0 */
+
 /* End of apple2_filetype.h */
 #endif