diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-19 16:37:42 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-19 23:47:36 -0300 |
commit | 0d6db7114a176c2d24a19a2d6a570aab406608ac (patch) | |
tree | d72657dee7985eeb215ad054a6b9da0a92f8579f /giscanner/scannerparser.y | |
parent | 2f6638b2c15aee49b08784f13bd5f945466f97a7 (diff) | |
download | gobject-introspection-0d6db7114a176c2d24a19a2d6a570aab406608ac.tar.gz |
[sourcescanner] Rewrite linemarks parser
Rewrite the pre-processor linemark parser so we end
up with accurate filenames and linenumbers.
Diffstat (limited to 'giscanner/scannerparser.y')
-rw-r--r-- | giscanner/scannerparser.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/scannerparser.y b/giscanner/scannerparser.y index 600aee01..b4df11cc 100644 --- a/giscanner/scannerparser.y +++ b/giscanner/scannerparser.y @@ -1488,6 +1488,7 @@ gi_source_scanner_parse_file (GISourceScanner *scanner, FILE *file) gboolean gi_source_scanner_lex_filename (GISourceScanner *scanner, const gchar *filename) { + lineno = 1; yyin = fopen (filename, "r"); while (yylex (scanner) != YYEOF) |