/*
 * LOCAL.H - Local subroutine definitions for local procedures.
 * S. Leoce  02/29/88
 */

/*
 * General declare area ... begin
 */

#define	ONE	1		/* the standard digits are located here */
#define	TWO	2
#define	THREE	3
#define	FOUR	4
#define	FIVE	5
#define	SIX	6
#define	SEVEN	7
#define	EIGHT	8
#define	NINE	9
#define	ZERO	0		/* all complete */

#define	K	*1024		/* for K notation usage ... */
#define	M	1024K		/* for M notation	    */

#ifdef  __STDC__
#define _Cdecl
#else
#define	_Cdecl	cdecl
#endif

#if !defined(__LOCAL_DEF_)
#define	__LOCAL_DEF_
#endif

#define	FALSE	0
#define	TRUE	1		/* Standard boolean values */


/*
 * Bitwise operations defined here
 */

unsigned _Cdecl getbits (unsigned field, short posn, short len);

/*
 * DOS/CP File utility operations defined here
 * Requires previous definition of the time module
 */

#if !defined(_TIME_T)
#include <dir.h>
#endif

char * _Cdecl filedate (struct ffblk f);

/*
 * String utility functions are declared here
 */

int _Cdecl strexp (char * s, char * t, int tlen);
int _Cdecl strcmpr(char * s, char * t, int tlen);

/*
 * Timezone utility functions declared here
 */

int _Cdecl getzone(void);	/* returns zone if set, else -1	       */
int _Cdecl setzone(char zone);	/* zone is E or C or M or P indicators */

#ifndef _Zones_
#define	_Zones_
static	int	_zone = 0;	/* statics for library linkage */
static	int	_zoneset = 0;
#endif

/*
 * unixtime and julian date functions declared here
 */

char * _Cdecl unixtime (int GMT);
char * _Cdecl jojulian (struct tm * now);

/*
 * runtime utility functions - disk drive validation
 */

int _Cdecl DRVALID (int drnum);		/* 1 if valid , 0 if not ... */

/*
 * wildcard expansion utility function here
 */

char * _Cdecl _wild (char * pattern); /* returns name or NULL */

/*
 * end of function declare area
 */