ftp.nice.ch/pub/next/games/strategic/Queens.NIHS.bs.tar.gz#/Queens/Source/standard.h

This is standard.h in view mode; [Download] [Up]

/*	standard.h - Universal definitions
 *	Copyright (C) 1993 Corona Design, Inc. All rights reserved.
 *
 *	Abstract
 *		Common definitions shared by just about everything.
 *
 *	$LOG
 */
 
#ifndef	_STANDARD_H
#define	_STANDARD_H		1
 
/* Basic definitions and types.
 */

							// isolate C++ syntax
#ifdef	__cplusplus
#define	EXTERN_C		extern "C"
#define	EXTERN_C_BEGIN	EXTERN_C {
#define	EXTERN_C_END	}
#else
#define	EXTERN_C		
#define	EXTERN_C_BEGIN	
#define	EXTERN_C_END	
#endif

EXTERN_C_BEGIN
#include	<stdio.h>
EXTERN_C_END
			
#ifdef	ASSERT
#undef	ASSERT
#endif

#if		defined(DEBUG)
#define	ASSERT(p) 	do {if (!(p)) { \
						printf ("assertion failed %s:%d\n", \
						__FILE__, __LINE__);}} while (FALSE)
#else
#define	ASSERT(p)
#endif


#if		!defined(BOOL) && !defined(_OBJC_OBJC_H_)
typedef	char	BOOL;
#endif

#ifndef	YES
#define	YES	1
#define	NO	0
#endif

#ifndef	TRUE
#define	TRUE	YES
#define	FALSE	NO
#endif


//	Relational operators

#define	EQ	==
#define	GE	>=
#define	GT	>
#define	LE	<=
#define	LT	<
#define	NE	!=

//	Basic typedefs

typedef	unsigned char	BYTE;
typedef	unsigned short	WORD;
typedef	unsigned long	ULONG;

#define	NIL	nil


#endif	_STANDARD_H

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.