[vala/0.10-parallel: 41/46] CodeWriter: Support external symbols



commit 76bef1e2a8c314fdb87ea937022045cc09bc3b3e
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]