]> granicus.if.org Git - clang/commitdiff
cindex/Python: Update SourceLocation and SourceRange structures to match API changes.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 23:58:50 +0000 (23:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 30 Jan 2010 23:58:50 +0000 (23:58 +0000)
Hurray for exposing implementation details!!!

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

bindings/python/clang/cindex.py

index 7398cbbe558f8a5ae99c192c80fe53f4711404fb..e0858715a85d41b63e406078d62fc92647357654 100644 (file)
@@ -100,7 +100,7 @@ class SourceLocation(Structure):
     """
     A SourceLocation represents a particular location within a source file.
     """
-    _fields_ = [("ptr_data", c_void_p), ("int_data", c_uint)]
+    _fields_ = [("ptr_data", c_void_p * 2), ("int_data", c_uint)]
     _data = None
 
     def _get_instantiation(self):
@@ -141,7 +141,7 @@ class SourceRange(Structure):
     code.
     """
     _fields_ = [
-        ("ptr_data", c_void_p),
+        ("ptr_data", c_void_p * 2),
         ("begin_int_data", c_uint),
         ("end_int_data", c_uint)]