From: ol.sc
Date: Sun, 11 Oct 2009 11:14:35 +0000 (+0000)
Subject: Leveraged new bit-field support.
X-Git-Tag: V2.13.1~164
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c221b3c8cf95fac5e56f17af89631f8ee4923359;p=cc65
Leveraged new bit-field support.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4359 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
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;
};