Added functional Atari directory classification macros for file types from struct dirent contributed by Stefan A. Haubenthal.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5759 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2012-07-03 20:10:52 +00:00
parent c68d7de66e
commit f9f660dd5d
2 changed files with 7 additions and 4 deletions

View File

@@ -81,11 +81,12 @@ struct dirent {
#elif defined(__ATARI__)
struct dirent {
char d_name[13]; /* 8.3 + trailing 0 */
char d_name[13]; /* 8.3 + trailing 0 */
unsigned char d_type;
};
#define _DE_ISREG(t) (1)
#define _DE_ISDIR(t) (0)
#define _DE_ISREG(t) ((t) != 0xC4)
#define _DE_ISDIR(t) ((t) == 0xC4)
#define _DE_ISLBL(t) (0)
#define _DE_ISLNK(t) (0)