improve version()'s output
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2795 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
69163af499
commit
85c0b3c37e
|
@ -233,6 +233,10 @@ CVS code -
|
||||||
- Add missing N_() around one message, so that it isn't
|
- Add missing N_() around one message, so that it isn't
|
||||||
erroneously translated twice. (DLR)
|
erroneously translated twice. (DLR)
|
||||||
- Remove inaccurate default listed for -Q/--quotestr. (DLR)
|
- Remove inaccurate default listed for -Q/--quotestr. (DLR)
|
||||||
|
version()
|
||||||
|
- Add --enable-utf8 to the displayed compilation options, put
|
||||||
|
the options in alphabetical order, and handle --enable-tiny
|
||||||
|
the same way as all the other options. (DLR)
|
||||||
do_tab()
|
do_tab()
|
||||||
- Remove unneeded variable kbinput. (DLR)
|
- Remove unneeded variable kbinput. (DLR)
|
||||||
do_int_spell_fix()
|
do_int_spell_fix()
|
||||||
|
|
28
src/nano.c
28
src/nano.c
|
@ -1117,18 +1117,6 @@ 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:"));
|
||||||
|
|
||||||
#ifndef ENABLE_NLS
|
|
||||||
printf(" --disable-nls");
|
|
||||||
#endif
|
|
||||||
#ifdef DEBUG
|
|
||||||
printf(" --enable-debug");
|
|
||||||
#endif
|
|
||||||
#ifdef NANO_EXTRA
|
|
||||||
printf(" --enable-extra");
|
|
||||||
#endif
|
|
||||||
#ifdef NANO_SMALL
|
|
||||||
printf(" --enable-tiny");
|
|
||||||
#else
|
|
||||||
#ifdef DISABLE_BROWSER
|
#ifdef DISABLE_BROWSER
|
||||||
printf(" --disable-browser");
|
printf(" --disable-browser");
|
||||||
#endif
|
#endif
|
||||||
|
@ -1141,6 +1129,9 @@ void version(void)
|
||||||
#ifdef DISABLE_MOUSE
|
#ifdef DISABLE_MOUSE
|
||||||
printf(" --disable-mouse");
|
printf(" --disable-mouse");
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef ENABLE_NLS
|
||||||
|
printf(" --disable-nls");
|
||||||
|
#endif
|
||||||
#ifdef DISABLE_OPERATINGDIR
|
#ifdef DISABLE_OPERATINGDIR
|
||||||
printf(" --disable-operatingdir");
|
printf(" --disable-operatingdir");
|
||||||
#endif
|
#endif
|
||||||
|
@ -1150,7 +1141,6 @@ void version(void)
|
||||||
#ifdef DISABLE_TABCOMP
|
#ifdef DISABLE_TABCOMP
|
||||||
printf(" --disable-tabcomp");
|
printf(" --disable-tabcomp");
|
||||||
#endif
|
#endif
|
||||||
#endif /* NANO_SMALL */
|
|
||||||
#ifdef DISABLE_WRAPPING
|
#ifdef DISABLE_WRAPPING
|
||||||
printf(" --disable-wrapping");
|
printf(" --disable-wrapping");
|
||||||
#endif
|
#endif
|
||||||
|
@ -1160,12 +1150,24 @@ void version(void)
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
printf(" --enable-color");
|
printf(" --enable-color");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf(" --enable-debug");
|
||||||
|
#endif
|
||||||
|
#ifdef NANO_EXTRA
|
||||||
|
printf(" --enable-extra");
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
printf(" --enable-multibuffer");
|
printf(" --enable-multibuffer");
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
printf(" --enable-nanorc");
|
printf(" --enable-nanorc");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef NANO_SMALL
|
||||||
|
printf(" --enable-tiny");
|
||||||
|
#endif
|
||||||
|
#ifdef NANO_WIDE
|
||||||
|
printf(" --enable-utf8");
|
||||||
|
#endif
|
||||||
#ifdef USE_SLANG
|
#ifdef USE_SLANG
|
||||||
printf(" --with-slang");
|
printf(" --with-slang");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue