nano

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

commit b6909d37379273599e9b23b654b1d8c9f62ae317
parent 823d79b36cd9aca985a1b19a03d25774b9cd8c50
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Mar 2021 12:18:02 +0100

build: fix compilation when configured with --enable-tiny

Commit 0c1bf429 from last week added two calls to digits()
for --constantshow.

Diffstat:
Msrc/prototypes.h | 2--
Msrc/utils.c | 2--
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/prototypes.h b/src/prototypes.h @@ -532,9 +532,7 @@ void complete_a_word(void); void get_homedir(void); const char *tail(const char *path); char *concatenate(const char *path, const char *name); -#ifdef ENABLE_LINENUMBERS int digits(ssize_t n); -#endif bool parse_num(const char *str, ssize_t *result); bool parse_line_column(const char *str, ssize_t *line, ssize_t *column); void recode_NUL_to_LF(char *string, size_t length); diff --git a/src/utils.c b/src/utils.c @@ -76,7 +76,6 @@ char *concatenate(const char *path, const char *name) return joined; } -#ifdef ENABLE_LINENUMBERS /* Return the number of digits that the given integer n takes up. */ int digits(ssize_t n) { @@ -106,7 +105,6 @@ int digits(ssize_t n) } } } -#endif /* Read an integer from the given string. If it parses okay, * store it in *result and return TRUE; otherwise, return FALSE. */