Commit 8e156af4 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

remove comma at end of generated enumerator list, fixes gcc warning

2007-05-09  Jürg Billeter  <j@bitron.ch>

	* ccode/valaccodeenum.vala: remove comma at end of generated enumerator
	  list, fixes gcc warning

svn path=/trunk/; revision=314
parent 92279289
2007-05-09 Jürg Billeter <j@bitron.ch>
* ccode/valaccodeenum.vala: remove comma at end of generated enumerator
list, fixes gcc warning
2007-05-09 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: generate get_property and
......
/* valaccodeenum.vala
*
* Copyright (C) 2006 Jürg Billeter
* Copyright (C) 2006-2007 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
......@@ -57,10 +57,17 @@ public class Vala.CCodeEnum : CCodeNode {
}
writer.write_string ("enum ");
writer.write_begin_block ();
bool first = true;
foreach (string value in values) {
if (!first) {
writer.write_string (",");
writer.write_newline ();
}
writer.write_indent ();
writer.write_string (value);
writer.write_string (",");
first = false;
}
if (!first) {
writer.write_newline ();
}
writer.write_end_block ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment