aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/clang/cindex.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-30 23:58:50 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-30 23:58:50 +0000
commite32af4213eb499fc5b6db15a9da9712148fcf8b5 (patch)
tree8dbe9d48008ab8d571a80bd5672473afdd9c4e72 /bindings/python/clang/cindex.py
parent2791dfc0fcbff64dbdaccde433b75c7226528b8d (diff)
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
Diffstat (limited to 'bindings/python/clang/cindex.py')
-rw-r--r--bindings/python/clang/cindex.py4
1 files changed, 2 insertions, 2 deletions
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)]