vala r2401 - in trunk: . gobject



Author: juergbi
Date: Mon Jan 26 11:18:28 2009
New Revision: 2401
URL: http://svn.gnome.org/viewvc/vala?rev=2401&view=rev

Log:
2009-01-26  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodebasemodule.vala:

	Revert incorrect code generation change for constants, will need to
	use `extern' to properly export constants


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodebasemodule.vala

Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala	(original)
+++ trunk/gobject/valaccodebasemodule.vala	Mon Jan 26 11:18:28 2009
@@ -805,11 +805,11 @@
 				arr = "[]";
 			}
 			cdecl.add_declarator (new CCodeVariableDeclarator ("%s%s".printf (c.get_cname (), arr), (CCodeExpression) c.initializer.ccodenode));
-
+			cdecl.modifiers = CCodeModifiers.STATIC;
+		
 			if (!c.is_internal_symbol ()) {
 				header_constant_declaration.append (cdecl);
 			} else {
-				cdecl.modifiers = CCodeModifiers.STATIC;
 				source_constant_declaration.append (cdecl);
 			}
 		} else {



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