[vala] Add constant declarations to header file



commit f6750a25398644ad7d07e305f2d471af11d3df5d
Author: Levi Bard <taktaktaktaktaktaktaktaktaktak gmail com>
Date:   Wed Apr 8 17:31:46 2009 +0200

    Add constant declarations to header file
    
    Fixes bug 578267.
---
 gobject/valaccodebasemodule.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gobject/valaccodebasemodule.vala b/gobject/valaccodebasemodule.vala
index c179feb..95eac14 100644
--- a/gobject/valaccodebasemodule.vala
+++ b/gobject/valaccodebasemodule.vala
@@ -765,6 +765,10 @@ internal class Vala.CCodeBaseModule : CCodeModule {
 
 	public override void visit_constant (Constant c) {
 		generate_constant_declaration (c, source_declarations);
+
+		if (!c.is_internal_symbol ()) {
+			generate_constant_declaration (c, header_declarations);
+		}
 	}
 
 	public void generate_field_declaration (Field f, CCodeDeclarationSpace decl_space) {



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