Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / nsgmls / Boolean.h
1 /* $XConsortium: Boolean.h /main/1 1996/07/29 16:46:49 cde-hp $ */
2 // Copyright (c) 1994 James Clark
3 // See the file COPYING for copying permission.
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 typedef char PackedBoolean;
16
17 #else /* not SP_HAVE_BOOL */
18
19 typedef int Boolean;
20 typedef char PackedBoolean;
21
22 #endif /* not SP_HAVE_BOOL */
23
24 #ifdef SP_NAMESPACE
25 }
26 #endif
27
28 #ifndef SP_HAVE_BOOL
29
30 typedef int bool;
31
32 const int true = 1;
33 const int false = 0;
34
35 #endif /* not SP_HAVE_BOOL */
36
37 #endif /* not Boolean_INCLUDED */