Printing the correct set of configuration options.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
fc55756378
Коммит
2d83e8d41f
@ -1,3 +1,6 @@
|
|||||||
|
2014-04-05 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/nano.c (version): Print the correct configuration options.
|
||||||
|
|
||||||
2014-04-05 Mike Frysinger <vapier@gentoo.org>
|
2014-04-05 Mike Frysinger <vapier@gentoo.org>
|
||||||
* src/nano.c (do_input): Reload possibly freed function pointer.
|
* src/nano.c (do_input): Reload possibly freed function pointer.
|
||||||
|
|
||||||
|
53
src/nano.c
53
src/nano.c
@ -968,9 +968,48 @@ void version(void)
|
|||||||
_(" Email: nano@nano-editor.org Web: http://www.nano-editor.org/"));
|
_(" Email: nano@nano-editor.org Web: http://www.nano-editor.org/"));
|
||||||
printf(_("\n Compiled options:"));
|
printf(_("\n Compiled options:"));
|
||||||
|
|
||||||
|
#ifdef NANO_TINY
|
||||||
|
printf(" --enable-tiny");
|
||||||
|
#ifndef DISABLE_BROWSER
|
||||||
|
printf(" --enable-browser");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_COLOR
|
||||||
|
printf(" --enable-color");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_EXTRA
|
||||||
|
printf(" --enable-extra");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_HELP
|
||||||
|
printf(" --enable-help");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_JUSTIFY
|
||||||
|
printf(" --enable-justify");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_MOUSE
|
||||||
|
printf(" --enable-mouse");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_MULTIBUFFER
|
||||||
|
printf(" --enable-multibuffer");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_OPERATINGDIR
|
||||||
|
printf(" --enable-operatingdir");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_SPELLER
|
||||||
|
printf(" --enable-speller");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_TABCOMP
|
||||||
|
printf(" --enable-tabcomp");
|
||||||
|
#endif
|
||||||
|
#ifndef DISABLE_WRAPPING
|
||||||
|
printf(" --enable-wrapping");
|
||||||
|
#endif
|
||||||
|
#else /* !NANO_TINY */
|
||||||
#ifdef DISABLE_BROWSER
|
#ifdef DISABLE_BROWSER
|
||||||
printf(" --disable-browser");
|
printf(" --disable-browser");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef DISABLE_COLOR
|
||||||
|
printf(" --disable-color");
|
||||||
|
#endif
|
||||||
#ifdef DISABLE_EXTRA
|
#ifdef DISABLE_EXTRA
|
||||||
printf(" --disable-extra");
|
printf(" --disable-extra");
|
||||||
#endif
|
#endif
|
||||||
@ -986,9 +1025,6 @@ void version(void)
|
|||||||
#ifdef DISABLE_MULTIBUFFER
|
#ifdef DISABLE_MULTIBUFFER
|
||||||
printf(" --disable-multibuffer");
|
printf(" --disable-multibuffer");
|
||||||
#endif
|
#endif
|
||||||
#ifndef ENABLE_NLS
|
|
||||||
printf(" --disable-nls");
|
|
||||||
#endif
|
|
||||||
#ifdef DISABLE_OPERATINGDIR
|
#ifdef DISABLE_OPERATINGDIR
|
||||||
printf(" --disable-operatingdir");
|
printf(" --disable-operatingdir");
|
||||||
#endif
|
#endif
|
||||||
@ -1001,23 +1037,24 @@ void version(void)
|
|||||||
#ifdef DISABLE_WRAPPING
|
#ifdef DISABLE_WRAPPING
|
||||||
printf(" --disable-wrapping");
|
printf(" --disable-wrapping");
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* !NANO_TINY */
|
||||||
|
|
||||||
#ifdef DISABLE_ROOTWRAPPING
|
#ifdef DISABLE_ROOTWRAPPING
|
||||||
printf(" --disable-wrapping-as-root");
|
printf(" --disable-wrapping-as-root");
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_COLOR
|
|
||||||
printf(" --enable-color");
|
|
||||||
#endif
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf(" --enable-debug");
|
printf(" --enable-debug");
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
printf(" --enable-nanorc");
|
printf(" --enable-nanorc");
|
||||||
#endif
|
#endif
|
||||||
#ifdef NANO_TINY
|
#ifndef ENABLE_NLS
|
||||||
printf(" --enable-tiny");
|
printf(" --disable-nls");
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_UTF8
|
#ifdef ENABLE_UTF8
|
||||||
printf(" --enable-utf8");
|
printf(" --enable-utf8");
|
||||||
|
#else
|
||||||
|
printf(" --disable-utf8");
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_SLANG
|
#ifdef USE_SLANG
|
||||||
printf(" --with-slang");
|
printf(" --with-slang");
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user