annotate generator/parser/rpp/pp.h @ 52:09a0f1d048f2

update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
author eldar
date Mon, 18 May 2009 15:23:28 +0000
parents e78566595089
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
e78566595089 initial import
mandel
parents:
diff changeset
1 /****************************************************************************
e78566595089 initial import
mandel
parents:
diff changeset
2 **
52
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
3 ** Copyright (C) 1992-2009 Nokia. All rights reserved.
1
e78566595089 initial import
mandel
parents:
diff changeset
4 ** Copyright 2005 Roberto Raggi <roberto@kdevelop.org>
e78566595089 initial import
mandel
parents:
diff changeset
5 **
e78566595089 initial import
mandel
parents:
diff changeset
6 ** This file is part of Qt Jambi.
e78566595089 initial import
mandel
parents:
diff changeset
7 **
52
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
8 ** Commercial Usage
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
9 Licensees holding valid Qt Commercial licenses may use this file in
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
10 accordance with the Qt Commercial License Agreement provided with the
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
11 Software or, alternatively, in accordance with the terms contained in
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
12 a written agreement between you and Nokia.
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
13
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
14 GNU Lesser General Public License Usage
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
15 Alternatively, this file may be used under the terms of the GNU Lesser
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
16 General Public License version 2.1 as published by the Free Software
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
17 Foundation and appearing in the file LICENSE.LGPL included in the
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
18 packaging of this file. Please review the following information to
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
19 ensure the GNU Lesser General Public License version 2.1 requirements
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
20 will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
21
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
22 In addition, as a special exception, Nokia gives you certain
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
23 additional rights. These rights are described in the Nokia Qt LGPL
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
24 Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
25 package.
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
26
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
27 GNU General Public License Usage
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
28 Alternatively, this file may be used under the terms of the GNU
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
29 General Public License version 3.0 as published by the Free Software
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
30 Foundation and appearing in the file LICENSE.GPL included in the
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
31 packaging of this file. Please review the following information to
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
32 ensure the GNU General Public License version 3.0 requirements will be
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
33 met: http://www.gnu.org/copyleft/gpl.html.
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
34
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
35 If you are unsure which license is appropriate for your use, please
09a0f1d048f2 update parser to that from jambi 4.5, attemt to fix building with gcc 4.4
eldar
parents: 1
diff changeset
36 contact the sales department at qt-sales@nokia.com.
1
e78566595089 initial import
mandel
parents:
diff changeset
37
e78566595089 initial import
mandel
parents:
diff changeset
38 **
e78566595089 initial import
mandel
parents:
diff changeset
39 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
e78566595089 initial import
mandel
parents:
diff changeset
40 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
e78566595089 initial import
mandel
parents:
diff changeset
41 **
e78566595089 initial import
mandel
parents:
diff changeset
42 ****************************************************************************/
e78566595089 initial import
mandel
parents:
diff changeset
43
e78566595089 initial import
mandel
parents:
diff changeset
44 #ifndef PP_H
e78566595089 initial import
mandel
parents:
diff changeset
45 #define PP_H
e78566595089 initial import
mandel
parents:
diff changeset
46
e78566595089 initial import
mandel
parents:
diff changeset
47 #if defined(_WIN64) || defined(WIN64) || defined(__WIN64__) \
e78566595089 initial import
mandel
parents:
diff changeset
48 || defined(_WIN32) || defined(WIN32) || defined(__WIN32__)
e78566595089 initial import
mandel
parents:
diff changeset
49 # define PP_OS_WIN
e78566595089 initial import
mandel
parents:
diff changeset
50 #endif
e78566595089 initial import
mandel
parents:
diff changeset
51
e78566595089 initial import
mandel
parents:
diff changeset
52 #include <set>
e78566595089 initial import
mandel
parents:
diff changeset
53 #include <map>
e78566595089 initial import
mandel
parents:
diff changeset
54 #include <vector>
e78566595089 initial import
mandel
parents:
diff changeset
55 #include <string>
e78566595089 initial import
mandel
parents:
diff changeset
56 #include <iterator>
e78566595089 initial import
mandel
parents:
diff changeset
57 #include <iostream>
e78566595089 initial import
mandel
parents:
diff changeset
58 #include <cassert>
e78566595089 initial import
mandel
parents:
diff changeset
59 #include <cctype>
e78566595089 initial import
mandel
parents:
diff changeset
60
e78566595089 initial import
mandel
parents:
diff changeset
61 #include <fcntl.h>
e78566595089 initial import
mandel
parents:
diff changeset
62
e78566595089 initial import
mandel
parents:
diff changeset
63 #ifdef HAVE_MMAP
e78566595089 initial import
mandel
parents:
diff changeset
64 # include <sys/mman.h>
e78566595089 initial import
mandel
parents:
diff changeset
65 #endif
e78566595089 initial import
mandel
parents:
diff changeset
66
e78566595089 initial import
mandel
parents:
diff changeset
67 #include <sys/stat.h>
e78566595089 initial import
mandel
parents:
diff changeset
68 #include <sys/types.h>
e78566595089 initial import
mandel
parents:
diff changeset
69
e78566595089 initial import
mandel
parents:
diff changeset
70 #if (_MSC_VER >= 1400)
e78566595089 initial import
mandel
parents:
diff changeset
71 # define FILENO _fileno
e78566595089 initial import
mandel
parents:
diff changeset
72 #else
e78566595089 initial import
mandel
parents:
diff changeset
73 # define FILENO fileno
e78566595089 initial import
mandel
parents:
diff changeset
74 #endif
e78566595089 initial import
mandel
parents:
diff changeset
75
e78566595089 initial import
mandel
parents:
diff changeset
76 #if defined (PP_OS_WIN)
e78566595089 initial import
mandel
parents:
diff changeset
77 # define PATH_SEPARATOR '\\'
e78566595089 initial import
mandel
parents:
diff changeset
78 #else
e78566595089 initial import
mandel
parents:
diff changeset
79 # define PATH_SEPARATOR '/'
e78566595089 initial import
mandel
parents:
diff changeset
80 #endif
e78566595089 initial import
mandel
parents:
diff changeset
81
e78566595089 initial import
mandel
parents:
diff changeset
82 #if defined (RPP_JAMBI)
e78566595089 initial import
mandel
parents:
diff changeset
83 # include "rxx_allocator.h"
e78566595089 initial import
mandel
parents:
diff changeset
84 #else
e78566595089 initial import
mandel
parents:
diff changeset
85 # include "rpp-allocator.h"
e78566595089 initial import
mandel
parents:
diff changeset
86 #endif
e78566595089 initial import
mandel
parents:
diff changeset
87
e78566595089 initial import
mandel
parents:
diff changeset
88 #if defined (_MSC_VER)
e78566595089 initial import
mandel
parents:
diff changeset
89 # define pp_snprintf _snprintf
e78566595089 initial import
mandel
parents:
diff changeset
90 #else
e78566595089 initial import
mandel
parents:
diff changeset
91 # define pp_snprintf snprintf
e78566595089 initial import
mandel
parents:
diff changeset
92 #endif
e78566595089 initial import
mandel
parents:
diff changeset
93
e78566595089 initial import
mandel
parents:
diff changeset
94 #include "pp-fwd.h"
e78566595089 initial import
mandel
parents:
diff changeset
95 #include "pp-cctype.h"
e78566595089 initial import
mandel
parents:
diff changeset
96 #include "pp-string.h"
e78566595089 initial import
mandel
parents:
diff changeset
97 #include "pp-symbol.h"
e78566595089 initial import
mandel
parents:
diff changeset
98 #include "pp-internal.h"
e78566595089 initial import
mandel
parents:
diff changeset
99 #include "pp-iterator.h"
e78566595089 initial import
mandel
parents:
diff changeset
100 #include "pp-macro.h"
e78566595089 initial import
mandel
parents:
diff changeset
101 #include "pp-environment.h"
e78566595089 initial import
mandel
parents:
diff changeset
102 #include "pp-scanner.h"
e78566595089 initial import
mandel
parents:
diff changeset
103 #include "pp-macro-expander.h"
e78566595089 initial import
mandel
parents:
diff changeset
104 #include "pp-engine.h"
e78566595089 initial import
mandel
parents:
diff changeset
105 #include "pp-engine-bits.h"
e78566595089 initial import
mandel
parents:
diff changeset
106
e78566595089 initial import
mandel
parents:
diff changeset
107 #endif // PP_H
e78566595089 initial import
mandel
parents:
diff changeset
108
e78566595089 initial import
mandel
parents:
diff changeset
109 // kate: space-indent on; indent-width 2; replace-tabs on;