]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Wed, 16 Nov 1994 13:05:38 +0000 (13:05 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 16 Nov 1994 13:05:38 +0000 (13:05 +0000)
src/fmt.c

index 8e591a5050ea8c191ac946199b8fee0a1a15ddfc..748798ad07d18047ab69ee2c10288fab76bf812b 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
 
 /* Written by Ross Paterson <rap@doc.ic.ac.uk>.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
-
 #include <stdio.h>
-
 #include <sys/types.h>
-#include "system.h"
+#include <getopt.h>
 
-#include "getopt.h"
+#include "system.h"
 #include "version.h"
 
 /* The following parameters represent the program's idea of what is
@@ -101,9 +97,9 @@ typedef long COST;
 
 /* Extra ctype(3)-style macros.  */
 
-#define        isopen(c)       (strchr ("([`'\"", c) != NULL)
-#define        isclose(c)      (strchr (")]'\"", c) != NULL)
-#define        isperiod(c)     (strchr (".?!", c) != NULL)
+#define        isopen(c)       (index ("([`'\"", c) != NULL)
+#define        isclose(c)      (index (")]'\"", c) != NULL)
+#define        isperiod(c)     (index (".?!", c) != NULL)
 
 /* Size of a tab stop, for expansion on input and re-introduction on
    output.  */
@@ -387,7 +383,7 @@ main (argc, argv)
 
   if (show_version)
     {
-      printf ("%s\n", version_string);
+      printf ("%s - %s\n", program_name, version_string);
       exit (0);
     }