diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-04-05 12:31:26 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-04-05 13:40:04 +0200 |
commit | a45b3a21c67476c703ddd5d5b4755364671c26c1 (patch) | |
tree | a755086e3fa8dd4a11d044f7765875b6f6ad0e19 /source/fitz/bidi-impl.h | |
parent | 353a05d9e8e8023e1c3c24816f712bdcb05502ca (diff) | |
download | mupdf-a45b3a21c67476c703ddd5d5b4755364671c26c1.tar.xz |
Clean up bidi enum names.
And use the same enum for both the internal bidi code and the layout code.
Diffstat (limited to 'source/fitz/bidi-impl.h')
-rw-r--r-- | source/fitz/bidi-impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/fitz/bidi-impl.h b/source/fitz/bidi-impl.h index 0de3458b..e9a5b3b4 100644 --- a/source/fitz/bidi-impl.h +++ b/source/fitz/bidi-impl.h @@ -64,6 +64,14 @@ enum BDI_N = BDI_ON /* alias, where ON, WS and S are treated the same */ }; +typedef int fz_bidi_level; /* Note: Max level is 125 */ +typedef uint8_t fz_bidi_chartype; + +enum +{ + BIDI_LEVEL_MAX = 125 /* Updated for 6.3.0 */ +}; + void fz_bidi_resolve_neutrals(fz_bidi_level baselevel, fz_bidi_chartype *pcls, const fz_bidi_level *plevel, int cch); void fz_bidi_resolve_implicit(const fz_bidi_chartype *pcls, fz_bidi_level *plevel, int cch); void fz_bidi_resolve_weak(fz_context *ctx, fz_bidi_level baselevel, fz_bidi_chartype *pcls, fz_bidi_level *plevel, int cch); |