diff options
Diffstat (limited to 'firmware/bidi.c')
-rw-r--r-- | firmware/bidi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/bidi.c b/firmware/bidi.c index 539c64a127..eb3af22e9c 100644 --- a/firmware/bidi.c +++ b/firmware/bidi.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "rbunicode.h" | 27 | #include "rbunicode.h" |
28 | #include "arabjoin.h" | 28 | #include "arabjoin.h" |
29 | #include "scroll_engine.h" | 29 | #include "scroll_engine.h" |
30 | #include "bidi.h" | ||
30 | 31 | ||
31 | /* #define _HEB_BUFFER_LENGTH (MAX_PATH + LCD_WIDTH/2 + 3 + 2 + 2) * 2 */ | 32 | /* #define _HEB_BUFFER_LENGTH (MAX_PATH + LCD_WIDTH/2 + 3 + 2 + 2) * 2 */ |
32 | #define _HEB_BLOCK_TYPE_ENG 1 | 33 | #define _HEB_BLOCK_TYPE_ENG 1 |
@@ -40,7 +41,7 @@ | |||
40 | #define _isnewline(c) ((c=='\n' || c=='\r') ? 1 : 0) | 41 | #define _isnewline(c) ((c=='\n' || c=='\r') ? 1 : 0) |
41 | #define XOR(a,b) ((a||b) && !(a&&b)) | 42 | #define XOR(a,b) ((a||b) && !(a&&b)) |
42 | 43 | ||
43 | const arab_t * arab_lookup(unsigned short uchar) | 44 | static const arab_t * arab_lookup(unsigned short uchar) |
44 | { | 45 | { |
45 | if (uchar >= 0x621 && uchar <= 0x63a) | 46 | if (uchar >= 0x621 && uchar <= 0x63a) |
46 | return &(jointable[uchar - 0x621]); | 47 | return &(jointable[uchar - 0x621]); |
@@ -53,8 +54,8 @@ const arab_t * arab_lookup(unsigned short uchar) | |||
53 | return 0; | 54 | return 0; |
54 | } | 55 | } |
55 | 56 | ||
56 | void arabjoin(unsigned short * stringprt, int length){ | 57 | static void arabjoin(unsigned short * stringprt, int length) |
57 | 58 | { | |
58 | bool connected = false; | 59 | bool connected = false; |
59 | unsigned short * writeprt = stringprt; | 60 | unsigned short * writeprt = stringprt; |
60 | 61 | ||