Moved code to define all disabled when --tiny is used from nano.h to configure.in

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@470 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2001-01-11 15:08:06 +00:00
parent 06aca1cc9e
commit cd6f12d53e
4 changed files with 173 additions and 172 deletions

View File

@ -5,8 +5,9 @@ General
shoudl be left out in that circumstance. Saves at least 5k.
- Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
back.
- Changed nano.h to automatically define 5 DISABLE varibles when
NANO_SMALL (enable-tiny) is requested at configure.
- Changed configure.in to automatically define the 5 DISABLE
varibles when NANO_SMALL (enable-tiny) is requested at
configure.
- configure.in:
- Fix for _use_keypad check breaking slang support (Christian
Weisgerber).

310
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,11 @@ AC_ARG_ENABLE(tiny,
(currently disables detailed help and i18n)],
[if test x$enableval = xyes; then
AC_DEFINE(NANO_SMALL) tiny_support=yes
AC_DEFINE(DISABLE_TABCOMP)
AC_DEFINE(DISABLE_SPELLER)
AC_DEFINE(DISABLE_HELP)
AC_DEFINE(DISABLE_JUSTIFY)
AC_DEFINE(DISABLE_BROWSER)
fi])
AC_ARG_ENABLE(extra,

25
nano.h
View File

@ -30,31 +30,6 @@
#ifndef NANO_H
#define NANO_H 1
/* Define this to make the nano executable as small as possible */
#ifdef NANO_SMALL
#ifndef DISABLE_TABCOMP
#define DISABLE_TABCOMP 1
#endif
#ifndef DISABLE_JUSTIFY
#define DISABLE_JUSTIFY 1
#endif
#ifndef DISABLE_SPELLER
#define DISABLE_SPELLER 1
#endif
#ifndef DISABLE_HELP
#define DISABLE_HELP 1
#endif
#ifndef DISABLE_BROWSER
#define DISABLE_BROWSER 1
#endif
#endif /* NANO_SMALL */
/* Macros for the flags int... */
#define SET(bit) flags |= bit
#define UNSET(bit) flags &= ~bit