diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-26 16:42:38 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-04-26 16:42:38 +0000 |
commit | 8f7612bc5ef991b303d8ae21a30732e31fb7099f (patch) | |
tree | e6ec4f4f0c49558fed9b500cb0d82ec4d5d95fa5 | |
parent | d6ac4446c44ffca01c6bb5e92d538dba54551e0b (diff) | |
download | coreutils-8f7612bc5ef991b303d8ae21a30732e31fb7099f.tar.xz |
Remove posixver.h and its uses.
(short_options): New constant, which always supports -S[string].
(COMMON_SHORT_OPTIONS): Remove.
-rw-r--r-- | src/pr.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -319,7 +319,6 @@ #include "hard-locale.h" #include "inttostr.h" #include "mbswidth.h" -#include "posixver.h" #include "stdio-safer.h" #include "strftime.h" #include "xstrtol.h" @@ -740,8 +739,8 @@ enum PAGES_OPTION }; -#define COMMON_SHORT_OPTIONS \ - "-0123456789D:FJN:TW:abcde::fh:i::l:mn::o:rs::tvw:" +static char const short_options[] = + "-0123456789D:FJN:S::TW:abcde::fh:i::l:mn::o:rs::tvw:"; static struct option const long_options[] = { @@ -869,10 +868,6 @@ main (int argc, char **argv) size_t n_digits = 0; size_t n_alloc = 0; - char const *short_options = (posix2_version () < 200112 - ? COMMON_SHORT_OPTIONS "S::" - : COMMON_SHORT_OPTIONS "S:"); - initialize_main (&argc, &argv); program_name = argv[0]; setlocale (LC_ALL, ""); |