1 // Copyright (c) 1994 James Clark 2 // See the file COPYING for copying permission. 3 #pragma ident "%Z%%M% %I% %E% SMI" 4 5 #ifndef Boolean_INCLUDED 6 #define Boolean_INCLUDED 1 7 8 #ifdef SP_NAMESPACE 9 namespace SP_NAMESPACE { 10 #endif 11 12 #ifdef SP_HAVE_BOOL 13 14 typedef bool Boolean; 15 #ifdef SP_SIZEOF_BOOL_1 16 typedef bool PackedBoolean; 17 #else 18 typedef char PackedBoolean; 19 #endif 20 21 #else /* not SP_HAVE_BOOL */ 22 23 typedef int Boolean; 24 typedef char PackedBoolean; 25 26 #endif /* not SP_HAVE_BOOL */ 27 28 #ifdef SP_NAMESPACE 29 } 30 #endif 31 32 #ifndef SP_HAVE_BOOL 33 34 typedef int bool; 35 36 const int true = 1; 37 const int false = 0; 38 39 #endif /* not SP_HAVE_BOOL */ 40 41 #endif /* not Boolean_INCLUDED */ 42