| 1 |
+ Starting with version 2.22, please use the GitHub UI |
| 2 |
at https://github.com/eliben/pycparser/tags |
| 3 |
to compare tags in order to find out what changed. |
| 4 |
|
| 5 |
+ Version 2.21 (2021.11.06) |
| 6 |
|
| 7 |
- Much improved support for C11 (multiple PRs) |
| 8 |
- Support for parehthesized compount statements (#423) |
| 9 |
- Support for modern Python versions (3.9 and 3.10) |
| 10 |
- Fix support for structs with nested enums (#387) |
| 11 |
- Multiple small bug fixes |
| 12 |
|
| 13 |
+ Version 2.20 (2020.03.04) |
| 14 |
|
| 15 |
- #61: Fix slow backtracking when parsing strings. |
| 16 |
- #99: Parser for FuncDecl incorrectly sets declname attribute on return type. |
| 17 |
- #310: Fix crash when file starts with a semicolon. |
| 18 |
- #313: Fix array type generation. |
| 19 |
- #314: Fix failed parsing of unnamed function parameters with array dim |
| 20 |
qualifiers. |
| 21 |
- #315: Fix pointer type generation. |
| 22 |
- #324: Fixes for u/l constant integer suffix. |
| 23 |
- #346: Fix error transforming an empty switch. |
| 24 |
- #350: Recognize integer multicharacter constants like 'ABCD'. |
| 25 |
- #363: Fix incorrect AST when parsing offsetof. |
| 26 |
|
| 27 |
+ Version 2.19 (2018.09.19) |
| 28 |
|
| 29 |
- PR #277: Fix parsing of floating point literals |
| 30 |
- PR #254: Add support for parsing empty structs |
| 31 |
- PR #240: Fix enum formatting in generated C code (also #216) |
| 32 |
- PR #222: Add support for #pragma in struct declarations |
| 33 |
- There are reports that this release doesn't work with Python 2.6 (#281). |
| 34 |
Please note that the minimal supported version is 2.7; the required versions |
| 35 |
are listed in the README file. |
| 36 |
|
| 37 |
+ Version 2.18 (2017.07.04) |
| 38 |
|
| 39 |
- PR #161 & #184: Update bundled PLY version to 3.10 |
| 40 |
- PR #158: Add support for the __int128 type. |
| 41 |
- PR #169: Handle more tricky TYPEID in declarators. |
| 42 |
- PR #178: Add columns to the coord of each node |
| 43 |
|
| 44 |
+ Version 2.17 (2016.10.29) |
| 45 |
|
| 46 |
- Again functionality identical to 2.15 and 2.16; the difference is that the |
| 47 |
tarball now contains Python files with properly set permissions. |
| 48 |
|
| 49 |
+ Version 2.16 (2016.10.18) |
| 50 |
|
| 51 |
- Functionally identical to 2.15, but fixes a packaging problem that caused |
| 52 |
failed installation (_build_tables wasn't rerun in the pycparser/ dir). |
| 53 |
|
| 54 |
+ Version 2.15 (2016.10.18) |
| 55 |
|
| 56 |
- PR #121: Update bundled PLY version to 3.8 |
| 57 |
- Issue #117: Fix parsing of extra semi-colons inside structure declarations. |
| 58 |
- PR #109: Update c_generator to add {} around nested named initializers. |
| 59 |
- PR #101: Added support for parsing pragmas into the AST. |
| 60 |
- Additional fake headers and typedefs, manifest fixes (#97, #106, #111). |
| 61 |
- Testing with Python 3.5 instead of 3.3 now (3.4 and 3.5 are the 3.x versions |
| 62 |
tested). |
| 63 |
- PR #145: More complete support for offsetof() |
| 64 |
- Issue #116: Fix line numbers recorded for empty and compound statements. |
| 65 |
- Minor performance improvement to the invalid string literal regex. |
| 66 |
|
| 67 |
+ Version 2.14 (2015.06.09) |
| 68 |
|
| 69 |
- Added CParser parameter to specify output directory for generated parsing |
| 70 |
tables (#84). |
| 71 |
- Removed lcc's cpp and its license from the distribution. Using lcc's cpp |
| 72 |
is no longer recommended, now that Clang has binary builds available for |
| 73 |
Windows. |
| 74 |
|
| 75 |
+ Version 2.13 (2015.05.12) |
| 76 |
|
| 77 |
- Added support for offsetof() the way gcc implements it (special builtin |
| 78 |
that takes a type as an argument). |
| 79 |
- Added faked va_* macros (these are expected to come from stdarg.h) |
| 80 |
- Added a bunch more fake headers and typedefs to support parsing C projects |
| 81 |
like Git and SQLite without modifications to pycparser. |
| 82 |
- Added support for empty initializer lists (#79). |
| 83 |
|
| 84 |
+ Version 2.12 (2015.04.21) |
| 85 |
|
| 86 |
- This is a fix release for 2.11; the memory optimization with __slots__ on |
| 87 |
Coord and AST nodes didn't take weakrefs into account, which broke cffi and |
| 88 |
its many dependents (issue #76). Fixed by adding __weakref__ to __slots__. |
| 89 |
|
| 90 |
+ Version 2.11 (2015.04.21) |
| 91 |
|
| 92 |
- Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in |
| 93 |
function declarations. Started with issue #21 (reported with initial patch |
| 94 |
by Robin Martinjak). |
| 95 |
- Issue #27: bug in handling of unified wstring literals. |
| 96 |
- Issue #28: fix coord reporting for 'for' loops. |
| 97 |
- Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can |
| 98 |
be used instead of ``cpp`` for preprocessing. |
| 99 |
- Pull request #64: support keywords like const, volatile, restrict and static |
| 100 |
in dimensions in array declarations. |
| 101 |
- Reduce memory usage of AST nodes (issue #72). |
| 102 |
- Parsing order of nested pointer declarations fixed (issue #68). |
| 103 |
|
| 104 |
+ Version 2.10 (2013.08.03) |
| 105 |
|
| 106 |
- A number of improvements in the handling of typedef-name ambiguities, |
| 107 |
contributed by Sye van der Veen in GitHub issue #1: |
| 108 |
|
| 109 |
* Allow shadowing of types by identifiers in inner scopes. |
| 110 |
* Allow struct field names to reside in a separate namespace and have |
| 111 |
the same names as types. |
| 112 |
* Allow duplicate typedefs in some cases to mimic real compiler behavior. |
| 113 |
|
| 114 |
- c_generator error for ExprList in expression context. |
| 115 |
- Assume default int type for functions whose argument or return types were |
| 116 |
not specified. |
| 117 |
- Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names |
| 118 |
(which is supported by some other compilers). |
| 119 |
|
| 120 |
+ Version 2.09.1 (2012.12.29) |
| 121 |
|
| 122 |
- No actual functionality changes. |
| 123 |
- The source distribution was re-packaged to contain the pre-generated Lex and |
| 124 |
Yacc tables of PLY. |
| 125 |
|
| 126 |
+ Version 2.09 (2012.12.27) |
| 127 |
|
| 128 |
- The pycparser project has moved to Bitbucket. For this version, issue |
| 129 |
numbers still refer to the old Googlecode project, unless stated otherwise. |
| 130 |
Starting with the next version all issue numbers will refer to the new |
| 131 |
Bitbucket project. |
| 132 |
- pycparser now carries its PLY dependency along. The pycparser/ply directory |
| 133 |
contains the source of PLY for the currently supported version. This makes |
| 134 |
distribution and testing easier. |
| 135 |
- Issue #79: fix generation of new switch/case AST nodes. |
| 136 |
- Issue #83: fix parsing and C generation to distinguish between initializer |
| 137 |
lists in declarations and initializing variables with parenthesized |
| 138 |
comma-separated expressions. |
| 139 |
- Issue #84: fix C generation for some statements. |
| 140 |
- Issues #86 and #87: improve location reporting for parse errors. |
| 141 |
- Issue #89: fix C generation for K&R-style function definitions. |
| 142 |
|
| 143 |
+ Version 2.08 (2012.08.10) |
| 144 |
|
| 145 |
- Issue 73: initial support for #pragma directives. Consume them without |
| 146 |
errors and ignore (no tokens are returned). Line numbers are preserved. |
| 147 |
- Issue 68: more correct handling of source files without any actual content. |
| 148 |
- Issue 69: running all tests will now set appropriate return code. |
| 149 |
- Better error reporting in case where multiple type specifiers are provided. |
| 150 |
Also fixes Issue 60. |
| 151 |
- Issue 63: line endings cleanup for consistent LF ending. |
| 152 |
- Issues 64 & 65: added some more headers and typedefs to fake includes. |
| 153 |
- Refactoring the cpp invocation in parse_file into a separate function, which |
| 154 |
can also be used as a utility. |
| 155 |
- Issue 74: some Windows include paths were handled incorrectly. |
| 156 |
|
| 157 |
+ Version 2.07 (2012.06.16) |
| 158 |
|
| 159 |
- Issue 54: added an optional parser argument to parse_file |
| 160 |
- Issue 59: added some more fake headers for C99 |
| 161 |
- Issue 62: correct coord for Ellipsis nodes |
| 162 |
- Issue 57: support for C99 hexadecimal float constants |
| 163 |
- Made running tests that call on 'cpp' a bit more robust. |
| 164 |
|
| 165 |
+ Version 2.06 (2012.02.04) |
| 166 |
|
| 167 |
- Issue 48: gracefully handle parsing of empty files |
| 168 |
- Issues 49 & 50: handle more escaped chars in paths to #line - "..\..\test.h". |
| 169 |
- Support for C99 _Complex type. |
| 170 |
- CGenerator moves from examples/ to pycparser/ as a first-class citizen, and |
| 171 |
added some fixes to it. examples/c-to-c.py still stays as a convenience |
| 172 |
wrapper. |
| 173 |
- Fix problem with parsing a file in which the first statement is just a |
| 174 |
semicolon. |
| 175 |
- Improved the AST created for switch statements, making it closer to the |
| 176 |
semantic meaning than to the grammar. |
| 177 |
|
| 178 |
+ Version 2.05 (2011.10.16) |
| 179 |
|
| 180 |
- Added support for the C99 ``_Bool`` type and ``stdbool.h`` header file |
| 181 |
- Expanded ``examples/explore_ast.py`` with more details on working with the |
| 182 |
AST |
| 183 |
- Relaxed the rules on parsing unnamed struct members (helps parse ``windows.h``) |
| 184 |
- Bug fixes: |
| 185 |
|
| 186 |
* Fixed spacing issue for some type declarations |
| 187 |
* Issue 47: display empty statements (lone ';') correctly after parsing |
| 188 |
|
| 189 |
+ Version 2.04 (2011.05.21) |
| 190 |
|
| 191 |
- License changed from LGPL to BSD |
| 192 |
- Bug fixes: |
| 193 |
|
| 194 |
* Issue 31: constraining the scope of typedef definitions |
| 195 |
* Issues 33, 35: fixes for the c-to-c.py example |
| 196 |
|
| 197 |
- Added C99 integer types to fake headers |
| 198 |
- Added unit tests for the c-to-c.py example |
| 199 |
|
| 200 |
+ Version 2.03 (2011.03.06) |
| 201 |
|
| 202 |
- Bug fixes: |
| 203 |
|
| 204 |
* Issue 17: empty file-level declarations |
| 205 |
* Issue 18: empty statements and declarations in functions |
| 206 |
* Issue 19: anonymous structs & union fields |
| 207 |
* Issue 23: fix coordinates of Cast nodes |
| 208 |
|
| 209 |
- New example added (``examples/c-to-c.py``) for translating ASTs generated |
| 210 |
by ``pycparser`` back into C code. |
| 211 |
- ``pycparser`` is now on PyPI (Python Package Index) |
| 212 |
- Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on |
| 213 |
the ``pycparser`` project page |
| 214 |
- Removed support for Python 2.5. ``pycparser`` supports Python 2 |
| 215 |
from 2.6 and on, and Python 3. |
| 216 |
|
| 217 |
+ Version 2.02 (2010.12.10) |
| 218 |
|
| 219 |
* The name of a ``NamedInitializer`` node was turned into a sequence of nodes |
| 220 |
instead of an attribute, to make it discoverable by the AST node visitor. |
| 221 |
* Documentation updates |
| 222 |
|
| 223 |
+ Version 2.01 (04.12.2010) |
| 224 |
|
| 225 |
* Removed dependency on YAML. Parsing of the AST node configuration file |
| 226 |
is done with a simple parser. |
| 227 |
* Fixed issue 12: installation problems |
| 228 |
|
| 229 |
+ Version 2.00 (2010.10.31) |
| 230 |
|
| 231 |
* Support for C99 (read |
| 232 |
`this wiki page <http://code.google.com/p/pycparser/wiki/C99support>`_ |
| 233 |
for more information). |
| 234 |
|
| 235 |
+ Version 1.08 (2010.10.09) |
| 236 |
|
| 237 |
* Bug fixes: |
| 238 |
|
| 239 |
+ Correct handling of ``do{} ... while`` statements in some cases |
| 240 |
+ Issues 6 & 7: Concatenation of string literals |
| 241 |
+ Issue 9: Support for unnamed bitfields in structs |
| 242 |
|
| 243 |
+ Version 1.07 (2010.05.18) |
| 244 |
|
| 245 |
* Python 3.1 compatibility: ``pycparser`` was modified to run |
| 246 |
on Python 3.1 as well as 2.6 |
| 247 |
|
| 248 |
+ Version 1.06 (2010.04.10) |
| 249 |
|
| 250 |
* Bug fixes: |
| 251 |
|
| 252 |
+ coord not propagated to FuncCall nodes |
| 253 |
+ lexing of the ^= token (XOREQUALS) |
| 254 |
+ parsing failed on some abstract declarator rules |
| 255 |
|
| 256 |
* Linux compatibility: fixed end-of-line and ``cpp`` path issues to allow |
| 257 |
all tests and examples run on Linux |
| 258 |
|
| 259 |
+ Version 1.05 (2009.10.16) |
| 260 |
|
| 261 |
* Fixed the ``parse_file`` auxiliary function to handle multiple arguments to |
| 262 |
``cpp`` correctly |
| 263 |
|
| 264 |
+ Version 1.04 (2009.05.22) |
| 265 |
|
| 266 |
* Added the ``fake_libc_include`` directory to allow parsing of C code that |
| 267 |
uses standard C library include files without dependency on a real C |
| 268 |
library. |
| 269 |
* Tested with Python 2.6 and PLY 3.2 |
| 270 |
|
| 271 |
+ Version 1.03 (2009.01.31) |
| 272 |
|
| 273 |
* Accept enumeration lists with a comma after the last item (C99 feature). |
| 274 |
|
| 275 |
+ Version 1.02 (2009.01.16) |
| 276 |
|
| 277 |
* Fixed problem of parsing struct/enum/union names that were named similarly |
| 278 |
to previously defined ``typedef`` types. |
| 279 |
|
| 280 |
+ Version 1.01 (2009.01.09) |
| 281 |
|
| 282 |
* Fixed subprocess invocation in the helper function parse_file - now |
| 283 |
it's more portable |
| 284 |
|
| 285 |
+ Version 1.0 (2008.11.15) |
| 286 |
|
| 287 |
* Initial release |
| 288 |
* Support for ANSI C89 |