home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
tmp9
/
p_type.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-01-20
|
2KB
|
64 lines
/*****************************************************************************/
/* */
/* Copyright (c) 1995 by Oy Online Solutions Ltd. */
/* */
/* Distribution of this source code is strictly forbbidden. Use of this */
/* source code is granted to the University of Columbia C-Kermit project */
/* to be distributed in binary format only. Please familiarize yourself */
/* with the accompanying LICENSE.P file. */
/* */
/*****************************************************************************/
/*
These are much more smaller than "unsigned long" etc to write and
make porting to systems with different word sizes a lot easier...
*/
#ifndef _TYPEDEFS_H_
#define _TYPEDEFS_H_
typedef unsigned long U32;
typedef long S32;
typedef unsigned short U16;
typedef short S16;
typedef unsigned char U8;
typedef char S8;
#ifndef NT
typedef unsigned long BOOLEAN;
#endif
#ifdef XYZ_DLL
#ifdef NT
typedef long APIRET ;
#define DosSleep Sleep
#endif
#else /* XYZ_DLL */
typedef long APIRET ;
#define DosSleep msleep
#endif /* XYZ_DLL */
#ifdef XYZ_DLL
#ifndef CK_ANSIC
#define CK_ANSIC
#endif /* CK_ANSIC */
#endif /* XYZ_DLL */
#ifdef OS2
#ifndef VOID
#define VOID void
#endif /* VOID */
#endif /* OS2 */
#ifndef OS2
#define _System
#endif /* OS2 */
#ifndef _PROTOTYP
#ifdef CK_ANSIC
#define _PROTOTYP( func, parms ) func parms
#else /* Not ANSI C */
#define _PROTOTYP( func, parms ) func()
#endif /* CK_ANSIC */
#endif /* _PROTOTYP */
#endif /* _TYPEDEFS_H_ */