Changed --disable-spell to --disable-speller

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@389 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2000-12-06 01:08:10 +00:00
parent b5bb24c949
commit 7b36c52efc
6 changed files with 18 additions and 15 deletions

View File

@ -1,4 +1,7 @@
CVS code -
General
- Changed --disable-spell to --disable speller. The term is
"speller" for -s, so it should be --disable-speller.
- files.c:
write_file()
- Added tmp check to TMP_OPT section (how apropriate).

View File

@ -34,6 +34,6 @@
#undef DISABLE_JUSTIFY
/* Define this to disable the use(full|less) spelling functions */
#undef DISABLE_SPELL
#undef DISABLE_SPELLER

View File

@ -86,7 +86,7 @@
#undef DISABLE_JUSTIFY
/* Define this to disable the use(full|less) spelling functions */
#undef DISABLE_SPELL
#undef DISABLE_SPELLER
/* Define if you have the __argz_count function. */
#undef HAVE___ARGZ_COUNT

8
configure vendored
View File

@ -1322,12 +1322,12 @@ EOF
fi
# Check whether --enable-spell or --disable-spell was given.
if test "${enable_spell+set}" = set; then
enableval="$enable_spell"
# Check whether --enable-speller or --disable-speller was given.
if test "${enable_speller+set}" = set; then
enableval="$enable_speller"
if test x$enableval != xyes; then
cat >> confdefs.h <<\EOF
#define DISABLE_SPELL 1
#define DISABLE_SPELLER 1
EOF
fi

View File

@ -39,10 +39,10 @@ AC_ARG_ENABLE(justify,
AC_DEFINE(DISABLE_JUSTIFY)
fi])
AC_ARG_ENABLE(spell,
AC_ARG_ENABLE(speller,
[ --disable-speller Disables spell checker function],
[if test x$enableval != xyes; then
AC_DEFINE(DISABLE_SPELL)
AC_DEFINE(DISABLE_SPELLER)
fi])
AC_MSG_CHECKING(whether to use slang)

14
nano.c
View File

@ -440,8 +440,8 @@ void version(void)
#ifdef DISABLE_JUSTIFY
printf(" --disable-justify");
#endif
#ifdef DISABLE_SPELL
printf(" --disable-spell");
#ifdef DISABLE_SPELLER
printf(" --disable-speller");
#endif
#ifdef USE_SLANG
printf(" --with-slang");
@ -514,7 +514,7 @@ void nano_small_msg(void)
}
#endif
#if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELL)
#if defined(DISABLE_JUSTIFY) || defined(DISABLE_SPELLER)
void nano_disabled_msg(void)
{
statusbar("Sorry, support for this function has been disabled");
@ -1102,7 +1102,7 @@ void wrap_reset(void)
UNSET(SAMELINEWRAP);
}
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
int do_int_spell_fix(char *word)
{
@ -1170,7 +1170,7 @@ int do_int_spell_fix(char *word)
}
#endif
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
/* Integrated spell checking using 'spell' program */
int do_int_speller(char *tempfile_name)
@ -1300,7 +1300,7 @@ int do_int_speller(char *tempfile_name)
}
#endif
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELL)
#if !defined(NANO_SMALL) && !defined(DISABLE_SPELLER)
/* External spell checking */
int do_alt_speller(char *file_name)
@ -1355,7 +1355,7 @@ int do_spell(void)
#if defined(NANO_SMALL)
nano_small_msg();
return (TRUE);
#elif defined(DISABLE_SPELL)
#elif defined(DISABLE_SPELLER)
nano_disabled_msg();
return (TRUE);
#else