2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: types.h /main/1 1996/07/29 17:10:18 cde-hp $ */
24 // Copyright (c) 1994 James Clark
25 // See the file COPYING for copying permission.
27 #ifndef types_INCLUDED
28 #define types_INCLUDED 1
34 namespace SP_NAMESPACE {
37 #if UINT_MAX >= 0xffffffffL /* 2^32 - 1 */
38 typedef unsigned int Unsigned32;
40 typedef unsigned long Unsigned32;
43 // Number holds values between 0 and 99999999 (eight nines).
44 typedef Unsigned32 Number;
45 typedef Unsigned32 Offset;
46 typedef Unsigned32 Index;
50 #ifdef SP_WCHAR_T_USHORT
53 typedef unsigned short Char;
58 #else /* INT_MAX <= 65535L */
60 #endif /* INT_MAX <= 65535L */
62 #else /* not SP_MULTI_BYTE */
64 typedef unsigned char Char;
65 // This holds any value of type Char plus InputSource:eE (= -1).
68 #endif /* not SP_MULTI_BYTE */
70 typedef Unsigned32 UnivChar;
71 typedef Unsigned32 WideChar;
73 // A character in a syntax reference character set.
74 // We might want to compile with wide syntax reference characters
75 // (since they're cheap) but not with wide document characters.
76 typedef Unsigned32 SyntaxChar;
78 typedef unsigned short CharClassIndex;
80 typedef unsigned Token;
83 typedef unsigned short EquivCode;
85 typedef unsigned char EquivCode;
92 #endif /* not types_INCLUDED */