[vala] vapigen: Make quotes around metadata arguments optional
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] vapigen: Make quotes around metadata arguments optional
- Date: Mon, 27 Jul 2009 19:32:58 +0000 (UTC)
commit 4ac95d127410491867918f690d06eb8bbd661f6d
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jul 21 14:29:11 2009 -0700
vapigen: Make quotes around metadata arguments optional
Fixes bug 588171.
vapigen/valagidlparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 70a2019..e8ee349 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1930,7 +1930,7 @@ public class Vala.GIdlParser : CodeVisitor {
}
private string eval (string s) {
- return s.offset (1).ndup (s.size () - 2);
+ return ((s.size () >= 2) && s.has_prefix ("\"") && s.has_suffix ("\"")) ? s.offset (1).ndup (s.size () - 2) : s;
}
private Signal? parse_signal (IdlNodeSignal sig_node) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]