projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf393f0
)
scanner: don't warn about unexpected characters when the char is \0
author
Stefan Kost
<ensonic@users.sf.net>
Fri, 4 Dec 2009 16:33:22 +0000
(18:33 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 4 Dec 2009 21:01:32 +0000
(23:01 +0200)
giscanner/scannerlexer.l
patch
|
blob
|
history
diff --git
a/giscanner/scannerlexer.l
b/giscanner/scannerlexer.l
index 3d9aa3333afe53c31a63a3bdca004146658bfa7f..d78de905a9b938720827c41b643d24c1d217f524 100644
(file)
--- a/
giscanner/scannerlexer.l
+++ b/
giscanner/scannerlexer.l
@@
-190,7
+190,7
@@
stringtext ([^\\\"])|(\\.)
"\""{stringtext}*"\"" { return STRING; }
"L\""{stringtext}*"\"" { return STRING; }
-. { fprintf(stderr, "%s:%d: unexpected character `%c'\n", scanner->current_filename, lineno, yytext[0]); }
+. {
if (yytext[0])
fprintf(stderr, "%s:%d: unexpected character `%c'\n", scanner->current_filename, lineno, yytext[0]); }
%%