summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.h
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-05-14 21:49:53 +0200
committerColin Walters <walters@verbum.org>2011-08-10 10:39:59 -0400
commit7f178ddeadd99ee82ec0da6ff963392b44d223c3 (patch)
treeb2b964997c4d5dace3d2cf5133523bfabb1e56ff /giscanner/sourcescanner.h
parent37213bcbf7dde51bf955501c709d0b940722d32a (diff)
downloadgobject-introspection-7f178ddeadd99ee82ec0da6ff963392b44d223c3.tar.gz
Fix symbols being reported in invalid files
* Due to the way that flex/bison works, the symbols were being added to the scanner after additional lines are parsed. * If these lines are #line directives, then scanner->current_filename can change between when the symbol is parsed and when it's added. * Change so that symbol gets filename when parsing rather than when being added to the scanner. https://bugzilla.gnome.org/show_bug.cgi?id=650200
Diffstat (limited to 'giscanner/sourcescanner.h')
-rw-r--r--giscanner/sourcescanner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.h b/giscanner/sourcescanner.h
index 1ed9e9b7..df16cf6a 100644
--- a/giscanner/sourcescanner.h
+++ b/giscanner/sourcescanner.h
@@ -158,7 +158,7 @@ GSList * gi_source_scanner_get_symbols (GISourceScanner *scanne
GSList * gi_source_scanner_get_comments (GISourceScanner *scanner);
void gi_source_scanner_free (GISourceScanner *scanner);
-GISourceSymbol * gi_source_symbol_new (GISourceSymbolType type, int line);
+GISourceSymbol * gi_source_symbol_new (GISourceSymbolType type, const gchar *filename, int line);
gboolean gi_source_symbol_get_const_boolean (GISourceSymbol *symbol);
GISourceSymbol * gi_source_symbol_ref (GISourceSymbol *symbol);
void gi_source_symbol_unref (GISourceSymbol *symbol);