]> git.sur5r.net Git - cc65/commitdiff
Leveraged new bit-field support.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 11 Oct 2009 11:14:35 +0000 (11:14 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 11 Oct 2009 11:14:35 +0000 (11:14 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4359 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dirent.h

index fc582c1d128ec4ec87974a435c9575ab2bbcb8f6..93759ffc2dcec2edf6b37b21500e9a3cdd15569e 100644 (file)
@@ -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;
 };