From c221b3c8cf95fac5e56f17af89631f8ee4923359 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Sun, 11 Oct 2009 11:14:35 +0000 Subject: [PATCH] Leveraged new bit-field support. git-svn-id: svn://svn.cc65.org/cc65/trunk@4359 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/dirent.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/include/dirent.h b/include/dirent.h index fc582c1d1..93759ffc2 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -51,17 +51,25 @@ struct dirent { unsigned d_blocks; unsigned long d_size; unsigned char d_type; - unsigned d_cdate; struct { - unsigned char mins; - unsigned char hours; + unsigned day :5; + unsigned mon :4; + unsigned year :7; + } d_cdate; + struct { + unsigned char min; + unsigned char hour; } d_ctime; unsigned char d_access; unsigned d_auxtype; - unsigned d_mdate; struct { - unsigned char mins; - unsigned char hours; + unsigned day :5; + unsigned mon :4; + unsigned year :7; + } d_mdate; + struct { + unsigned char min; + unsigned char hour; } d_mtime; }; -- 2.39.5