[vala/0.10-parallel: 38/46] codegen: Fix external constants



commit 89c92d95e403e53e5823a3cae2bbbbd3a9bb09c2
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 10 08:33:52 2010 +0200

    codegen: Fix external constants

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 6d70dda..6c32b99 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -852,7 +852,7 @@ public class Vala.CCodeBaseModule : CodeGenerator {
 			return;
 		}
 
-		if (c.source_reference.file.file_type != SourceFileType.PACKAGE) {
+		if (!c.external) {
 			generate_type_declaration (c.type_reference, decl_space);
 
 			c.value.emit (this);



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