Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/giscanner/sourcescanner.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-25 20:25:36 (GMT)
committer Colin Walters <walters@verbum.org>2009-02-25 20:34:21 (GMT)
commit0b9dda0e725446882dca84b6a64688c8f0e5a4e3 (patch)
treefd7b7e5d75dc86ea18c1168310d80402fddf5c45 /giscanner/sourcescanner.py
parentc58582c7a88a95616fa87b81517ab8a2a76af92f (diff)
Bug 555964 - Parse floating-point #defines
Previously we just supported int and string, add double to this. Technically we should probably differentiate between float and double, but it's not likely to be very useful in practice to do so.
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r--giscanner/sourcescanner.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index 30e624b..1a8194d 100644
--- a/giscanner/sourcescanner.py
+++ b/giscanner/sourcescanner.py
@@ -146,7 +146,8 @@ class SourceType(object):
class SourceSymbol(object):
- __members__ = ['const_int', 'const_string', 'ident', 'type', 'base_type']
+ __members__ = ['const_int', 'const_double', 'const_string', 'ident',
+ 'type', 'base_type']
def __init__(self, scanner, symbol):
self._scanner = scanner
@@ -163,6 +164,10 @@ class SourceSymbol(object):
return self._symbol.const_int
@property
+ def const_double(self):
+ return self._symbol.const_double
+
+ @property
def const_string(self):
return self._symbol.const_string