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
master
David Lawrence Ramsey 2006-07-29 14:37:47 +00:00
parent 6827146dd2
commit ad344e9d1d
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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. */