summaryrefslogtreecommitdiff
path: root/giscanner/scannerparser.y
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-19 16:37:42 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-19 23:47:36 -0300
commit0d6db7114a176c2d24a19a2d6a570aab406608ac (patch)
treed72657dee7985eeb215ad054a6b9da0a92f8579f /giscanner/scannerparser.y
parent2f6638b2c15aee49b08784f13bd5f945466f97a7 (diff)
downloadgobject-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.y1
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)