www.pudn.com > cdx.zip > TYPES.H


/*C4*/ 
/****************************************************************/ 
/*	Author:	Jethro Wright, III 			TS :  1/20/1994 14:30	*/ 
/*	Date:	01/01/1994											*/ 
/*			types.h :											*/ 
/*																*/ 
/*	History:													*/ 
/*		01/01/1994  jw3  also sprach zarathustra....			*/ 
/****************************************************************/ 
 
 
#if			! defined( __TYPES_H__ ) 
#define		__TYPES_H__ 
 
#define			STR_255_SIZE	256 
#define			STR_80_SIZE		81 
 
 
#if			! defined( _WINDOWS ) 
 
		//	in case this is compiled for dos.... 
 
typedef	unsigned char		BYTE ; 
typedef	unsigned short		WORD ; 
typedef	unsigned long		DWORD ; 
 
 
#define			HIBYTE(w)	((BYTE) (((WORD) (w) >> 8) & 0x00ff)) 
#define			LOBYTE(w)	((BYTE) ((w) & 0x00ff)) 
#define			HIWORD(l)	((WORD) (((DWORD) (l) >> 16) & 0xffff)) 
#define 		LOWORD(l)	((WORD) (l)) 
 
#endif 
 
 
typedef int 	( far * FFunc ) () ; 
typedef char 	* ( far * FCFunc ) () ; 
typedef char 	* ( * CFunc ) () ; 
typedef int		( * Func ) () ; 
typedef void 	( * VFunc ) () ; 
typedef void 	( * FVFunc ) () ; 
 
typedef void 	far * VFP ; 
typedef void	* VP ; 
 
typedef BYTE	* BYTEP ; 
typedef BYTE	Str80[ STR_80_SIZE ] ; 
typedef BYTE	Str255[ STR_255_SIZE ] ; 
typedef WORD	Boolean ; 
 
#endif									// #if ! defined( __TYPES_H__ )....