From: Jürg Billeter Date: Thu, 25 Jun 2009 17:12:34 +0000 (+0200) Subject: Add parenthesis to macro substitutions where necessary X-Git-Tag: 0.7.4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6dbfa265da427618cac87365cdf0a39f01c3f0c;p=thirdparty%2Fvala.git Add parenthesis to macro substitutions where necessary Based on patch by Yu Feng. --- diff --git a/ccode/valaccodemacroreplacement.vala b/ccode/valaccodemacroreplacement.vala index 1737c2e7c..d865387ec 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 (); }