From c2617dc4ed76eceaefd4ca39c0159498eb5e9762 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Sat, 28 Nov 2009 17:07:57 +0000 Subject: Diacritic display enhancements - Use the fact that unicode code currently does not support chars above 0xffff (see utf8decode()), and change diacritic database's char code type to unsigned short from int. Also comment out database entries above unsupported range. - Use const when possible. - Iterate over buffer using the buffer's pointer, thus avoiding usage of some variables, and avoiding multiple access to the same array item. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23776 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/diacritic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/include/diacritic.h') diff --git a/firmware/include/diacritic.h b/firmware/include/diacritic.h index ebcb3bb79a..5bc275ab9b 100644 --- a/firmware/include/diacritic.h +++ b/firmware/include/diacritic.h @@ -22,5 +22,5 @@ #define _DIACRITIC_H_ #include "system.h" -int is_diacritic(unsigned short char_code, bool *is_rtl); +int is_diacritic(const unsigned short char_code, bool *is_rtl); #endif -- cgit v1.2.3