Fix symbols being reported in invalid files
authorStef Walter <stefw@collabora.co.uk>
Sat, 14 May 2011 19:49:53 +0000 (21:49 +0200)
committerColin Walters <walters@verbum.org>
Wed, 10 Aug 2011 14:39:59 +0000 (10:39 -0400)
commit7f178ddeadd99ee82ec0da6ff963392b44d223c3
treeb2b964997c4d5dace3d2cf5133523bfabb1e56ff
parent37213bcbf7dde51bf955501c709d0b940722d32a
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
giscanner/scannerparser.y
giscanner/sourcescanner.c
giscanner/sourcescanner.h