Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/magnus/back_end/global/global.h

Go to the documentation of this file.
00001 /*
00002  *   $Id: global.h,v 1.3 1999/11/23 20:34:54 bormotov Exp $
00003  */
00004 
00005 // Copyright (C) 1994 The New York Group Theory Cooperative
00006 // See magnus/doc/COPYRIGHT for the full notice.
00007 
00008 // Contents: Global declarations to be included by all other header files.
00009 //
00010 // Principal Author: Roger Needham
00011 //
00012 // Status: Useable.
00013 //
00014 // Further implemenation steps:
00015 //
00016 // Revision History:
00017 //
00018 // * 5/27/95 Roger removed the inclusion of config.h.
00019 //           See general/MagnusHome.h
00020 //
00021 // * 1/96 Dmitry B. added the inclusion of IPC.h
00022 //
00023 
00024 #ifndef _GLOBAL_H_
00025 #define _GLOBAL_H_
00026 
00027 
00028 #include <stream.h>
00029 #include <iostream.h>
00030 #include <fstream.h>
00031 #include <strstream.h>
00032 //@rn #include <string.h>
00033 #include <ctype.h>
00034 #include <stdlib.h>
00035 #include <math.h>
00036 
00037 #include "error.h"
00038 #include "IPC.h"
00039 #include "Trichotomy.h"
00040 
00041 //#define NULL 0
00042 
00043 #define SAFETY 2
00044 
00045 #define TRUE  1
00046 #define FALSE 0
00047 
00048 typedef int Bool;
00049 
00050 #define INFINITE 0
00051 
00052 
00053 //------ global function prototypes, variables, inline functions ------------//
00054 
00055 inline int min(int i, int j) { return ((i<j) ? i : j); }
00056 inline int max(int i, int j) { return ((i>j) ? i : j); }
00057 inline int abs(int i) { return ((i < 0) ? -i : i); }
00058 inline int sign(int i) { return (i == 0) ? 0 : ( (i > 0) ? 1 : -1 ); }
00059 #endif

Generated at Tue Jun 19 09:49:36 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001