nano

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

commit ad344e9d1d4c1d04582cdb0ada46dfbeb5ec52e0
parent 6827146dd251743c32b02230f3081ce6959e9c00
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 29 Jul 2006 14:37:47 +0000

make bad_mbchar a static const char* const in chars.c, as its value
doesn't change


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3823 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/chars.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -49,6 +49,8 @@ CVS code - UTF-8 support. Changes to main() and configure.ac. (DLR) - Fix punctuation relating to "i.e." in various comments and documentation. (Benno Schulenberg and DLR) + - Make bad_mbchar a static const char* const in chars.c, as its + value doesn't change. (DLR) - browser.c: do_browser() - Refactor the mouse support, modeling it after do_mouse() for diff --git a/src/chars.c b/src/chars.c @@ -41,7 +41,7 @@ static const wchar_t bad_wchar = 0xFFFD; * Unicode FFFD (Replacement Character), unless we're * determining if it's a control character or searching for a * match to it. */ -static const char *bad_mbchar = "\xEF\xBF\xBD"; +static const char *const bad_mbchar = "\xEF\xBF\xBD"; static const int bad_mbchar_len = 3; /* Enable UTF-8 support. */