#ifndef __DIR_H
#define __DIR_H

#define MAXDIR 66		/* 64: path; +1: root sign; +1: NUL terminator */
#define MAXDRIVE 3		/* 1: drive letter; +1: ':'; +1: NUL terminator */
#define MAXNAME 9		/* 8: name; +1: NUL terminator */
#define MAXEXT 5		/* 3: name; +1: dot; +1: NUL terminator */
#define MAXPATH (MAXDIR + MAXDRIVE + MAXNAME + MAXEXT - 3)

/* file attributes for Borland C */
#define FA_NORMAL   0x00        /* no special */
#define FA_RDONLY   0x01        /* Read only */
#define FA_HIDDEN   0x02        /* Hidden */
#define FA_SYSTEM   0x04        /* System */
#define FA_LABEL    0x08        /* Volume */
#define FA_DIREC    0x10        /* Directory */
#define FA_ARCH     0x20        /* Archive */
#define FA_ALL		0x3F

/* findfirst()/findnext() block for Borland C */
#define find_t ffblk		/* MSC's block structure is the same */
#define _find_t ffblk

#endif
