vala r2424 - in trunk: . gobject



Author: juergbi
Date: Mon Feb  9 16:13:16 2009
New Revision: 2424
URL: http://svn.gnome.org/viewvc/vala?rev=2424&view=rev

Log:
2009-02-09  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodedelegatemodule.vala:

	Emit delegate documentation to the C header files


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodedelegatemodule.vala

Modified: trunk/gobject/valaccodedelegatemodule.vala
==============================================================================
--- trunk/gobject/valaccodedelegatemodule.vala	(original)
+++ trunk/gobject/valaccodedelegatemodule.vala	Mon Feb  9 16:13:16 2009
@@ -75,8 +75,14 @@
 		var ctypedef = new CCodeTypeDefinition (d.return_type.get_cname (), cfundecl);
 
 		if (!d.is_internal_symbol ()) {
+			if (d.source_reference != null && d.source_reference.comment != null) {
+				header_type_declaration.append (new CCodeComment (d.source_reference.comment));
+			}
 			header_type_declaration.append (ctypedef);
 		} else {
+			if (d.source_reference != null && d.source_reference.comment != null) {
+				source_type_declaration.append (new CCodeComment (d.source_reference.comment));
+			}
 			source_type_declaration.append (ctypedef);
 		}
 	}



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