From 99861d3e038d4e0c9aa2fe1bfaba0164de18466c Mon Sep 17 00:00:00 2001 From: ccremers Date: Fri, 6 Jan 2006 12:23:11 +0000 Subject: [PATCH] - Added '--untyped' switch which is to be preferred above the older --match=2 notation. --- src/switches.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/switches.c b/src/switches.c index 120e3b4..562eda9 100644 --- a/src/switches.c +++ b/src/switches.c @@ -561,8 +561,12 @@ switcher (const int process, int index, int commandline) { if (!process) { + /* + * Deprecated : use --untyped instead + * helptext ("-m, --match=", "type matching method [0] 0: No type-flaws allowed, 1: Allow basic type-flaws only, 2: Allow all type-flaws"); + */ } else { @@ -571,6 +575,20 @@ switcher (const int process, int index, int commandline) } } + if (detect ('u', "untyped", 0)) + { + if (!process) + { + helptext ("-u, --untyped", + "Consider all variables to be untyped"); + } + else + { + switches.match = 2; + return index; + } + } + if (detect ('T', "timer", 1)) { if (!process)