1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 17:20:49 +00:00

Defined a struct to contain the date and time data

To keep backward compatibility auxtype and the date/time are kept
separated.
A struct similar to the one used in dirent.h is used to access the
create_date and create_time fields.
This commit is contained in:
Mario Patiño
2013-08-03 19:08:36 +02:00
parent be7c24177c
commit 9b157a5b1e
2 changed files with 13 additions and 6 deletions
+11 -5
View File
@@ -139,12 +139,18 @@ extern unsigned char _dos_type;
* following variables to determine the file type and the aux type to use.
*/
extern unsigned char _filetype; /* Default 6 */
extern unsigned int _auxtype; /* Default 0 */
extern struct {
unsigned int aux;
unsigned char storage;
unsigned int date;
unsigned int time;
} _auxtype; /* Default 0 */
struct {
unsigned day :5;
unsigned mon :4;
unsigned year :7;
} createdate;
struct {
unsigned char min;
unsigned char hour;
} createtime;
} _datetime;
/* The addresses of the static drivers */
#if !defined(__APPLE2ENH__)