diff options
author | behdad <behdad> | 2002-03-24 21:24:12 +0000 |
---|---|---|
committer | behdad <behdad> | 2002-03-24 21:24:12 +0000 |
commit | 8059d3854e2f0544d345fd6fc838fdcdecf36d94 (patch) | |
tree | 0ba6410399289d19661b4d8b91b1cb7440351921 | |
parent | d9c5db8b1c231ad4e769923aa2d785a36c1d80ac (diff) |
Fixed a small bug.rel-0-10-2
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | fribidi.c | 2 | ||||
-rw-r--r-- | fribidi_env.c | 8 | ||||
-rw-r--r-- | fribidi_env.h | 2 |
5 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,6 @@ +2002-03-25 Behdad Esfahbod <behdad@bamdad.org> + * fribidi.c: Fixed a bug introduced in adding L3 rule. + 2002-03-16 Behdad Esfahbod <behdad@bamdad.org> * Applied the FriBidiEnv patch from Omer Zak dated 2002-02-24, updated it with to reflect the new changes. @@ -30,8 +30,6 @@ Implementation issues: BiDi algorithms issues: -* - General issues: * Better documentation. @@ -1253,7 +1253,7 @@ fribidi_log2vis ( FriBidiEnv* fribidienv, { FriBidiCharType this_type; - this_type = fribidi_get_type (NULL, visual_str[i]); + this_type = fribidi_get_type (NULL, str[i]); if (is_nsm_seq && this_type != FRIBIDI_TYPE_NSM) { if (visual_str) diff --git a/fribidi_env.c b/fribidi_env.c index 20f3733..19c8b38 100644 --- a/fribidi_env.c +++ b/fribidi_env.c @@ -228,9 +228,13 @@ void fribidi_set_reorder_nsm (FriBidiEnv* fbenv, boolean reorder) *----------------------------------------------------------------------*/ boolean fribidi_debug_status (FriBidiEnv* fbenv) { +#ifdef DEBUG VALIDATE_FRIBIDIENV(fbenv); return(0 != (fbenv->iFlags & FRIBIDIENV_DEBUG_MODE) ? TRUE : FALSE); +#else /* DEBUG */ + return FALSE; +#endif /* DEBUG */ } /*====================================================================== @@ -249,9 +253,9 @@ boolean fribidi_set_debug (FriBidiEnv* fbenv, boolean debug) else { fbenv->iFlags &= (~FRIBIDIENV_DEBUG_MODE); } - return(debug); + return debug; #else /* DEBUG */ - return(FALSE); + return FALSE; #endif /* DEBUG */ } diff --git a/fribidi_env.h b/fribidi_env.h index 3852af8..9815afb 100644 --- a/fribidi_env.h +++ b/fribidi_env.h @@ -255,7 +255,7 @@ extern FriBidiEnv fribidi_global_env; * For environments which need speed/code size optimization. *----------------------------------------------------------------------*/ #ifdef NO_FRIBIDIENV_VALIDATION -#define VALIDATE_FRIBIDIENV(env) +#define VALIDATE_FRIBIDIENV(env) while (0) {} /* Null definition, for environments, which guarantee valid ** environments, and need the efficiency. */ |