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-d3aeb78583b8master
parent
06aca1cc9e
commit
cd6f12d53e
|
@ -5,8 +5,9 @@ General
|
||||||
shoudl be left out in that circumstance. Saves at least 5k.
|
shoudl be left out in that circumstance. Saves at least 5k.
|
||||||
- Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
|
- Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
|
||||||
back.
|
back.
|
||||||
- Changed nano.h to automatically define 5 DISABLE varibles when
|
- Changed configure.in to automatically define the 5 DISABLE
|
||||||
NANO_SMALL (enable-tiny) is requested at configure.
|
varibles when NANO_SMALL (enable-tiny) is requested at
|
||||||
|
configure.
|
||||||
- configure.in:
|
- configure.in:
|
||||||
- Fix for _use_keypad check breaking slang support (Christian
|
- Fix for _use_keypad check breaking slang support (Christian
|
||||||
Weisgerber).
|
Weisgerber).
|
||||||
|
|
|
@ -19,6 +19,11 @@ AC_ARG_ENABLE(tiny,
|
||||||
(currently disables detailed help and i18n)],
|
(currently disables detailed help and i18n)],
|
||||||
[if test x$enableval = xyes; then
|
[if test x$enableval = xyes; then
|
||||||
AC_DEFINE(NANO_SMALL) tiny_support=yes
|
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])
|
fi])
|
||||||
|
|
||||||
AC_ARG_ENABLE(extra,
|
AC_ARG_ENABLE(extra,
|
||||||
|
|
25
nano.h
25
nano.h
|
@ -30,31 +30,6 @@
|
||||||
#ifndef NANO_H
|
#ifndef NANO_H
|
||||||
#define NANO_H 1
|
#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... */
|
/* Macros for the flags int... */
|
||||||
#define SET(bit) flags |= bit
|
#define SET(bit) flags |= bit
|
||||||
#define UNSET(bit) flags &= ~bit
|
#define UNSET(bit) flags &= ~bit
|
||||||
|
|
Loading…
Reference in New Issue