mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 14:20:46 +03:00
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:
parent
06aca1cc9e
commit
cd6f12d53e
@ -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).
|
||||
|
@ -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
25
nano.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user