1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-28 19:29:53 +00:00

New function InvArg().

git-svn-id: svn://svn.cc65.org/cc65/trunk@4344 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-10-08 11:31:55 +00:00
parent 9971b645a5
commit b7c8c651f6
2 changed files with 20 additions and 9 deletions

View File

@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 2000 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* (C) 2000-2009, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
@ -102,7 +102,7 @@ static void AddArg (CmdLine* L, char* Arg)
L->Vec[L->Count++] = Arg;
}
static void ExpandFile (CmdLine* L, const char* Name)
/* Add the contents of a file to the command line. Each line is a separate
@ -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)
/* Print an error about an invalid definition and die */
{

View File

@ -6,10 +6,10 @@
/* */
/* */
/* */
/* (C) 2000 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* (C) 2000-2009, Ullrich von Bassewitz */
/* Roemerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
/* 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));
/* 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));
/* Print an error about an invalid definition and die */