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

utf8_to_unicode: Let the end parameter point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-18 17:48:51 +02:00 committed by Kalle Olavi Niemitalo
parent bb340aae06
commit 2ac31b6144
2 changed files with 2 additions and 2 deletions

View File

@ -632,7 +632,7 @@ unicode_fold_label_case(unicode_val_T c)
}
inline unicode_val_T
utf8_to_unicode(unsigned char **string, unsigned char *end)
utf8_to_unicode(unsigned char **string, const unsigned char *end)
{
unsigned char *str = *string;
unicode_val_T u;

View File

@ -140,7 +140,7 @@ unsigned char *utf8_step_backward(unsigned char *, unsigned char *,
inline int unicode_to_cell(unicode_val_T);
unicode_val_T unicode_fold_label_case(unicode_val_T);
inline int strlen_utf8(unsigned char **);
inline unicode_val_T utf8_to_unicode(unsigned char **, unsigned char *);
inline unicode_val_T utf8_to_unicode(unsigned char **, const unsigned char *);
unicode_val_T cp_to_unicode(int, unsigned char **, unsigned char *);
#endif /* CONFIG_UTF8 */