]> granicus.if.org Git - clang/commitdiff
This new field was introduced in clang-c in r141277
authorDouglas Gregor <dgregor@apple.com>
Wed, 19 Oct 2011 05:47:46 +0000 (05:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 19 Oct 2011 05:47:46 +0000 (05:47 +0000)
Python needs this in its structure definition so it allocates enough
memory. From Anders Waldenborg!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142474 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/clang/cindex.py

index 35c423d7d89861296a426afa4936caa70241f35e..5ea371426cbae8fa059ac040f6ad472b85eb73b2 100644 (file)
@@ -815,7 +815,7 @@ class Cursor(Structure):
     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)