1 | /*
|
---|
2 | * Copyright 1999-2002,2004 The Apache Software Foundation.
|
---|
3 | *
|
---|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
5 | * you may not use this file except in compliance with the License.
|
---|
6 | * You may obtain a copy of the License at
|
---|
7 | *
|
---|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
9 | *
|
---|
10 | * Unless required by applicable law or agreed to in writing, software
|
---|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
13 | * See the License for the specific language governing permissions and
|
---|
14 | * limitations under the License.
|
---|
15 | */
|
---|
16 |
|
---|
17 | /*
|
---|
18 | * $Log: MIPSproDefs.hpp,v $
|
---|
19 | * Revision 1.6 2004/09/08 13:56:32 peiyongz
|
---|
20 | * Apache License Version 2.0
|
---|
21 | *
|
---|
22 | * Revision 1.5 2002/11/04 14:45:20 tng
|
---|
23 | * C++ Namespace Support.
|
---|
24 | *
|
---|
25 | * Revision 1.4 2002/05/28 12:57:17 tng
|
---|
26 | * Fix typo.
|
---|
27 | *
|
---|
28 | * Revision 1.3 2002/05/27 18:02:40 tng
|
---|
29 | * define XMLSize_t, XMLSSize_t and their associate MAX
|
---|
30 | *
|
---|
31 | * Revision 1.2 2002/05/21 19:45:53 tng
|
---|
32 | * Define DOMSize_t and XMLSize_t
|
---|
33 | *
|
---|
34 | * Revision 1.1.1.1 2002/02/01 22:22:18 peiyongz
|
---|
35 | * sane_include
|
---|
36 | *
|
---|
37 | * Revision 1.5 2001/03/02 20:53:01 knoaman
|
---|
38 | * Schema: Regular expression - misc. updates for error messages,
|
---|
39 | * and additions of new functions to XMLString class.
|
---|
40 | *
|
---|
41 | * Revision 1.4 2000/03/02 19:55:08 roddey
|
---|
42 | * This checkin includes many changes done while waiting for the
|
---|
43 | * 1.1.0 code to be finished. I can't list them all here, but a list is
|
---|
44 | * available elsewhere.
|
---|
45 | *
|
---|
46 | * Revision 1.3 2000/02/06 07:48:17 rahulj
|
---|
47 | * Year 2K copyright swat.
|
---|
48 | *
|
---|
49 | * Revision 1.2 1999/12/14 23:53:25 rahulj
|
---|
50 | * Removed the offending Ctrl-M's from the commit message
|
---|
51 | * logs which was giving packaging problems.
|
---|
52 | *
|
---|
53 | * PR:
|
---|
54 | * Obtained from:
|
---|
55 | * Submitted by:
|
---|
56 | * Reviewed by:
|
---|
57 | *
|
---|
58 | * Revision 1.1 1999/12/01 17:16:17 rahulj
|
---|
59 | * Added support for IRIX 6.5.5 using SGI MIPSpro C++ 7.3 and 7.21 generating 32 bit objects. Changes submitted by Marc Stuessel
|
---|
60 | *
|
---|
61 | */
|
---|
62 |
|
---|
63 | #if !defined(MIPSPRODEFS_HPP)
|
---|
64 | #define MIPSPRODEFS_HPP
|
---|
65 |
|
---|
66 | // ---------------------------------------------------------------------------
|
---|
67 | // Include some runtime files that will be needed product wide
|
---|
68 | // ---------------------------------------------------------------------------
|
---|
69 | #include <sys/types.h> // for size_t and ssize_t
|
---|
70 | #include <limits.h> // for MAX of size_t and ssize_t
|
---|
71 |
|
---|
72 | // ---------------------------------------------------------------------------
|
---|
73 | // A define in the build for each project is also used to control whether
|
---|
74 | // the export keyword is from the project's viewpoint or the client's.
|
---|
75 | // These defines provide the platform specific keywords that they need
|
---|
76 | // to do this.
|
---|
77 | // ---------------------------------------------------------------------------
|
---|
78 | #define PLATFORM_EXPORT
|
---|
79 | #define PLATFORM_IMPORT
|
---|
80 |
|
---|
81 | // ---------------------------------------------------------------------------
|
---|
82 | // Indicate that we do not support native bools
|
---|
83 | // If the compiler can handle boolean itself, do not define it
|
---|
84 | // ---------------------------------------------------------------------------
|
---|
85 | // #define NO_NATIVE_BOOL
|
---|
86 |
|
---|
87 | // ---------------------------------------------------------------------------
|
---|
88 | // Each compiler might support L"" prefixed constants. There are places
|
---|
89 | // where it is advantageous to use the L"" where it supported, to avoid
|
---|
90 | // unnecessary transcoding.
|
---|
91 | // If your compiler does not support it, don't define this.
|
---|
92 | // ---------------------------------------------------------------------------
|
---|
93 | // #define XML_LSTRSUPPORT
|
---|
94 |
|
---|
95 | // ---------------------------------------------------------------------------
|
---|
96 | // Indicate that we support C++ namespace
|
---|
97 | // Do not define it if the compile cannot handle C++ namespace
|
---|
98 | // ---------------------------------------------------------------------------
|
---|
99 | // #define XERCES_HAS_CPP_NAMESPACE
|
---|
100 |
|
---|
101 | // ---------------------------------------------------------------------------
|
---|
102 | // Define our version of the XML character
|
---|
103 | // ---------------------------------------------------------------------------
|
---|
104 | typedef unsigned short XMLCh;
|
---|
105 |
|
---|
106 | // ---------------------------------------------------------------------------
|
---|
107 | // Define unsigned 16 and 32 bits integers
|
---|
108 | // ---------------------------------------------------------------------------
|
---|
109 | typedef unsigned short XMLUInt16;
|
---|
110 | typedef unsigned int XMLUInt32;
|
---|
111 |
|
---|
112 | // ---------------------------------------------------------------------------
|
---|
113 | // Define signed 32 bits integers
|
---|
114 | // ---------------------------------------------------------------------------
|
---|
115 | typedef int XMLInt32;
|
---|
116 |
|
---|
117 | // ---------------------------------------------------------------------------
|
---|
118 | // XMLSize_t is the unsigned integral type.
|
---|
119 | // ---------------------------------------------------------------------------
|
---|
120 | #if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX)
|
---|
121 | typedef size_t XMLSize_t;
|
---|
122 | #define XML_SIZE_MAX SIZE_MAX
|
---|
123 | typedef ssize_t XMLSSize_t;
|
---|
124 | #define XML_SSIZE_MAX SSIZE_MAX
|
---|
125 | #else
|
---|
126 | typedef unsigned long XMLSize_t;
|
---|
127 | #define XML_SIZE_MAX ULONG_MAX
|
---|
128 | typedef long XMLSSize_t;
|
---|
129 | #define XML_SSIZE_MAX LONG_MAX
|
---|
130 | #endif
|
---|
131 |
|
---|
132 | // ---------------------------------------------------------------------------
|
---|
133 | // Force on the Xerces debug token if it was on in the build environment
|
---|
134 | // ---------------------------------------------------------------------------
|
---|
135 | #if defined(_DEBUG)
|
---|
136 | #define XERCES_DEBUG
|
---|
137 | #endif
|
---|
138 |
|
---|
139 |
|
---|
140 | // ---------------------------------------------------------------------------
|
---|
141 | // Provide prototypes for some string methods that are not always available
|
---|
142 | // on all platforms.
|
---|
143 | // ---------------------------------------------------------------------------
|
---|
144 | int stricmp(const char* const str1, const char* const str2);
|
---|
145 | int strnicmp(const char* const str1, const char* const str2, const unsigned int count);
|
---|
146 |
|
---|
147 | // ---------------------------------------------------------------------------
|
---|
148 | // The name of the DSO that is built by the MIPSpro C++ version of the
|
---|
149 | // system. We append a previously defined token which holds the DSO
|
---|
150 | // versioning string. This is defined in XercesDefs.hpp which is what this
|
---|
151 | // file is included into.
|
---|
152 | // ---------------------------------------------------------------------------
|
---|
153 | const char* const Xerces_DLLName = "libxerces-c";
|
---|
154 |
|
---|
155 | #endif //MIPSPRODEFS_HPP
|
---|