blob: 6ffc42ab6d1020a7548830743845479dd1974fa8 [file] [log] [blame]
Eli Benderskya1334e52015-05-18 06:24:05 -07001+ Version 2.14 (??)
2
3 TODO for this version: before releasing, remove cpp.exe and its license (and
4mentions) from pycparser.
5
Eli Benderskyc5463bd2015-05-12 06:06:21 -07006+ Version 2.13 (12.05.2015)
Eli Benderskyb85d5612015-05-10 06:31:39 -07007
Eli Benderskyc830da82015-05-10 07:56:41 -07008 - Added support for offsetof() the way gcc implements it (special builtin
9 that takes a type as an argument).
10 - Added faked va_* macros (these are expected to come from stdarg.h)
11 - Added a bunch more fake headers and typedefs to support parsing C projects
12 like Git and SQLite without modifications to pycparser.
13 - Added support for empty initializer lists (#79).
Eli Benderskyb85d5612015-05-10 06:31:39 -070014
Eli Benderskyf1b2db22015-04-21 17:37:54 -070015+ Version 2.12 (21.04.2015)
16
17 - This is a fix release for 2.11; the memory optimization with __slots__ on
18 Coord and AST nodes didn't take weakrefs into account, which broke cffi and
19 its many dependents (iseue #76). Fixed by adding __weakref__ to __slots__.
20
Eli Bendersky40af8bd2015-04-21 14:48:45 -070021+ Version 2.11 (21.04.2015)
Eli Benderskye7c55cf2014-01-25 06:15:43 -080022
Eli Bendersky8aad3182014-01-25 06:30:53 -080023 - Add support for C99 6.5.3.7 p7 - qualifiers within array dimensions in
24 function declarations. Started with issue #21 (reported with initial patch
25 by Robin Martinjak).
Eli Benderskyc9f1a382014-03-15 14:12:00 -070026 - Issue #27: bug in handling of unified wstring literals.
Eli Bendersky8e5d3a92014-03-15 14:06:00 -070027 - Issue #28: fix coord reporting for 'for' loops.
Eli Bendersky645855c2014-04-23 17:01:07 -070028 - Added ``examples/using_gcc_E_libc.py`` to demonstrate how ``gcc -E`` can
29 be used instead of ``cpp`` for preprocessing.
Eli Benderskyba1b7a02015-01-17 06:35:55 -080030 - Pull request #64: support keywords like const, volatile, restrict and static
31 in dimensions in array declarations.
Eli Bendersky08744122015-04-18 07:03:40 -070032 - Reduce memory usage of AST nodes (issue #72).
Eli Benderskyb17da152015-04-21 14:35:18 -070033 - Parsing order of nested pointer declarations fixed (issue #68).
Eli Benderskye7c55cf2014-01-25 06:15:43 -080034
Eli Bendersky8dbd1492013-08-03 06:07:08 -070035+ Version 2.10 (03.08.2013)
Eli Bendersky6e658942013-06-08 07:04:38 -070036
Eli Bendersky3877c4c2013-07-13 06:54:04 -070037 - A number of improvements in the handling of typedef-name ambiguities,
38 contributed by Sye van der Veen in GitHub issue #1:
39
Eli Benderskyfebd20b2013-07-30 06:45:08 -070040 * Allow shadowing of types by identifiers in inner scopes.
Eli Bendersky3877c4c2013-07-13 06:54:04 -070041 * Allow struct field names to reside in a separate namespace and have
42 the same names as types.
43 * Allow duplicate typedefs in some cases to mimic real compiler behavior.
44
Eli Bendersky39219c12013-06-12 06:18:37 -070045 - c_generator error for ExprList in expression context.
46 - Assume default int type for functions whose argument or return types were
47 not specified.
48 - Relax the lexer a bit w.r.t. some integer suffixes and $ in identifier names
49 (which is supported by some other compilers).
Eli Bendersky6e658942013-06-08 07:04:38 -070050
Eli Benderskyb74f1fa2012-12-29 05:22:23 -080051+ Version 2.09.1 (29.12.2012)
52
53 - No actual functionality changes.
54 - The source distribution was re-packaged to contain the pre-generated Lex and
55 Yacc tables of PLY.
56
Eli Bendersky66191e22012-12-27 06:04:52 -080057+ Version 2.09 (27.12.2012)
Eli Bendersky93352512012-12-24 20:18:33 -080058
Eli Bendersky645e2602012-12-25 06:21:08 -080059 - The pycparser project has moved to Bitbucket. For this version, issue
60 numbers still refer to the old Googlecode project, unless stated otherwise.
61 Starting with the next version all issue numbers will refer to the new
62 Bitbucket project.
Eli Bendersky93352512012-12-24 20:18:33 -080063 - pycparser now carries its PLY dependency along. The pycparser/ply directory
64 contains the source of PLY for the currently supported version. This makes
65 distribution and testing easier.
Eli Bendersky00edfc12012-12-25 15:18:02 -080066 - Issue #79: fix generation of new switch/case AST nodes.
Eli Bendersky293ea912012-12-25 14:52:48 -080067 - Issue #83: fix parsing and C generation to distinguish between initializer
68 lists in declarations and initializing variables with parenthesized
69 comma-separated expressions.
Eli Bendersky4476d092012-12-25 14:07:57 -080070 - Issue #84: fix C generation for some statements.
Eli Bendersky4961d1b2012-12-25 06:50:59 -080071 - Issues #86 and #87: improve location reporting for parse errors.
Eli Bendersky4476d092012-12-25 14:07:57 -080072 - Issue #89: fix C generation for K&R-style function definitions.
Eli Bendersky93352512012-12-24 20:18:33 -080073
Eli Bendersky07f67a22012-08-10 08:48:31 +030074+ Version 2.08 (10.08.2012)
Eli Bendersky19400fd2012-06-22 09:38:23 +030075
Eli Bendersky09fc2002012-08-10 07:41:42 +030076 - Issue 73: initial support for #pragma directives. Consume them without
77 errors and ignore (no tokens are returned). Line numbers are preserved.
Eli Bendersky5a0abdf2012-07-07 06:52:23 +030078 - Issue 68: more correct handling of source files without any actual content.
79 - Issue 69: running all tests will now set appropriate return code.
Eli Bendersky0a3ef0b2012-07-06 15:54:29 +030080 - Better error reporting in case where multiple type specifiers are provided.
81 Also fixes Issue 60.
Eli Bendersky5a0abdf2012-07-07 06:52:23 +030082 - Issue 63: line endings cleanup for consistent LF ending.
83 - Issues 64 & 65: added some more headers and typedefs to fake includes.
Eli Bendersky949ad822012-08-10 07:04:20 +030084 - Refactoring the cpp invocation in parse_file into a separate function, which
85 can also be used as a utility.
Eli Benderskyd9649812012-08-10 08:27:12 +030086 - Issue 74: some Windows include paths were handled incorrectly.
Eli Bendersky19400fd2012-06-22 09:38:23 +030087
Eli Bendersky081bac22012-06-16 16:10:39 +030088+ Version 2.07 (16.06.2012)
Eli Bendersky13d0a6f2012-06-15 09:30:04 +030089
Eli Bendersky203b9672012-06-15 10:11:24 +030090 - Issue 54: added an optional parser argument to parse_file
91 - Issue 59: added some more fake headers for C99
92 - Issue 62: correct coord for Ellipsis nodes
Eli Bendersky3b1b08d2012-06-15 12:37:54 +030093 - Issue 57: support for C99 hexadecimal float constants
Eli Bendersky13d0a6f2012-06-15 09:30:04 +030094 - Made running tests that call on 'cpp' a bit more robust.
95
96+ Version 2.06 (04.02.2012)
97
98 - Issue 48: gracefully handle parsing of empty files
99 - Issues 49 & 50: handle more escaped chars in paths to #line - "..\..\test.h".
100 - Support for C99 _Complex type.
101 - CGenerator moves from examples/ to pycparser/ as a first-class citizen, and
102 added some fixes to it. examples/c-to-c.py still stays as a convenience
103 wrapper.
104 - Fix problem with parsing a file in which the first statement is just a
105 semicolon.
106 - Improved the AST created for switch statements, making it closer to the
107 semantic meaning than to the grammar.
108
109+ Version 2.05 (16.10.2011)
110
111 - Added support for the C99 ``_Bool`` type and ``stdbool.h`` header file
112 - Expanded ``examples/explore_ast.py`` with more details on working with the
113 AST
114 - Relaxed the rules on parsing unnamed struct members (helps parse ``windows.h``)
115 - Bug fixes:
116
117 * Fixed spacing issue for some type declarations
118 * Issue 47: display empty statements (lone ';') correctly after parsing
119
120+ Version 2.04 (21.05.2011)
121
122 - License changed from LGPL to BSD
123 - Bug fixes:
124
125 * Issue 31: constraining the scope of typedef definitions
126 * Issues 33, 35: fixes for the c-to-c.py example
127
128 - Added C99 integer types to fake headers
129 - Added unit tests for the c-to-c.py example
130
131+ Version 2.03 (06.03.2011)
132
133 - Bug fixes:
134
135 * Issue 17: empty file-level declarations
136 * Issue 18: empty statements and declarations in functions
137 * Issue 19: anonymous structs & union fields
138 * Issue 23: fix coordinates of Cast nodes
139
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700140 - New example added (``examples/c-to-c.py``) for translating ASTs generated
141 by ``pycparser`` back into C code.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300142 - ``pycparser`` is now on PyPI (Python Package Index)
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700143 - Created `FAQ <http://code.google.com/p/pycparser/wiki/FAQ>`_ on
144 the ``pycparser`` project page
145 - Removed support for Python 2.5. ``pycparser`` supports Python 2
146 from 2.6 and on, and Python 3.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300147
148+ Version 2.02 (10.12.2010)
149
150 * The name of a ``NamedInitializer`` node was turned into a sequence of nodes
151 instead of an attribute, to make it discoverable by the AST node visitor.
152 * Documentation updates
153
154+ Version 2.01 (04.12.2010)
155
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700156 * Removed dependency on YAML. Parsing of the AST node configuration file
157 is done with a simple parser.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300158 * Fixed issue 12: installation problems
159
160+ Version 2.00 (31.10.2010)
161
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700162 * Support for C99 (read
163 `this wiki page <http://code.google.com/p/pycparser/wiki/C99support>`_
164 for more information).
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300165
166+ Version 1.08 (09.10.2010)
167
168 * Bug fixes:
169
170 + Correct handling of ``do{} ... while`` statements in some cases
171 + Issues 6 & 7: Concatenation of string literals
172 + Issue 9: Support for unnamed bitfields in structs
173
174+ Version 1.07 (18.05.2010)
175
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700176 * Python 3.1 compatibility: ``pycparser`` was modified to run
177 on Python 3.1 as well as 2.6
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300178
179+ Version 1.06 (10.04.2010)
180
181 * Bug fixes:
182
183 + coord not propagated to FuncCall nodes
184 + lexing of the ^= token (XOREQUALS)
185 + parsing failed on some abstract declarator rules
186
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700187 * Linux compatibility: fixed end-of-line and ``cpp`` path issues to allow
188 all tests and examples run on Linux
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300189
190+ Version 1.05 (16.10.2009)
191
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700192 * Fixed the ``parse_file`` auxiliary function to handle multiple arguments to
193 ``cpp`` correctly
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300194
195+ Version 1.04 (22.05.2009)
196
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700197 * Added the ``fake_libc_include`` directory to allow parsing of C code that
198 uses standard C library include files without dependency on a real C
199 library.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300200 * Tested with Python 2.6 and PLY 3.2
201
202+ Version 1.03 (31.01.2009)
203
204 * Accept enumeration lists with a comma after the last item (C99 feature).
205
206+ Version 1.02 (16.01.2009)
207
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700208 * Fixed problem of parsing struct/enum/union names that were named similarly
209 to previously defined ``typedef`` types.
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300210
211+ Version 1.01 (09.01.2009)
212
Eli Benderskyc5463bd2015-05-12 06:06:21 -0700213 * Fixed subprocess invocation in the helper function parse_file - now
214 it's more portable
Eli Bendersky13d0a6f2012-06-15 09:30:04 +0300215
216+ Version 1.0 (15.11.2008)
217
218 * Initial release
219 * Support for ANSI C89