New function InvArg().
git-svn-id: svn://svn.cc65.org/cc65/trunk@4344 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000 Ullrich von Bassewitz */
|
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -236,6 +236,14 @@ void NeedArg (const char* Opt)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void InvArg (const char* Opt, const char* Arg)
|
||||||
|
/* Print an error about an invalid option argument and exit. */
|
||||||
|
{
|
||||||
|
AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void InvDef (const char* Def)
|
void InvDef (const char* Def)
|
||||||
/* Print an error about an invalid definition and die */
|
/* Print an error about an invalid definition and die */
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 2000 Ullrich von Bassewitz */
|
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -83,6 +83,9 @@ void UnknownOption (const char* Opt) attribute ((noreturn));
|
|||||||
void NeedArg (const char* Opt) attribute ((noreturn));
|
void NeedArg (const char* Opt) attribute ((noreturn));
|
||||||
/* Print an error about a missing option argument and exit. */
|
/* Print an error about a missing option argument and exit. */
|
||||||
|
|
||||||
|
void InvArg (const char* Opt, const char* Arg) attribute ((noreturn));
|
||||||
|
/* Print an error about an invalid option argument and exit. */
|
||||||
|
|
||||||
void InvDef (const char* Def) attribute ((noreturn));
|
void InvDef (const char* Def) attribute ((noreturn));
|
||||||
/* Print an error about an invalid definition and die */
|
/* Print an error about an invalid definition and die */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user