From: Daniel Dunbar Date: Sat, 30 Jan 2010 23:58:50 +0000 (+0000) Subject: cindex/Python: Update SourceLocation and SourceRange structures to match API changes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e32af4213eb499fc5b6db15a9da9712148fcf8b5;p=clang cindex/Python: Update SourceLocation and SourceRange structures to match API changes. Hurray for exposing implementation details!!! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94932 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index 7398cbbe55..e0858715a8 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -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)]