[vala] CodeWriter: Do not write extern in EXTERNAL mode



commit 6f4efc93f0ffff0a5da3965a61c96494fbc34665
Author: Jürg Billeter <j bitron ch>
Date:   Sun Oct 3 21:54:12 2010 +0200

    CodeWriter: Do not write extern in EXTERNAL mode

 vala/valacodewriter.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 9a07c83..94bf542 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -2013,7 +2013,7 @@ public class Vala.CodeWriter : CodeVisitor {
 			write_string ("private ");
 		}
 
-		if (sym.external && !sym.external_package) {
+		if (type != CodeWriterType.EXTERNAL && sym.external && !sym.external_package) {
 			write_string ("extern ");
 		}
 	}



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