[cfe-commits] r142474 - /cfe/trunk/bindings/python/clang/cindex.py

Douglas Gregor dgregor at apple.com
Tue Oct 18 22:47:47 PDT 2011


Author: dgregor
Date: Wed Oct 19 00:47:46 2011
New Revision: 142474

URL: http://llvm.org/viewvc/llvm-project?rev=142474&view=rev
Log:
This new field was introduced in clang-c in r141277

Python needs this in its structure definition so it allocates enough
memory. From Anders Waldenborg!

Modified:
    cfe/trunk/bindings/python/clang/cindex.py

Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=142474&r1=142473&r2=142474&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Wed Oct 19 00:47:46 2011
@@ -815,7 +815,7 @@
     The Cursor class represents a reference to an element within the AST. It
     acts as a kind of iterator.
     """
-    _fields_ = [("_kind_id", c_int), ("data", c_void_p * 3)]
+    _fields_ = [("_kind_id", c_int), ("xdata", c_int), ("data", c_void_p * 3)]
 
     def __eq__(self, other):
         return Cursor_eq(self, other)





More information about the cfe-commits mailing list