nano

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

commit a9f7277b1b80c8eddc497641da68f48004bbed0c
parent d13b6d68962409fd058d1e63fc009b7f1644805a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 13 Feb 2020 18:55:33 +0100

tweaks: remove a now-unused helper function

Diffstat:
Msrc/chars.c | 12------------
Msrc/proto.h | 1-
2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/chars.c b/src/chars.c @@ -44,18 +44,6 @@ bool using_utf8(void) } #endif /* ENABLE_UTF8 */ -/* Concatenate two allocated strings, and free the second. */ -char *addstrings(char* str1, size_t len1, char* str2, size_t len2) -{ - str1 = charealloc(str1, len1 + len2 + 1); - str1[len1] = '\0'; - - strncat(&str1[len1], str2, len2); - free(str2); - - return str1; -} - /* This function is equivalent to isalpha() for multibyte characters. */ bool is_alpha_mbchar(const char *c) { diff --git a/src/proto.h b/src/proto.h @@ -203,7 +203,6 @@ char *strip_last_component(const char *path); void utf8_init(void); bool using_utf8(void); #endif -char *addstrings(char* str1, size_t len1, char* str2, size_t len2); bool is_alpha_mbchar(const char *c); bool is_blank_mbchar(const char *c); bool is_cntrl_mbchar(const char *c);