nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit accd17c249daaa4f4a8a9e401626de80608695a4
parent e8eb30cad68132ba080a093fab4d937c0a7866cc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 15 Jun 2019 14:15:42 +0200

tweaks: remove four unneeded pre-processor directives

The parse_next_word() function is not being used by the history code
anymore since commit ecd18c16, more than two years ago.

Diffstat:
Msrc/rcfile.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -186,9 +186,7 @@ void jot_error(const char *msg, ...) error->data = nmalloc(length + 1); sprintf(error->data, "%s", textbuf); } -#endif /* ENABLE_NANORC */ -#if defined(ENABLE_NANORC) || defined(ENABLE_HISTORIES) /* Parse the next word from the string, null-terminate it, and return * a pointer to the first character after the null terminator. The * returned pointer will point to '\0' if we hit the end of the line. */ @@ -208,9 +206,7 @@ char *parse_next_word(char *ptr) return ptr; } -#endif /* ENABLE_NANORC || ENABLE_HISTORIES */ -#ifdef ENABLE_NANORC /* Parse an argument, with optional quotes, after a keyword that takes * one. If the next word starts with a ", we say that it ends with the * last " of the line. Otherwise, we interpret it as usual, so that the