1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make cp2utf8 return a pointer to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-02 21:39:34 +02:00 committed by Kalle Olavi Niemitalo
parent 62d321fb31
commit 1668d78998
2 changed files with 2 additions and 2 deletions

View File

@ -741,7 +741,7 @@ cp2u(int from, unsigned char c)
} }
/* This slow and ugly code is used by the terminal utf_8_io */ /* This slow and ugly code is used by the terminal utf_8_io */
unsigned char * const unsigned char *
cp2utf8(int from, int c) cp2utf8(int from, int c)
{ {
from &= ~SYSTEM_CHARSET_FLAG; from &= ~SYSTEM_CHARSET_FLAG;

View File

@ -136,7 +136,7 @@ unicode_val_T cp_to_unicode(int, unsigned char **, unsigned char *);
#endif /* CONFIG_UTF8 */ #endif /* CONFIG_UTF8 */
unicode_val_T cp2u(int, unsigned char); unicode_val_T cp2u(int, unsigned char);
unsigned char *cp2utf8(int, int); const unsigned char *cp2utf8(int, int);
const unsigned char *u2cp_(unicode_val_T, int, enum nbsp_mode); const unsigned char *u2cp_(unicode_val_T, int, enum nbsp_mode);
#define u2cp(u, to) u2cp_(u, to, NBSP_MODE_HACK) #define u2cp(u, to) u2cp_(u, to, NBSP_MODE_HACK)