From 95dd729315eb956a823f7fb606329cd02d2dd626 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sun, 13 Apr 2008 19:05:00 +0000 Subject: [PATCH] enable non-null types by default, replace --enable-non-null commandline 2008-04-13 Juerg Billeter * compiler/valacompiler.vala: enable non-null types by default, replace --enable-non-null commandline option by --disable-non-null svn path=/trunk/; revision=1213 --- ChangeLog | 5 +++++ compiler/valacompiler.vala | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1146d62..b1b95a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-04-13 Jürg Billeter + * compiler/valacompiler.vala: enable non-null types by default, + replace --enable-non-null commandline option by --disable-non-null + +2008-04-13 Jürg Billeter + * */*.vala: fix build when using non-null types 2008-04-13 Jürg Billeter diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 9767f24..d576573 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -42,7 +42,7 @@ class Vala.Compiler : Object { 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 @@ class Vala.Compiler : Object { { "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 @@ class Vala.Compiler : Object { 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); -- 2.7.4