[FriBidi-commit] fribidi/lib bidi-types-list.h, 1.4, 1.5 common.h, 1.6, 1.7 fribidi-bidi-type.c, 1.4, 1.5 fribidi-mirroring.h, 1.2, 1.3

Behdad Esfahbod behdad at pdx.freedesktop.org
Wed May 12 00:06:24 PDT 2004


Update of /cvs/fribidi/fribidi/lib
In directory pdx:/tmp/cvs-serv7241/lib

Modified Files:
	bidi-types-list.h common.h fribidi-bidi-type.c 
	fribidi-mirroring.h 
Log Message:
Updated the gen.tab to work again.  Other fixes here and there.


Index: bidi-types-list.h
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/bidi-types-list.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- a/bidi-types-list.h	7 May 2004 06:30:38 -0000	1.4
+++ b/bidi-types-list.h	12 May 2004 07:06:21 -0000	1.5
@@ -36,6 +36,9 @@
 #ifndef _FRIBIDI_ADD_TYPE
 # define _FRIBIDI_ADD_TYPE(x,y)
 #endif
+#ifndef _FRIBIDI_ADD_ALIAS
+# define _FRIBIDI_ADD_ALIAS(x1,x2)
+#endif
 
 /* Bidi types from the standard. */
 _FRIBIDI_ADD_TYPE (LTR, 'L')	/* Left-To-Right letter */
@@ -58,6 +61,15 @@
 _FRIBIDI_ADD_TYPE (RLO, '+')	/* Right-to-Left Override */
 _FRIBIDI_ADD_TYPE (PDF, '-')	/* Pop Directional Flag */
 
+#ifdef _FRIBIDI_ADD_ALIAS
+/* The followings are just aliases to types, but with the name that appears in
+ * the Unicode database. */
+_FRIBIDI_ADD_ALIAS (L, LTR)
+_FRIBIDI_ADD_ALIAS (R, RTL)
+_FRIBIDI_ADD_ALIAS (B, BS)
+_FRIBIDI_ADD_ALIAS (S, SS)
+#endif /* _FRIBIDI_ADD_ALIAS */
+
 #ifdef _FRIBIDI_PSEUDO_TYPES
 /* The following two types are not official Unicode bidi types, but used for
  * paragraph direction handling only. */

Index: common.h
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/common.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- a/common.h	7 May 2004 06:30:38 -0000	1.6
+++ b/common.h	12 May 2004 07:06:21 -0000	1.7
@@ -107,7 +107,11 @@
 #  define fribidi_malloc (void *) malloc
 # endif	/* !HAVE_STDLIB_H */
 # define fribidi_free free
-#endif /* !fribidi_malloc */
+#else /* fribidi_malloc */
+# ifndef fribidi_free
+#  error You should define fribidi_free too when you define fribidi_malloc.
+# endif /* !fribidi_free */
+#endif /* fribidi_malloc */
 
 /* FRIBIDI_CHUNK_SIZE is the number of bytes in each chunk of memory being
  * allocated for data structure pools. */

Index: fribidi-bidi-type.c
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/fribidi-bidi-type.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- a/fribidi-bidi-type.c	7 May 2004 06:30:38 -0000	1.4
+++ b/fribidi-bidi-type.c	12 May 2004 07:06:21 -0000	1.5
@@ -68,7 +68,7 @@
 )
 {
   if (uch < 0x110000)
-    return prop_to_type[FRIBIDI_GET_TYPE (uch)];
+    return prop_to_type[FRIBIDI_GET_BIDI_TYPE (uch)];
   else
     return FRIBIDI_TYPE_LTR;
   /* Non-Unicode chars */

Index: fribidi-mirroring.h
===================================================================
RCS file: /cvs/fribidi/fribidi/lib/fribidi-mirroring.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/fribidi-mirroring.h	27 Apr 2004 15:23:25 -0000	1.2
+++ b/fribidi-mirroring.h	12 May 2004 07:06:21 -0000	1.3
@@ -42,9 +42,10 @@
 #define fribidi_get_mirror_char FRIBIDI_NAMESPACE(get_mirror_char)
 /* fribidi_get_mirror_char - get mirrored character
  *
- * This function finds the mirrored of a character.  If input character is a
- * mirroring character, the matching mirrored character is put in the output,
- * otherwise the input character itself is put.
+ * This function finds the mirrored equivalent of a character.  If  the input
+ * character is a declared as a mirroring character in the Unicode standard
+ * and has a mirrored equivalent.  The matching mirrored character is put in
+ * the output, otherwise the input character itself is put.
  *
  * Returns: if the character has a mirror or not.
  */




More information about the FriBidi-Commit mailing list