summaryrefslogtreecommitdiffstats
path: root/firmware/common/diacritic.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-10-23 00:40:52 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-23 20:38:59 -0400
commitd78a37676efbc24ce1d5c46b65c6caf45ff3bc27 (patch)
treec5c503b402c8fb1ec6dea955b6ac0e561ee879ba /firmware/common/diacritic.c
parenta8aa8403ad5041820229bc41b73dc934b77311ca (diff)
downloadrockbox-d78a37676efbc24ce1d5c46b65c6caf45ff3bc27.tar.gz
rockbox-d78a37676efbc24ce1d5c46b65c6caf45ff3bc27.tar.bz2
rockbox-d78a37676efbc24ce1d5c46b65c6caf45ff3bc27.zip
ClipPlus BOOTLOADER DONT FIT!
REMOVED FROM ALL NATIVE BOOTLOADERS: finish removing the text scrolling pare down printf to a minimal subset (%c %s %l %d %u and %x(%p)) remove diacritic and rtl language support GOAL 134000 START 135305 CURRENT 133700 SUCCESS! (ASSUMING IT WORKS -- UNESTED) Change-Id: Ic3f6ac1dc260578f581ee53458b3e5bb47d313ec
Diffstat (limited to 'firmware/common/diacritic.c')
-rw-r--r--firmware/common/diacritic.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/common/diacritic.c b/firmware/common/diacritic.c
index 563028cab8..92c2400203 100644
--- a/firmware/common/diacritic.c
+++ b/firmware/common/diacritic.c
@@ -194,7 +194,7 @@ static const struct diac_range diac_ranges[] =
};
#define MRU_MAX_LEN 32
-
+#ifndef BOOTLOADER
bool is_diacritic(const unsigned short char_code, bool *is_rtl)
{
static uint8_t mru_len = 0;
@@ -248,4 +248,12 @@ Found:
return (char_code < diac->base + (info & DIAC_CNT));
}
-
+#else /*BOOTLOADER*/
+inline bool is_diacritic(const unsigned short char_code, bool *is_rtl)
+{
+ (void)char_code;
+ if (is_rtl)
+ *is_rtl = false;
+ return false;
+}
+#endif /* ndef BOOTLOADER*/