convert "negaite" config option into reversed (INCLUDE_SUSv2)

This commit is contained in:
Denis Vlasenko 2006-12-22 13:56:36 +00:00
parent c5cb38f4d9
commit 0849207ce0
5 changed files with 12 additions and 12 deletions

View File

@ -397,14 +397,14 @@ config EFENCE
endchoice endchoice
config DEBUG_YANK_SUSv2 config INCLUDE_SUSv2
bool "Disable obsolete features removed before SUSv3?" bool "Enable obsolete features removed before SUSv3?"
default y default y
help help
This option will disable backwards compatibility with SuSv2, This option will enable backwards compatibility with SuSv2,
specifically, old-style numeric options ('command -1 <file>') specifically, old-style numeric options ('command -1 <file>')
will not be supported in head, tail, and fold. (Note: should will be supported in head, tail, and fold. (Note: should
yank from renice too.) affect renice too.)
endmenu endmenu

View File

@ -45,7 +45,7 @@ int fold_main(int argc, char **argv)
int i; int i;
int errs = 0; int errs = 0;
if(!ENABLE_DEBUG_YANK_SUSv2) { if (ENABLE_INCLUDE_SUSv2) {
/* Turn any numeric options into -w options. */ /* Turn any numeric options into -w options. */
for (i = 1; i < argc; i++) { for (i = 1; i < argc; i++) {
char const *a = argv[i]; char const *a = argv[i];

View File

@ -47,7 +47,7 @@ int head_main(int argc, char **argv)
int c; int c;
int retval = EXIT_SUCCESS; int retval = EXIT_SUCCESS;
#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD
/* Allow legacy syntax of an initial numeric option without -n. */ /* Allow legacy syntax of an initial numeric option without -n. */
if (argc > 1 && argv[1][0] == '-' if (argc > 1 && argv[1][0] == '-'
&& isdigit(argv[1][1]) && isdigit(argv[1][1])
@ -75,8 +75,8 @@ int head_main(int argc, char **argv)
#endif #endif
case 'n': case 'n':
p = optarg; p = optarg;
#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD
GET_COUNT: GET_COUNT:
#endif #endif
#if !ENABLE_FEATURE_FANCY_HEAD #if !ENABLE_FEATURE_FANCY_HEAD

View File

@ -101,7 +101,7 @@ int tail_main(int argc, char **argv)
char *s, *buf; char *s, *buf;
const char *fmt; const char *fmt;
#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
/* Allow legacy syntax of an initial numeric option without -n. */ /* Allow legacy syntax of an initial numeric option without -n. */
if (argc >= 2 && (argv[1][0] == '+' || argv[1][0] == '-') if (argc >= 2 && (argv[1][0] == '+' || argv[1][0] == '-')
&& isdigit(argv[1][1]) && isdigit(argv[1][1])
@ -121,7 +121,7 @@ int tail_main(int argc, char **argv)
count_bytes = 1; count_bytes = 1;
/* FALLS THROUGH */ /* FALLS THROUGH */
case 'n': case 'n':
#if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_TAIL #if ENABLE_INCLUDE_SUSv2 || ENABLE_FEATURE_FANCY_TAIL
GET_COUNT: GET_COUNT:
#endif #endif
from_top = 0; from_top = 0;

View File

@ -47,7 +47,7 @@ CONFIG_LFS=y
# CONFIG_NO_DEBUG_LIB is not set # CONFIG_NO_DEBUG_LIB is not set
# CONFIG_DMALLOC is not set # CONFIG_DMALLOC is not set
# CONFIG_EFENCE is not set # CONFIG_EFENCE is not set
CONFIG_DEBUG_YANK_SUSv2=y CONFIG_INCLUDE_SUSv2=y
# #
# Installation Options # Installation Options