[vala] CodeWriter: Support external symbols
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] CodeWriter: Support external symbols
- Date: Fri, 10 Sep 2010 15:37:32 +0000 (UTC)
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]