Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools/g-ir-scanner
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-24 04:04:35 (GMT)
committer Colin Walters <walters@verbum.org>2009-02-24 19:23:37 (GMT)
commitf3f8de20114405bae29a354d67c38a7bf0b096a2 (patch)
treeae6a6917db11c909f84771da264f7f5930154d09 /tools/g-ir-scanner
parent7bd4bc6807dc829f6e8ea4db1b58a85e365b8b97 (diff)
Bug 572790 - Don't register #defines from .c files as constants
We keep track of the source filename for every symbol. This enables us to later filter symbols based on that name.
Diffstat (limited to 'tools/g-ir-scanner')
-rwxr-xr-xtools/g-ir-scanner4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index de20a7e..4b5b924 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -282,7 +282,9 @@ def main(args):
arg.endswith('.h')):
if not os.path.exists(arg):
_error('%s: no such a file or directory' % (arg, ))
- filenames.append(arg)
+ # Make absolute, because we do comparisons inside scannerparser.c
+ # against the absolute path that cpp will give us
+ filenames.append(os.path.abspath(arg))
cachestore = CacheStore()
transformer = Transformer(cachestore,