Imported Upstream version 2.17
[debian/cpmtools] / cpmdir.h
1 #ifndef CPMDIR_H
2 #define CPMDIR_H
3
4 struct PhysDirectoryEntry
5 {
6   char status;
7   char name[8];
8   char ext[3];
9   char extnol;
10   char lrc;
11   char extnoh;
12   char blkcnt;
13   char pointers[16];
14 };
15
16 #define ISFILECHAR(notFirst,c) (((notFirst) || (c)!=' ') && (c)>=' ' && !((c)&~0x7f) && (c)!='<' && (c)!='>' && (c)!='.' && (c)!=',' && (c)!=';' && (c)!=':' && (c)!='=' && (c)!='?' && (c)!='*' && (c)!= '[' && (c)!=']')
17 #define EXTENT(low,high) (((low)&0x1f)|(((high)&0x3f)<<5))
18 #define EXTENTL(extent) ((extent)&0x1f)
19 #define EXTENTH(extent) (((extent>>5))&0x3f)
20
21 #endif