![]() |
The Simons
|
00001 00002 // 00003 // SCL : Simons Component Library 00004 // 00006 // 00007 // Filename: Basic.h 00008 // Contents: Basic value types 00009 // Author: Anthony J H Simons 00010 // Revised: 27 October 2005 00011 00012 // This software is distributed free in the hope that others will 00013 // find it useful. However, it comes WITHOUT ANY WARRANTY. No 00014 // liability can be accepted for software failure, merchantability 00015 // or fitness for a particular purpose. You can redistribute this 00016 // software in its original form, or in a modified form, provided 00017 // that this disclaimer is retained in the file banner. 00018 00019 #ifndef SCL_BASIC 00020 #define SCL_BASIC 00021 00033 00043 #define MEMORY_MODEL 32 00044 00045 class Null; 00050 extern const Null* const null; // initialised in Basic.cc 00051 00059 typedef bool Boolean; 00060 00069 typedef char Character; 00070 00083 typedef unsigned int Natural; 00084 00096 typedef int Integer; 00097 00108 typedef double Decimal; 00109 00115 typedef void Void; 00116 00125 enum Order { NONE = -2, LESS = -1, EQUAL = 0, MORE = 1, SOME = 2 }; 00126 00127 00171 #endif