[vala/0.10] Append errordomain doc comments to generated C files



commit 16d59cd7df6b4ffdc969fc259e98927d7c0b7ff0
Author: Jürg Billeter <j bitron ch>
Date:   Thu Sep 30 17:04:50 2010 +0200

    Append errordomain doc comments to generated C files

 codegen/valagerrormodule.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala
index dccb21b..6cb8868 100644
--- a/codegen/valagerrormodule.vala
+++ b/codegen/valagerrormodule.vala
@@ -57,6 +57,10 @@ public class Vala.GErrorModule : CCodeDelegateModule {
 	}
 
 	public override void visit_error_domain (ErrorDomain edomain) {
+		if (edomain.comment != null) {
+			source_declarations.add_type_definition (new CCodeComment (edomain.comment.content));
+		}
+
 		generate_error_domain_declaration (edomain, source_declarations);
 
 		if (!edomain.is_internal_symbol ()) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]