[gobject-introspection] scanner: don't warn about unexpected characters when the char is \0
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: don't warn about unexpected characters when the char is \0
- Date: Fri, 4 Dec 2009 21:03:10 +0000 (UTC)
commit df7e6b4c031b865c56fcf44644f1bf9c700885d8
Author: Stefan Kost <ensonic users sf net>
Date: Fri Dec 4 18:33:22 2009 +0200
scanner: don't warn about unexpected characters when the char is \0
giscanner/scannerlexer.l | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l
index 3d9aa33..d78de90 100644
--- 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]); }
%%
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]