1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

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
This commit is contained in:
cuz 2000-08-23 14:09:44 +00:00
parent dacd2bb457
commit e163b07d1b

View File

@ -252,11 +252,6 @@ static void OptAnsi (const char* Opt, const char* Arg)
static void OptBssName (const char* Opt, const char* Arg) static void OptBssName (const char* Opt, const char* Arg)
/* Handle the --bss-name option */ /* Handle the --bss-name option */
{ {
/* Must have a segment name */
if (Arg == 0) {
NeedArg (Opt);
}
/* Check for a valid name */ /* Check for a valid name */
CheckSegName (Arg); CheckSegName (Arg);
@ -269,11 +264,6 @@ static void OptBssName (const char* Opt, const char* Arg)
static void OptCodeName (const char* Opt, const char* Arg) static void OptCodeName (const char* Opt, const char* Arg)
/* Handle the --code-name option */ /* Handle the --code-name option */
{ {
/* Must have a segment name */
if (Arg == 0) {
NeedArg (Opt);
}
/* Check for a valid name */ /* Check for a valid name */
CheckSegName (Arg); CheckSegName (Arg);
@ -286,9 +276,6 @@ static void OptCodeName (const char* Opt, const char* Arg)
static void OptCPU (const char* Opt, const char* Arg) static void OptCPU (const char* Opt, const char* Arg)
/* Handle the --cpu option */ /* Handle the --cpu option */
{ {
if (Arg == 0) {
NeedArg (Opt);
}
if (strcmp (Arg, "6502") == 0) { if (strcmp (Arg, "6502") == 0) {
CPU = CPU_6502; CPU = CPU_6502;
} else if (strcmp (Arg, "65C02") == 0) { } 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) static void OptDataName (const char* Opt, const char* Arg)
/* Handle the --code-name option */ /* Handle the --code-name option */
{ {
/* Must have a segment name */
if (Arg == 0) {
NeedArg (Opt);
}
/* Check for a valid name */ /* Check for a valid name */
CheckSegName (Arg); CheckSegName (Arg);
@ -345,9 +327,6 @@ static void OptHelp (const char* Opt, const char* Arg)
static void OptIncludeDir (const char* Opt, const char* Arg) static void OptIncludeDir (const char* Opt, const char* Arg)
/* Add an include search path */ /* Add an include search path */
{ {
if (Arg == 0) {
NeedArg (Opt);
}
AddIncludePath (Arg, INC_SYS | INC_USER); 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) static void OptRodataName (const char* Opt, const char* Arg)
/* Handle the --rodata-name option */ /* Handle the --rodata-name option */
{ {
/* Must have a segment name */
if (Arg == 0) {
NeedArg (Opt);
}
/* Check for a valid name */ /* Check for a valid name */
CheckSegName (Arg); CheckSegName (Arg);
@ -389,9 +363,6 @@ static void OptStaticLocals (const char* Opt, const char* Arg)
static void OptTarget (const char* Opt, const char* Arg) static void OptTarget (const char* Opt, const char* Arg)
/* Set the target system */ /* Set the target system */
{ {
if (Arg == 0) {
NeedArg (Opt);
}
SetSys (Arg); SetSys (Arg);
} }