]> git.sur5r.net Git - cc65/commitdiff
New function InvArg().
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 11:31:55 +0000 (11:31 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Oct 2009 11:31:55 +0000 (11:31 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4344 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/cmdline.c
src/common/cmdline.h

index 81d01863a192a326b9c97d4d297ad37db1a7f114..8ed149247028c1d6e9da27e53f061332cbe074bd 100644 (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 */
 {
index 6791c4be3a002682ec64ea4e71aabbcd4f70cd7d..f2af3ef18f87688ebf1fb8852f75356fd7e13e6d 100644 (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 */