vala r1213 - in trunk: . compiler



Author: juergbi
Date: Sun Apr 13 20:05:00 2008
New Revision: 1213
URL: http://svn.gnome.org/viewvc/vala?rev=1213&view=rev

Log:
2008-04-13  Juerg Billeter  <j bitron ch>

	* compiler/valacompiler.vala: enable non-null types by default,
	  replace --enable-non-null commandline option by --disable-non-null


Modified:
   trunk/ChangeLog
   trunk/compiler/valacompiler.vala

Modified: trunk/compiler/valacompiler.vala
==============================================================================
--- trunk/compiler/valacompiler.vala	(original)
+++ trunk/compiler/valacompiler.vala	Sun Apr 13 20:05:00 2008
@@ -42,7 +42,7 @@
 	static bool thread;
 	static bool disable_assert;
 	static bool disable_checking;
-	static bool non_null;
+	static bool disable_non_null;
 	static bool non_null_experimental;
 	static bool verbose;
 	static string cc_command;
@@ -70,7 +70,7 @@
 		{ "define", 'D', 0, OptionArg.STRING_ARRAY, out defines, "Define SYMBOL", "SYMBOL..." },
 		{ "disable-assert", 0, 0, OptionArg.NONE, ref disable_assert, "Disable assertions", null },
 		{ "disable-checking", 0, 0, OptionArg.NONE, ref disable_checking, "Disable run-time checks", null },
-		{ "enable-non-null", 0, 0, OptionArg.NONE, ref non_null, "Enable non-null types", null },
+		{ "disable-non-null", 0, 0, OptionArg.NONE, ref disable_non_null, "Disable non-null types", null },
 		{ "enable-non-null-experimental", 0, 0, OptionArg.NONE, ref non_null_experimental, "Enable experimental enhancements for non-null types", null },
 		{ "cc", 0, 0, OptionArg.STRING, out cc_command, "Use COMMAND as C compiler command", "COMMAND" },
 		{ "Xcc", 'X', 0, OptionArg.STRING_ARRAY, out cc_options, "Pass OPTION to the C compiler", "OPTION..." },
@@ -146,7 +146,7 @@
 		context.library = library;
 		context.assert = !disable_assert;
 		context.checking = !disable_checking;
-		context.non_null = non_null || non_null_experimental || true;
+		context.non_null = !disable_non_null || non_null_experimental;
 		context.non_null_experimental = non_null_experimental;
 		Report.set_verbose_errors (verbose);
 



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