FS#11187 - diacritic.c is in 'drivers' but it does not belong there

- Move diacritic.c to firmware/common
- The function is_diacritic returns bool now


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25526 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-04-07 20:41:18 +00:00
parent 62321ed0bd
commit 56058c7213
4 changed files with 4 additions and 4 deletions

View file

@ -865,7 +865,7 @@ struct plugin_api {
the API gets incompatible */ the API gets incompatible */
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
int (*is_diacritic)(const unsigned short char_code, bool *is_rtl); bool (*is_diacritic)(const unsigned short char_code, bool *is_rtl);
#endif #endif
}; };

View file

@ -97,7 +97,7 @@ drivers/lcd-16bit-vert.c
drivers/lcd-16bit.c drivers/lcd-16bit.c
#endif #endif
#endif /* LCD_DEPTH */ #endif /* LCD_DEPTH */
drivers/diacritic.c common/diacritic.c
#endif /* HAVE_LCD_BITMAP */ #endif /* HAVE_LCD_BITMAP */
#ifdef HAVE_REMOTE_LCD #ifdef HAVE_REMOTE_LCD

View file

@ -193,7 +193,7 @@ static const struct diac_range diac_ranges[] =
static unsigned short mru_len = 0; static unsigned short mru_len = 0;
static unsigned short diacritic_mru[MRU_MAX_LEN]; static unsigned short diacritic_mru[MRU_MAX_LEN];
int is_diacritic(const unsigned short char_code, bool *is_rtl) bool is_diacritic(const unsigned short char_code, bool *is_rtl)
{ {
unsigned short mru, i; unsigned short mru, i;
const struct diac_range *diac; const struct diac_range *diac;

View file

@ -26,5 +26,5 @@
* Sets is_rtl (if it's not NULL) to whether the character * Sets is_rtl (if it's not NULL) to whether the character
* belongs to an RTL language. * belongs to an RTL language.
*/ */
int is_diacritic(const unsigned short char_code, bool *is_rtl); bool is_diacritic(const unsigned short char_code, bool *is_rtl);
#endif #endif