revert unneeded #ifdef fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3791 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
935594b14a
commit
32a3ce4cd2
|
@ -104,11 +104,6 @@ CVS code -
|
||||||
- nano.h:
|
- nano.h:
|
||||||
- Remove the manual disabling of color support if regex.h isn't
|
- Remove the manual disabling of color support if regex.h isn't
|
||||||
found, as configure.ac now handles that. (DLR)
|
found, as configure.ac now handles that. (DLR)
|
||||||
- If DISABLE_WRAPPING is defined, undefine DISABLE_ROOTWRAP, as
|
|
||||||
the latter makes no sense when the former is set, and adjust
|
|
||||||
all #ifdefs that check for both being enabled. (DLR)
|
|
||||||
- If HAVE_REGEX_H isn't defined, undefine ENABLE_COLOR, as the
|
|
||||||
latter is useless without regex support. (DLR)
|
|
||||||
- search.c:
|
- search.c:
|
||||||
replace_regexp()
|
replace_regexp()
|
||||||
- Remove unnecessary casting of c to int. (DLR)
|
- Remove unnecessary casting of c to int. (DLR)
|
||||||
|
|
18
src/nano.h
18
src/nano.h
|
@ -143,23 +143,9 @@
|
||||||
#ifndef NCURSES_MOUSE_VERSION
|
#ifndef NCURSES_MOUSE_VERSION
|
||||||
#define DISABLE_MOUSE 1
|
#define DISABLE_MOUSE 1
|
||||||
#endif
|
#endif
|
||||||
#ifdef DISABLE_WRAPPING
|
|
||||||
/* If both wrapping and justifying are disabled, disable all the code
|
|
||||||
* used by either of the two. */
|
|
||||||
#ifdef DISABLE_JUSTIFY
|
|
||||||
#define DISABLE_WRAPJUSTIFY 1
|
|
||||||
#endif
|
|
||||||
/* If wrapping is disabled, turn the --disable-wrapping-as-root option
|
|
||||||
* off, as it's useless then. */
|
|
||||||
#ifdef DISABLE_ROOTWRAP
|
|
||||||
#undef DISABLE_ROOTWRAP
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* If regex support is disabled, turn color support off, as it's useless
|
#if defined(DISABLE_WRAPPING) && defined(DISABLE_JUSTIFY)
|
||||||
* then. */
|
#define DISABLE_WRAPJUSTIFY 1
|
||||||
#ifndef HAVE_REGEX_H
|
|
||||||
#undef ENABLE_COLOR
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Enumeration types. */
|
/* Enumeration types. */
|
||||||
|
|
Loading…
Reference in New Issue