mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-15 22:09:20 +03:00
Converting #ifdef NANO_EXTRA to #ifndef DISABLE_EXTRA.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4713 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
0636d7b797
commit
d17438bd1d
@ -5,6 +5,8 @@
|
|||||||
* configure.ac: Sort all the disabling options alphabetically.
|
* configure.ac: Sort all the disabling options alphabetically.
|
||||||
* src/{proto.h,files.c,global.c,nano.c,rcfile.c}, configure.ac:
|
* src/{proto.h,files.c,global.c,nano.c,rcfile.c}, configure.ac:
|
||||||
Convert #ifdef ENABLE_MULTIBUFFER to #ifndef DISABLE_MULTIBUFFER.
|
Convert #ifdef ENABLE_MULTIBUFFER to #ifndef DISABLE_MULTIBUFFER.
|
||||||
|
* src/{proto.h,files.c,,nano.c,winio.c}, configure.ac:
|
||||||
|
Convert #ifdef NANO_EXTRA to #ifndef DISABLE_EXTRA.
|
||||||
|
|
||||||
2014-04-02 Benno Schulenberg <bensberg@justemail.net>
|
2014-04-02 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* configure.ac, doc/Makefile.am: Try to build the info documentation
|
* configure.ac, doc/Makefile.am: Try to build the info documentation
|
||||||
|
@ -69,6 +69,7 @@ AS_HELP_STRING([--enable-tiny], [Disable features for the sake of size]))
|
|||||||
if test "x$enable_tiny" = xyes; then
|
if test "x$enable_tiny" = xyes; then
|
||||||
AC_DEFINE(NANO_TINY, 1, [Define this to make the nano executable as small as possible.])
|
AC_DEFINE(NANO_TINY, 1, [Define this to make the nano executable as small as possible.])
|
||||||
AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.])
|
AC_DEFINE(DISABLE_BROWSER, 1, [Define this to disable the built-in file browser.])
|
||||||
|
AC_DEFINE(DISABLE_EXTRA, 1, [Define this to disable extra stuff.])
|
||||||
AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help text display.])
|
AC_DEFINE(DISABLE_HELP, 1, [Define this to disable the help text display.])
|
||||||
AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routines.])
|
AC_DEFINE(DISABLE_JUSTIFY, 1, [Define this to disable the justify routines.])
|
||||||
AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse support.])
|
AC_DEFINE(DISABLE_MOUSE, 1, [Define this to disable the mouse support.])
|
||||||
@ -110,8 +111,8 @@ fi
|
|||||||
|
|
||||||
AC_ARG_ENABLE(extra,
|
AC_ARG_ENABLE(extra,
|
||||||
AS_HELP_STRING([--disable-extra], [Disable extra features, currently only easter eggs]))
|
AS_HELP_STRING([--disable-extra], [Disable extra features, currently only easter eggs]))
|
||||||
if test "x$enable_extra" != xno; then
|
if test "x$enable_extra" = xno; then
|
||||||
AC_DEFINE(NANO_EXTRA, 1, [Define this to enable extra stuff.])
|
AC_DEFINE(DISABLE_EXTRA, 1, [Define this to disable extra stuff.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(help,
|
AC_ARG_ENABLE(help,
|
||||||
|
@ -2223,7 +2223,7 @@ bool do_writeout(bool exiting)
|
|||||||
append_type append = OVERWRITE;
|
append_type append = OVERWRITE;
|
||||||
char *ans;
|
char *ans;
|
||||||
/* The last answer the user typed at the statusbar prompt. */
|
/* The last answer the user typed at the statusbar prompt. */
|
||||||
#ifdef NANO_EXTRA
|
#ifndef DISABLE_EXTRA
|
||||||
static bool did_credits = FALSE;
|
static bool did_credits = FALSE;
|
||||||
#endif
|
#endif
|
||||||
bool retval = FALSE, meta_key = FALSE, func_key = FALSE;
|
bool retval = FALSE, meta_key = FALSE, func_key = FALSE;
|
||||||
@ -2343,7 +2343,7 @@ bool do_writeout(bool exiting)
|
|||||||
fprintf(stderr, "filename is %s\n", answer);
|
fprintf(stderr, "filename is %s\n", answer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NANO_EXTRA
|
#ifndef DISABLE_EXTRA
|
||||||
/* If the current file has been modified, we've pressed
|
/* If the current file has been modified, we've pressed
|
||||||
* Ctrl-X at the edit window to exit, we've pressed "y" at
|
* Ctrl-X at the edit window to exit, we've pressed "y" at
|
||||||
* the "Save modified buffer" prompt to save, we've entered
|
* the "Save modified buffer" prompt to save, we've entered
|
||||||
|
@ -971,6 +971,9 @@ void version(void)
|
|||||||
#ifdef DISABLE_BROWSER
|
#ifdef DISABLE_BROWSER
|
||||||
printf(" --disable-browser");
|
printf(" --disable-browser");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef DISABLE_EXTRA
|
||||||
|
printf(" --disable-extra");
|
||||||
|
#endif
|
||||||
#ifdef DISABLE_HELP
|
#ifdef DISABLE_HELP
|
||||||
printf(" --disable-help");
|
printf(" --disable-help");
|
||||||
#endif
|
#endif
|
||||||
@ -1007,9 +1010,6 @@ void version(void)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf(" --enable-debug");
|
printf(" --enable-debug");
|
||||||
#endif
|
#endif
|
||||||
#ifdef NANO_EXTRA
|
|
||||||
printf(" --enable-extra");
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
printf(" --enable-nanorc");
|
printf(" --enable-nanorc");
|
||||||
#endif
|
#endif
|
||||||
|
@ -841,7 +841,7 @@ void disable_nodelay(void);
|
|||||||
extern const char *regexp_msg;
|
extern const char *regexp_msg;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NANO_EXTRA
|
#ifndef DISABLE_EXTRA
|
||||||
void do_credits(void);
|
void do_credits(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3409,7 +3409,7 @@ void do_replace_highlight(bool highlight, const char *word)
|
|||||||
wattroff(edit, reverse_attr);
|
wattroff(edit, reverse_attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NANO_EXTRA
|
#ifndef DISABLE_EXTRA
|
||||||
#define CREDIT_LEN 57
|
#define CREDIT_LEN 57
|
||||||
#define XLCREDIT_LEN 8
|
#define XLCREDIT_LEN 8
|
||||||
|
|
||||||
@ -3576,4 +3576,4 @@ void do_credits(void)
|
|||||||
|
|
||||||
total_refresh();
|
total_refresh();
|
||||||
}
|
}
|
||||||
#endif /* NANO_EXTRA */
|
#endif /* !DISABLE_EXTRA */
|
||||||
|
Loading…
Reference in New Issue
Block a user