diff options
author | behdad <behdad> | 2004-05-12 08:17:19 +0000 |
---|---|---|
committer | behdad <behdad> | 2004-05-12 08:17:19 +0000 |
commit | 8bc4b0a145e828a6c9e90d18e4f06900291d1d3a (patch) | |
tree | d56ad81a6b61d5192e2b930f33c644dc8bb36e53 /gen.tab | |
parent | 4400e84cad664c8bd863596aa53f6e3fe0866156 (diff) |
Better handling with Unicode info.
Diffstat (limited to 'gen.tab')
-rw-r--r-- | gen.tab/gen-bidi-type-tab.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gen.tab/gen-bidi-type-tab.c b/gen.tab/gen-bidi-type-tab.c index 7d341dd..5ab0eb2 100644 --- a/gen.tab/gen-bidi-type-tab.c +++ b/gen.tab/gen-bidi-type-tab.c @@ -1,10 +1,10 @@ /* FriBidi * gen-bidi-type-tab.c - generate bidi-type.tab.i for libfribidi * - * $Id: gen-bidi-type-tab.c,v 1.2 2004-05-12 07:06:21 behdad Exp $ + * $Id: gen-bidi-type-tab.c,v 1.3 2004-05-12 08:17:19 behdad Exp $ * $Author: behdad $ - * $Date: 2004-05-12 07:06:21 $ - * $Revision: 1.2 $ + * $Date: 2004-05-12 08:17:19 $ + * $Revision: 1.3 $ * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/gen.tab/gen-bidi-type-tab.c,v $ * * Author: @@ -124,7 +124,6 @@ get_type ( #define table_name "FriBidiCharTypeData" #define macro_name "FRIBIDI_GET_BIDI_TYPE" -#define default_type "LTR" static int table[FRIBIDI_UNICODE_CHARS]; @@ -134,8 +133,6 @@ init_tab ( { register int i; register FriBidiChar c; - char deftype = get_type (default_type), - RTL = get_type ("RTL"), AL = get_type ("AL"); for (i = 0; i < type_names_count; i++) names[i] = 0; @@ -144,7 +141,7 @@ init_tab ( /* initialize table */ for (c = 0; c < FRIBIDI_UNICODE_CHARS; c++) - table[i] = deftype; + table[i] = LTR; for (c = 0x0590; c < 0x0600; c++) table[i] = RTL; for (c = 0xFB1D; c < 0xFB50; c++) @@ -225,7 +222,7 @@ gen_bidi_type_tab ( if (!pack_table (table, FRIBIDI_UNICODE_CHARS, 1, max_depth, 3, names, - "char", table_name, macro_name, stdout)) + "unsigned char", table_name, macro_name, stdout)) die ("error: insufficient memory, decrease max_depth"); printf ("/* End of generated " outputname " */\n"); |