commit-gnue
[Top][All Lists]
Advanced

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

gnue/geas/tools gcdverifier.c


From: Neil Tiffin
Subject: gnue/geas/tools gcdverifier.c
Date: Tue, 05 Jun 2001 14:44:18 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/06/05 14:44:17

Modified files:
        geas/tools     : gcdverifier.c 

Log message:
        Correct Usage text.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/tools/gcdverifier.c.diff?cvsroot=OldCVS&tr1=1.22&tr2=1.23&r1=text&r2=text

Patches:
Index: gnue/geas/tools/gcdverifier.c
diff -u gnue/geas/tools/gcdverifier.c:1.22 gnue/geas/tools/gcdverifier.c:1.23
--- gnue/geas/tools/gcdverifier.c:1.22  Tue May 29 12:46:40 2001
+++ gnue/geas/tools/gcdverifier.c       Tue Jun  5 14:44:17 2001
@@ -20,7 +20,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
  
-   $Id: gcdverifier.c,v 1.22 2001/05/29 19:46:40 baumannd Exp $
+   $Id: gcdverifier.c,v 1.23 2001/06/05 21:44:17 ntiffin Exp $
 */
 
 #include <glib.h>
@@ -34,37 +34,6 @@
 
 #include "classdata.h"
 
-/* #define errormsg(fmt,args...) 
error_message_out("error",__FILE__,__PRETTY_FUNCTION__,__LINE__ , fmt , ##args 
) */
-
-/** \brief Message output function
- */
-/* ------------------------------------------------------------------------- *\
- *
-\* ------------------------------------------------------------------------- */
-void
-error_message_out (char *type, char *file, char *func,
-                   unsigned int line, char *msg)
-{
-
-#ifdef DEBUG
-  fprintf (stderr, "%s: ", type);
-  /* where was the error detected - debug mode only, because most users
-     won't be able to do much with it. */
-  if (file != NULL)
-    {
-      fprintf (stderr, "[%s/%d] [%s] ", file, line, func);
-    }
-#else
-  fprintf (stderr, "%s: ", type);
-#endif
-
-  fprintf (stderr, msg);
-  fprintf (stderr, "\n");
-
-  /* write buffers */
-  fflush (NULL);
-}
-
 /* ------------------------------------------------------------------------- *\
  * 
 \* ------------------------------------------------------------------------- */
@@ -80,8 +49,11 @@
   if (argc < 2)
     {
       printf
-        ("Usage: %s [-f] [-version] [file | directory] ... [fileN | 
directoryN]\n",
-         argv[0]);
+        ("Usage: %s [options] [file | directory] ... [fileN | directoryN]\n", 
argv[0]);
+      printf( "Options\n:");
+      printf( "   --verbose  (not implemented)\n");
+      printf( "   --version  (show version number and process files)\n");
+      printf( "   -f         (show full name)\n");
       exit (EXIT_FAILURE);
     }
   count = 1;
@@ -102,7 +74,7 @@
           else if (strcmp (argv[i], "--version") == 0)
             {
               GString *revision;
-              revision = g_string_new ("$Revision: 1.22 $");
+              revision = g_string_new ("$Revision: 1.23 $");
               if (revision->len > 14)
                 {
                   revision = g_string_erase (revision, 0, 11);  /* remove the 
'$Revsion:' part */
@@ -118,7 +90,7 @@
                 ("There is NO warranty; not even for MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.\n");
               g_string_free (revision, TRUE);
             }
-          else if (odl_is_extension (argv[i], "gcd"))       /* is a file with 
an extension of '.gcd. */
+          else if (odl_is_extension (argv[i], "gcd"))       /* has an 
extension of '.gcd. */
             {
               number_entries++;
               fl = odl_filenamelist_add (fl, argv[i]);



reply via email to

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