From: Mario PatiƱo Date: Sat, 3 Aug 2013 13:42:16 +0000 (+0200) Subject: Promoted _auxtype to a struct to gain access to additional fields X-Git-Tag: V2.15~244^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be7c24177c7eb0b3b86bc76b6f603368f6981ac4;p=cc65 Promoted _auxtype to a struct to gain access to additional fields While creating files there was no possibility to explicitly set the time or date. This is necessary for example while copying files since the original time and date should be kept. --- diff --git a/include/apple2.h b/include/apple2.h index 190248b0d..396ddfde5 100644 --- a/include/apple2.h +++ b/include/apple2.h @@ -139,7 +139,12 @@ 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 */ /* The addresses of the static drivers */ #if !defined(__APPLE2ENH__)