-
Notifications
You must be signed in to change notification settings - Fork 9
/
CHANGES
189 lines (131 loc) · 7.16 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
+ Version 2.11 (??)
- Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in
function declarations. Started with issue #21 (reported with initial patch
by Robin Martinjak).
- Issue #27: bug in handling of unified wstring literals.
- Issue #28: fix coord reporting for 'for' loops.
- Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can
be used instead of ``cpp`` for preprocessing.
- Pull request #64: support keywords like const, volatile, restrict and static
in dimensions in array declarations.
+ Version 2.10 (03.08.2013)
- A number of improvements in the handling of typedef-name ambiguities,
contributed by Sye van der Veen in GitHub issue #1:
* Allow shadowing of types by identifiers in inner scopes.
* Allow struct field names to reside in a separate namespace and have
the same names as types.
* Allow duplicate typedefs in some cases to mimic real compiler behavior.
- c_generator error for ExprList in expression context.
- Assume default int type for functions whose argument or return types were
not specified.
- Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names
(which is supported by some other compilers).
+ Version 2.09.1 (29.12.2012)
- No actual functionality changes.
- The source distribution was re-packaged to contain the pre-generated Lex and
Yacc tables of PLY.
+ Version 2.09 (27.12.2012)
- The pycparser project has moved to Bitbucket. For this version, issue
numbers still refer to the old Googlecode project, unless stated otherwise.
Starting with the next version all issue numbers will refer to the new
Bitbucket project.
- pycparser now carries its PLY dependency along. The pycparser/ply directory
contains the source of PLY for the currently supported version. This makes
distribution and testing easier.
- Issue #79: fix generation of new switch/case AST nodes.
- Issue #83: fix parsing and C generation to distinguish between initializer
lists in declarations and initializing variables with parenthesized
comma-separated expressions.
- Issue #84: fix C generation for some statements.
- Issues #86 and #87: improve location reporting for parse errors.
- Issue #89: fix C generation for K&R-style function definitions.
+ Version 2.08 (10.08.2012)
- Issue 73: initial support for #pragma directives. Consume them without
errors and ignore (no tokens are returned). Line numbers are preserved.
- Issue 68: more correct handling of source files without any actual content.
- Issue 69: running all tests will now set appropriate return code.
- Better error reporting in case where multiple type specifiers are provided.
Also fixes Issue 60.
- Issue 63: line endings cleanup for consistent LF ending.
- Issues 64 & 65: added some more headers and typedefs to fake includes.
- Refactoring the cpp invocation in parse_file into a separate function, which
can also be used as a utility.
- Issue 74: some Windows include paths were handled incorrectly.
+ Version 2.07 (16.06.2012)
- Issue 54: added an optional parser argument to parse_file
- Issue 59: added some more fake headers for C99
- Issue 62: correct coord for Ellipsis nodes
- Issue 57: support for C99 hexadecimal float constants
- Made running tests that call on 'cpp' a bit more robust.
+ Version 2.06 (04.02.2012)
- Issue 48: gracefully handle parsing of empty files
- Issues 49 & 50: handle more escaped chars in paths to #line - "..\..\test.h".
- Support for C99 _Complex type.
- CGenerator moves from examples/ to pycparser/ as a first-class citizen, and
added some fixes to it. examples/c-to-c.py still stays as a convenience
wrapper.
- Fix problem with parsing a file in which the first statement is just a
semicolon.
- Improved the AST created for switch statements, making it closer to the
semantic meaning than to the grammar.
+ Version 2.05 (16.10.2011)
- Added support for the C99 ``_Bool`` type and ``stdbool.h`` header file
- Expanded ``examples/explore_ast.py`` with more details on working with the
AST
- Relaxed the rules on parsing unnamed struct members (helps parse ``windows.h``)
- Bug fixes:
* Fixed spacing issue for some type declarations
* Issue 47: display empty statements (lone ';') correctly after parsing
+ Version 2.04 (21.05.2011)
- License changed from LGPL to BSD
- Bug fixes:
* Issue 31: constraining the scope of typedef definitions
* Issues 33, 35: fixes for the c-to-c.py example
- Added C99 integer types to fake headers
- Added unit tests for the c-to-c.py example
+ Version 2.03 (06.03.2011)
- Bug fixes:
* Issue 17: empty file-level declarations
* Issue 18: empty statements and declarations in functions
* Issue 19: anonymous structs & union fields
* Issue 23: fix coordinates of Cast nodes
- New example added (``examples/c-to-c.py``) for translating ASTs generated by ``pycparser`` back into C code.
- ``pycparser`` is now on PyPI (Python Package Index)
- Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on the ``pycparser`` project page
- Removed support for Python 2.5. ``pycparser`` supports Python 2 from 2.6 and on, and Python 3.
+ Version 2.02 (10.12.2010)
* The name of a ``NamedInitializer`` node was turned into a sequence of nodes
instead of an attribute, to make it discoverable by the AST node visitor.
* Documentation updates
+ Version 2.01 (04.12.2010)
* Removed dependency on YAML. Parsing of the AST node configuration file is done with a simple parser.
* Fixed issue 12: installation problems
+ Version 2.00 (31.10.2010)
* Support for C99 (read `this wiki page <http://code.google.com/p/pycparser/wiki/C99support>`_ for more information).
+ Version 1.08 (09.10.2010)
* Bug fixes:
+ Correct handling of ``do{} ... while`` statements in some cases
+ Issues 6 & 7: Concatenation of string literals
+ Issue 9: Support for unnamed bitfields in structs
+ Version 1.07 (18.05.2010)
* Python 3.1 compatibility: ``pycparser`` was modified to run on Python 3.1 as well as 2.6
+ Version 1.06 (10.04.2010)
* Bug fixes:
+ coord not propagated to FuncCall nodes
+ lexing of the ^= token (XOREQUALS)
+ parsing failed on some abstract declarator rules
* Linux compatibility: fixed end-of-line and ``cpp`` path issues to allow all tests and examples run on Linux
+ Version 1.05 (16.10.2009)
* Fixed the ``parse_file`` auxiliary function to handle multiple arguments to ``cpp`` correctly
+ Version 1.04 (22.05.2009)
* Added the ``fake_libc_include`` directory to allow parsing of C code that uses standard C library include files without dependency on a real C library.
* Tested with Python 2.6 and PLY 3.2
+ Version 1.03 (31.01.2009)
* Accept enumeration lists with a comma after the last item (C99 feature).
+ Version 1.02 (16.01.2009)
* Fixed problem of parsing struct/enum/union names that were named similarly to previously defined ``typedef`` types.
+ Version 1.01 (09.01.2009)
* Fixed subprocess invocation in the helper function parse_file - now it's more portable
+ Version 1.0 (15.11.2008)
* Initial release
* Support for ANSI C89