#if !defined CONFIG
#define CONFIG



#define NULL_CHAR		'\0'

#define FALSE			0
#define TRUE			1

#define OPEN_READ		1
#define OPEN_WRITE		2
#define OPEN_APPEND		3
#define OPEN_UPDATE		4

#define MAX_ARCHIVE_NAME_SIZE	100
#define MAX_ENTRY_NAME_SIZE	30
#define SIGNATURE_SIZE		12

#define NOT_AN_ENTRY		-1

#define MIN_VAL( a, b )		( a < b ) ? a : b
#define MAX_VAL( a, b )		( a > b ) ? a : b

/* if the function tell() is not available, use the TELL() macro below instead,
 * ie. uncomment the line below and replace all occurrences of "tell" in all
 * source files with "TELL" */
/*#define TELL( file_des )	lseek( file_des, 0, SEEK_CUR )*/



typedef char		entry_name_type[ MAX_ENTRY_NAME_SIZE + 1 ] ;
typedef unsigned char	signature_type[ SIGNATURE_SIZE ] ;



typedef struct _archive_index_entry_type {
  entry_name_type	name ;
  signature_type	signature ;
  long int		date_created ;
  long int		date_last_modified ;	/* when the index entry was last modified */
  int			data_size ;		/* size of data entry */
  int			kind ;
 } archive_index_entry_type ;



#endif
