[vala] Do not use static modifier for extern methods



commit 5d26b85971d3bb5f516204010f0b4dbb63e282ba
Author: Jürg Billeter <j bitron ch>
Date:   Sat Mar 13 18:51:02 2010 +0100

    Do not use static modifier for extern methods
    
    Based on patch by Marc-André Lureau, fixes bug 584105.

 codegen/valaccodemethodmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 10dd7d2..49ca331 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -172,7 +172,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
 
 		var function = new CCodeFunction (m.get_cname ());
 
-		if (m.is_private_symbol ()) {
+		if (m.is_private_symbol () && !m.external) {
 			function.modifiers |= CCodeModifiers.STATIC;
 			if (m.is_inline) {
 				function.modifiers |= CCodeModifiers.INLINE;



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