From be7c24177c7eb0b3b86bc76b6f603368f6981ac4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mario=20Pati=C3=B1o?= Date: Sat, 3 Aug 2013 15:42:16 +0200 Subject: [PATCH] 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. --- include/apple2.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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__) -- 2.39.5