[vala] Add parenthesis to macro substitutions where necessary
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Add parenthesis to macro substitutions where necessary
- Date: Thu, 25 Jun 2009 17:16:48 +0000 (UTC)
commit d6dbfa265da427618cac87365cdf0a39f01c3f0c
Author: Jürg Billeter <j bitron ch>
Date: Thu Jun 25 19:12:34 2009 +0200
Add parenthesis to macro substitutions where necessary
Based on patch by Yu Feng.
ccode/valaccodemacroreplacement.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ccode/valaccodemacroreplacement.vala b/ccode/valaccodemacroreplacement.vala
index 1737c2e..d865387 100644
--- a/ccode/valaccodemacroreplacement.vala
+++ b/ccode/valaccodemacroreplacement.vala
@@ -1,6 +1,6 @@
/* valaccodemacroreplacement.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -59,7 +59,7 @@ public class Vala.CCodeMacroReplacement : CCodeNode {
if (replacement != null) {
writer.write_string (replacement);
} else {
- replacement_expression.write (writer);
+ replacement_expression.write_inner (writer);
}
writer.write_newline ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]