File: cpmdir.h

package info (click to toggle)
cpmtools 2.5-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 904 kB
  • ctags: 383
  • sloc: ansic: 5,005; sh: 2,735; makefile: 138
file content (21 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CPMDIR_H
#define CPMDIR_H

struct PhysDirectoryEntry
{
  char status;
  char name[8];
  char ext[3];
  char extnol;
  char lrc;
  char extnoh;
  char blkcnt;
  char pointers[16];
};

#define ISFILECHAR(notFirst,c) (((notFirst) || (c)!=' ') && (c)>=' ' && !((c)&~0x7f) && (c)!='<' && (c)!='>' && (c)!='.' && (c)!=',' && (c)!=';' && (c)!=':' && (c)!='=' && (c)!='?' && (c)!='*' && (c)!= '[' && (c)!=']')
#define EXTENT(low,high) (((low)&0x1f)|(((high)&0x3f)<<5))
#define EXTENTL(extent) ((extent)&0x1f)
#define EXTENTH(extent) (((extent>>5))&0x3f)

#endif