[FriBidi-commit] fribidi/gen.tab gen-bidi-type-tab.c,1.2,1.3

Behdad Esfahbod behdad at pdx.freedesktop.org
Wed May 12 01:17:21 PDT 2004


Update of /cvs/fribidi/fribidi/gen.tab
In directory pdx:/tmp/cvs-serv19424/gen.tab

Modified Files:
	gen-bidi-type-tab.c 
Log Message:
Better handling with Unicode info.


Index: gen-bidi-type-tab.c
===================================================================
RCS file: /cvs/fribidi/fribidi/gen.tab/gen-bidi-type-tab.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/gen-bidi-type-tab.c	12 May 2004 07:06:21 -0000	1.2
+++ b/gen-bidi-type-tab.c	12 May 2004 08:17:19 -0000	1.3
@@ -124,7 +124,6 @@
 
 #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 @@
 {
   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 @@
 
   /* 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 @@
 
   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");




More information about the FriBidi-Commit mailing list