diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-07 20:41:18 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-07 20:41:18 +0000 |
| commit | 56058c7213f281c61601f12cc0cdbcbf3b425a08 (patch) | |
| tree | 6937891a9f05318374962cb52b78977358681386 | |
| parent | 62321ed0bd7d8d5879a9caad3d8f642dbe876033 (diff) | |
| download | rockbox-56058c7213f281c61601f12cc0cdbcbf3b425a08.zip rockbox-56058c7213f281c61601f12cc0cdbcbf3b425a08.tar.gz rockbox-56058c7213f281c61601f12cc0cdbcbf3b425a08.tar.bz2 rockbox-56058c7213f281c61601f12cc0cdbcbf3b425a08.tar.xz | |
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
| -rw-r--r-- | apps/plugin.h | 2 | ||||
| -rw-r--r-- | firmware/SOURCES | 2 | ||||
| -rw-r--r-- | firmware/common/diacritic.c (renamed from firmware/drivers/diacritic.c) | 2 | ||||
| -rw-r--r-- | firmware/include/diacritic.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 464a581..31c8743 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -865,7 +865,7 @@ struct plugin_api { the API gets incompatible */ #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 }; diff --git a/firmware/SOURCES b/firmware/SOURCES index dd1575a..719fc80 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -97,7 +97,7 @@ drivers/lcd-16bit-vert.c drivers/lcd-16bit.c #endif #endif /* LCD_DEPTH */ -drivers/diacritic.c +common/diacritic.c #endif /* HAVE_LCD_BITMAP */ #ifdef HAVE_REMOTE_LCD diff --git a/firmware/drivers/diacritic.c b/firmware/common/diacritic.c index ff40b19..aa2726c 100644 --- a/firmware/drivers/diacritic.c +++ b/firmware/common/diacritic.c @@ -193,7 +193,7 @@ static const struct diac_range diac_ranges[] = static unsigned short mru_len = 0; 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; const struct diac_range *diac; diff --git a/firmware/include/diacritic.h b/firmware/include/diacritic.h index 052be7f..52ce6b0 100644 --- a/firmware/include/diacritic.h +++ b/firmware/include/diacritic.h @@ -26,5 +26,5 @@ * Sets is_rtl (if it's not NULL) to whether the character * 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 |