From: cuz Date: Wed, 23 Aug 2000 14:09:44 +0000 (+0000) Subject: The checks if there is an argument are not needed since this is done by the X-Git-Tag: V2.12.0~3222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e163b07d1b7748d90f4897dc0e17ace38a1af4ab;p=cc65 The checks if there is an argument are not needed since this is done by the cmdline module. git-svn-id: svn://svn.cc65.org/cc65/trunk@301 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/main.c b/src/cc65/main.c index b8ecc4fd8..5c32eea58 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -252,11 +252,6 @@ static void OptAnsi (const char* Opt, const char* Arg) static void OptBssName (const char* Opt, const char* Arg) /* Handle the --bss-name option */ { - /* Must have a segment name */ - if (Arg == 0) { - NeedArg (Opt); - } - /* Check for a valid name */ CheckSegName (Arg); @@ -269,11 +264,6 @@ static void OptBssName (const char* Opt, const char* Arg) static void OptCodeName (const char* Opt, const char* Arg) /* Handle the --code-name option */ { - /* Must have a segment name */ - if (Arg == 0) { - NeedArg (Opt); - } - /* Check for a valid name */ CheckSegName (Arg); @@ -286,9 +276,6 @@ static void OptCodeName (const char* Opt, const char* Arg) static void OptCPU (const char* Opt, const char* Arg) /* Handle the --cpu option */ { - if (Arg == 0) { - NeedArg (Opt); - } if (strcmp (Arg, "6502") == 0) { CPU = CPU_6502; } else if (strcmp (Arg, "65C02") == 0) { @@ -303,11 +290,6 @@ static void OptCPU (const char* Opt, const char* Arg) static void OptDataName (const char* Opt, const char* Arg) /* Handle the --code-name option */ { - /* Must have a segment name */ - if (Arg == 0) { - NeedArg (Opt); - } - /* Check for a valid name */ CheckSegName (Arg); @@ -345,9 +327,6 @@ static void OptHelp (const char* Opt, const char* Arg) static void OptIncludeDir (const char* Opt, const char* Arg) /* Add an include search path */ { - if (Arg == 0) { - NeedArg (Opt); - } AddIncludePath (Arg, INC_SYS | INC_USER); } @@ -356,11 +335,6 @@ static void OptIncludeDir (const char* Opt, const char* Arg) static void OptRodataName (const char* Opt, const char* Arg) /* Handle the --rodata-name option */ { - /* Must have a segment name */ - if (Arg == 0) { - NeedArg (Opt); - } - /* Check for a valid name */ CheckSegName (Arg); @@ -389,9 +363,6 @@ static void OptStaticLocals (const char* Opt, const char* Arg) static void OptTarget (const char* Opt, const char* Arg) /* Set the target system */ { - if (Arg == 0) { - NeedArg (Opt); - } SetSys (Arg); }