[vala] codegen: Fix external constants
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix external constants
- Date: Fri, 10 Sep 2010 15:37:17 +0000 (UTC)
commit f29e678631ffb5f30ed3c5eed05e2545ca07eef0
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 837aa1d..454e94c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -763,7 +763,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]