Commit f0c175f5 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Emit delegate documentation to the C header files

2009-02-09  Jürg Billeter  <j@bitron.ch>

	* gobject/valaccodedelegatemodule.vala:

	Emit delegate documentation to the C header files

svn path=/trunk/; revision=2424
parent 0382af24
2009-02-09 Jürg Billeter <j@bitron.ch>
* gobject/valaccodedelegatemodule.vala:
Emit delegate documentation to the C header files
2009-02-08 Jürg Billeter <j@bitron.ch> 2009-02-08 Jürg Billeter <j@bitron.ch>
* vala/valanamespace.vala: * vala/valanamespace.vala:
......
...@@ -75,8 +75,14 @@ internal class Vala.CCodeDelegateModule : CCodeArrayModule { ...@@ -75,8 +75,14 @@ internal class Vala.CCodeDelegateModule : CCodeArrayModule {
var ctypedef = new CCodeTypeDefinition (d.return_type.get_cname (), cfundecl); var ctypedef = new CCodeTypeDefinition (d.return_type.get_cname (), cfundecl);
if (!d.is_internal_symbol ()) { 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); header_type_declaration.append (ctypedef);
} else { } 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); source_type_declaration.append (ctypedef);
} }
} }
......
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