[vala] CodeWriter: Support external symbols



commit 64986bb0c7c2a1213418ea7785d39b9b416fb9ba
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 10 09:32:48 2010 +0200

    CodeWriter: Support external symbols

 vala/valacodewriter.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 4763f44..8b4650b 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1996,6 +1996,10 @@ public class Vala.CodeWriter : CodeVisitor {
 		} else if (sym.access == SymbolAccessibility.PRIVATE) {
 			write_string ("private ");
 		}
+
+		if (sym.external && !sym.external_package) {
+			write_string ("extern ");
+		}
 	}
 }
 



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