stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/etlib Module.make getopt.c prgname.c ...


From: address@hidden
Subject: [Stratagus-CVS] stratagus/etlib Module.make getopt.c prgname.c ...
Date: 2 Feb 2004 17:38:07 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/02/02 17:38:07

Modified files:
        etlib          : Module.make getopt.c 
Removed files:
        etlib          : prgname.c prgname.h 

Log message:
        Removed prgname

Patches:
Index: stratagus/etlib/Module.make
diff -u stratagus/etlib/Module.make:1.8 stratagus/etlib/Module.make:1.9
--- stratagus/etlib/Module.make:1.8     Fri Jul  4 03:48:48 2003
+++ stratagus/etlib/Module.make Mon Feb  2 17:38:07 2004
@@ -23,7 +23,6 @@
 ##
 
 MODULE = etlib
-MSRC = hash.c prgname.c
+MSRC = hash.c
 
 SRC += $(addprefix $(MODULE)/,$(MSRC))
-HDRS += etlib/prgname.h
Index: stratagus/etlib/getopt.c
diff -u stratagus/etlib/getopt.c:1.3 stratagus/etlib/getopt.c:1.4
--- stratagus/etlib/getopt.c:1.3        Wed May 15 04:17:11 2002
+++ stratagus/etlib/getopt.c    Mon Feb  2 17:38:07 2004
@@ -5,12 +5,8 @@
  * the error return for 'argument required' is a ':' not a '?'.
  * This makes it easier to differentiate between an 'illegal option' and
  * an 'argument required' error.
- *
- * Another extension: the external variable prgname is set from argv[0].
  */
 
-#include "prgname.h"
-
 #define NULL   0
 #define EOF    (-1)
 
@@ -56,8 +52,6 @@
     static int sp = 1;
     register int c;
     register char *cp;
-
-    setprgname(argv[0]);
 
     optarg = NULL;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]