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. * * RCS path: * $Source$ * Modified: $Date$ by $Author$ * Current State: $State$ locked by $Locker$ */ #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 #if defined(DEBUG) && !defined( ASSERT) #define ASSERT(p) do {if (!(p)) { \ printf ("assertion failed %s:%d\n", \ __FILE__, __LINE__);}} while (FALSE) #else #define ASSERT(p) #endif #ifndef YES typedef char BOOL; #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.