Commit 90feea51 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Fix comment generation of private enums, patch by Carlos Cadete, fixes bug

2008-11-02  Jürg Billeter  <j@bitron.ch>

	* gobject/valaccodegenerator.vala:

	Fix comment generation of private enums, patch by Carlos Cadete,
	fixes bug 558533

svn path=/trunk/; revision=1957
parent dbf533d6
2008-11-02 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala:
Fix comment generation of private enums, patch by Carlos Cadete,
fixes bug 558533
2008-11-02 Jürg Billeter <j@bitron.ch>
* vala/valaclass.vala:
......
......@@ -12,6 +12,7 @@ Andreas Brauchli
Anthony Taylor
Arwed von Merkatz
Carl-Anton Ingmarsson
Carlos Cadete
Cayle Graumann
Christian Hergert
Christian Meyer
......
......@@ -323,10 +323,6 @@ public class Vala.CCodeGenerator : CodeGenerator {
public override void visit_enum (Enum en) {
cenum = new CCodeEnum (en.get_cname ());
if (en.source_reference.comment != null) {
header_type_definition.append (new CCodeComment (en.source_reference.comment));
}
CCodeFragment decl_frag;
CCodeFragment def_frag;
if (en.access != SymbolAccessibility.PRIVATE) {
......@@ -336,6 +332,10 @@ public class Vala.CCodeGenerator : CodeGenerator {
decl_frag = source_type_declaration;
def_frag = source_type_definition;
}
if (en.source_reference.comment != null) {
def_frag.append (new CCodeComment (en.source_reference.comment));
}
def_frag.append (cenum);
def_frag.append (new CCodeNewline ());
......
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