]> granicus.if.org Git - fribidi/commitdiff
Redundant and compatibility stuff removed. A few macros added, to compile
authorbehdad <behdad>
Wed, 9 Jun 2004 14:59:21 +0000 (14:59 +0000)
committerbehdad <behdad>
Wed, 9 Jun 2004 14:59:21 +0000 (14:59 +0000)
AbiWord from CVS.  The most important is the FRIBIDI_TYPE_PRIVATE in
fribidi-bidi-types.h

28 files changed:
bin/fribidi-main.c
charset/Headers.mk
charset/fribidi-char-sets-cap-rtl.h
charset/fribidi-char-sets-cp1255.h
charset/fribidi-char-sets-cp1256.h
charset/fribidi-char-sets-iso8859-6.h
charset/fribidi-char-sets-iso8859-8.h
charset/fribidi-char-sets-list.h
charset/fribidi-char-sets-utf8.h
charset/fribidi-char-sets.c
charset/fribidi-char-sets.h
configure.ac
doc/Makefile.am
lib/common.h
lib/debug.h
lib/fribidi-bidi-type.c
lib/fribidi-bidi-type.h
lib/fribidi-bidi-types-list.h
lib/fribidi-bidi-types.h
lib/fribidi-bidi.h
lib/fribidi-common.h
lib/fribidi-mirroring.c
lib/fribidi-mirroring.h
lib/fribidi-types.h
lib/fribidi.c
lib/fribidi.def
lib/fribidi.h
lib/mem.h

index 97a1d41def4fc766c479bba2b409029cbb26ec9b..3d255ecac6be99fdeb1e457a08f334714e119607 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-main.c - command line program for libfribidi
  *
- * $Id: fribidi-main.c,v 1.8 2004-06-09 08:56:53 behdad Exp $
+ * $Id: fribidi-main.c,v 1.9 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-09 08:56:53 $
- * $Revision: 1.8 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.9 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/bin/fribidi-main.c,v $
  *
  * Authors:
@@ -185,6 +185,19 @@ version (
   exit (0);
 }
 
+char *my_fribidi_strdup (char *s)
+{
+  char *m;
+
+  m = fribidi_malloc (strlen (s) + 1);
+  if (!m)
+    return NULL;
+
+  strcpy(m, s);
+
+  return m;
+}
+
 int
 main (
   int argc,
@@ -306,14 +319,16 @@ main (
          do_break = false;
          break;
        case 'c':
-         char_set = strdup (optarg);
+         char_set = my_fribidi_strdup (optarg);
+         if (!char_set)
+           die1 ("memory allocation failed for char_set!");
          break;
 #if !FRIBIDI_MAIN_USE_ICONV_H
        case CAPRTL:
          char_set = "CapRTL";
          break;
        case CHARSETDESC:
-         char_set = strdup (optarg);
+         char_set = optarg;
          char_set_num = fribidi_parse_charset (char_set);
          if (!char_set_num)
            die2 ("unrecognized character set `%s'\n", char_set);
index 751a81c3a7c7d5d137beaa7fa45926268dfa60d3..8fb3dbf7407ec9ba9a83e43f6e6e537ca330c059 100644 (file)
@@ -1,12 +1,6 @@
 libfribidi_char_sets_la_headers = \
-               fribidi-char-sets-cap-rtl.h \
-               fribidi-char-sets-cp1255.h \
-               fribidi-char-sets-cp1256.h \
                fribidi-char-sets.h \
-               fribidi-char-sets-iso8859-6.h \
-               fribidi-char-sets-iso8859-8.h \
-               fribidi-char-sets-list.h \
-               fribidi-char-sets-utf8.h
+               fribidi-char-sets-list.h
 
 libfribidi_char_sets_la_symbols = \
                fribidi_charset_to_unicode \
index ebcae453a1938ea0be0db1ac42c19b555ee56a9d..1f5882be5c764714d9b8b72a36f48a4a3a7ba206 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-cap-rtl.h - CapRTL character set conversion routines
  *
- * $Id: fribidi-char-sets-cap-rtl.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-cap-rtl.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-cap-rtl.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_cap_rtl "CapRTL"
 #define fribidi_char_set_title_cap_rtl "CapRTL (Test)"
 
index 011c9137ec6b2a69d72f25e1bcaeee6c309a302f..ee401c6d03f72e1d31da688f711c07da8bfe4251 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-cp1255.h - CP1255 character set conversion routines
  *
- * $Id: fribidi-char-sets-cp1255.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-cp1255.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-cp1255.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_cp1255 "CP1255"
 #define fribidi_char_set_title_cp1255 "CP1255 (MS Hebrew/Yiddish)"
 #define fribidi_char_set_desc_cp1255 NULL
index ecf26057932101dc660e386f7e32ddfd03b611d3..54a7216a51c742354bbb97a607980667752b20cd 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-cp1256.h - CP1256 character set conversion routines
  *
- * $Id: fribidi-char-sets-cp1256.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-cp1256.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-cp1256.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_cp1256 "CP1256"
 #define fribidi_char_set_title_cp1256 "CP1256 (MS Arabic)"
 #define fribidi_char_set_desc_cp1256 NULL
index 159ccbd0c7a71e6cbdf9db77970525e3672de10e..8fc5a1d2338de03b46a0296cdd10720508176ade 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-iso8859-6.h - ISO8859-6 character set conversion routines
  *
- * $Id: fribidi-char-sets-iso8859-6.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-iso8859-6.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-iso8859-6.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_iso8859_6 "ISO8859-6"
 #define fribidi_char_set_title_iso8859_6 "ISO8859-6 (Arabic)"
 #define fribidi_char_set_desc_iso8859_6 NULL
index ccc7b16499e44ebf803a89d5a5761f25ef5a8cd6..9da89b99be404bbfd2a2cfd33885a4e9afb74c3c 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-iso8859-8.h - ISO8859-8 character set conversion routines
  *
- * $Id: fribidi-char-sets-iso8859-8.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-iso8859-8.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-iso8859-8.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_iso8859_8 "ISO8859-8"
 #define fribidi_char_set_title_iso8859_8 "ISO8859-8 (Hebrew)"
 #define fribidi_char_set_desc_iso8859_8 NULL
index a7b02692124565d418df95ca9e39f7bffb28ef92..dcf008799e68da523f840388c0a05bf72356e9cf 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef __C2MAN__
+#ifndef __FRIBIDI_DOC
 /* FriBidi
  * fribidi-char-sets-list.h - list of supported character sets
  *
- * $Id: fribidi-char-sets-list.h,v 1.2 2004-04-27 16:47:22 behdad Exp $
+ * $Id: fribidi-char-sets-list.h,v 1.3 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-27 16:47:22 $
- * $Revision: 1.2 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.3 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-list.h,v $
  *
  * Author:
@@ -35,7 +35,7 @@
 
 /* The order of types in this list should not be important at compile time,
  * but apparently it should not be changed after compilation! */
-#endif /* !__C2MAN__ */
+#endif /* !__FRIBIDI_DOC */
 #ifdef _FRIBIDI_ADD_CHAR_SET
 # define _FRIBIDI_ADD_CHAR_SET_OTHERS _FRIBIDI_ADD_CHAR_SET
 # define _FRIBIDI_ADD_CHAR_SET_ONE2ONE _FRIBIDI_ADD_CHAR_SET
@@ -55,6 +55,6 @@ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1256, cp1256)                /* CP1256 (MS Arabic) */
 # undef _FRIBIDI_ADD_CHAR_SET_ONE2ONE
 #endif /* _FRIBIDI_ADD_CHAR_SET */
 
-#ifndef __C2MAN__
+#ifndef __FRIBIDI_DOC
 /* *INDENT-ON* */
-#endif /* !__C2MAN__ */
+#endif /* !__FRIBIDI_DOC */
index aaf9a536099ce4d12c09cac33bc1626f50af2a41..90c1bf0eef8d0e965401e6d29ec2d39647886e2f 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets-utf8.h - UTF-8 character set conversion routines
  *
- * $Id: fribidi-char-sets-utf8.h,v 1.1 2004-04-25 18:47:57 behdad Exp $
+ * $Id: fribidi-char-sets-utf8.h,v 1.2 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-04-25 18:47:57 $
- * $Revision: 1.1 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.2 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets-utf8.h,v $
  *
  * Authors:
@@ -40,6 +40,8 @@
 
 #include "fribidi-types.h"
 
+#include "fribidi-begindecls.h"
+
 #define fribidi_char_set_name_utf8 "UTF-8"
 #define fribidi_char_set_title_utf8 "UTF-8 (Unicode)"
 #define fribidi_char_set_desc_utf8 NULL
index be94f7f20610d4cd490f3a5d0390fa8ea1f9c4ab..ddf635a97c387b2199ac5662af5c455db518b60b 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets.c - character set conversion routines
  *
- * $Id: fribidi-char-sets.c,v 1.4 2004-05-22 11:21:40 behdad Exp $
+ * $Id: fribidi-char-sets.c,v 1.5 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-22 11:21:40 $
- * $Revision: 1.4 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.5 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets.c,v $
  *
  * Authors:
 
 #include <fribidi-char-sets.h>
 
+#include "fribidi-char-sets-cap-rtl.h"
+#include "fribidi-char-sets-utf8.h"
+#include "fribidi-char-sets-iso8859-6.h"
+#include "fribidi-char-sets-cp1256.h"
+#include "fribidi-char-sets-iso8859-8.h"
+#include "fribidi-char-sets-cp1255.h"
+
 typedef struct
 {
   FriBidiChar (
@@ -107,7 +114,7 @@ static FriBidiCharSetHandler char_sets[FRIBIDI_CHAR_SETS_NUM + 1] = {
 };
 
 #if !FRIBIDI_USE_GLIB
-static inline char
+static char
 toupper (
   /* input */
   char c
@@ -116,7 +123,7 @@ toupper (
   return c < 'a' || c > 'z' ? c : c + 'A' - 'a';
 }
 
-static inline int
+static int
 fribidi_strcasecmp (
   /* input */
   const char *s1,
@@ -131,7 +138,6 @@ fribidi_strcasecmp (
   return toupper (*s1) - toupper (*s2);
 }
 #else /* FRIBIDI_USE_GLIB */
-# include <glib/gstrfuncs.h>
 # define fribidi_strcasecmp g_ascii_strcasecmp
 #endif /* FRIBIDI_USE_GLIB */
 
index 1f1c6d4f4a5f57738decd8a7cbee59ab2427beed..effea78da3e54636e5bd0ac54d208e6e32460da2 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-char-sets.h - character set conversion routines
  *
- * $Id: fribidi-char-sets.h,v 1.2 2004-05-03 22:05:19 behdad Exp $
+ * $Id: fribidi-char-sets.h,v 1.3 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-03 22:05:19 $
- * $Revision: 1.2 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.3 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/charset/fribidi-char-sets.h,v $
  *
  * Authors:
 
 #include "fribidi-types.h"
 
-#include "fribidi-char-sets-cap-rtl.h"
-#include "fribidi-char-sets-utf8.h"
-#include "fribidi-char-sets-iso8859-6.h"
-#include "fribidi-char-sets-cp1256.h"
-#include "fribidi-char-sets-iso8859-8.h"
-#include "fribidi-char-sets-cp1255.h"
-
 #include "fribidi-begindecls.h"
 
 typedef enum
index 4377ed140c7aa1b84edb86bedc490560ff8ef520..99d05a16cc1ea68cd98326376bb32e98f59c4129 100644 (file)
@@ -3,10 +3,10 @@
 ## Use autoupdate to update this file for newer versions of autoconf.
 ## Use autoscan to check if you need to add something to this file.
 ##############################################################################
-## $Id: configure.ac,v 1.12 2004-06-04 09:41:11 behdad Exp $
+## $Id: configure.ac,v 1.13 2004-06-09 14:59:21 behdad Exp $
 ## $Auther: behdad $
-## $Date: 2004-06-04 09:41:11 $
-## $Revision: 1.12 $
+## $Date: 2004-06-09 14:59:21 $
+## $Revision: 1.13 $
 ## $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/configure.ac,v $
 ##############################################################################
 
@@ -44,7 +44,7 @@ m4_define(fribidi_version,
            fribidi_major_version.fribidi_minor_version.fribidi_micro_version))dnl
 
 AC_INIT([GNU FriBidi],fribidi_version(),[http://freedesktop.org/cgi-bin/bugzilla/enter_bug.cgi?product=FriBidi])
-AC_REVISION([$Id: configure.ac,v 1.12 2004-06-04 09:41:11 behdad Exp $])
+AC_REVISION([$Id: configure.ac,v 1.13 2004-06-09 14:59:21 behdad Exp $])
 AC_CONFIG_SRCDIR(lib/fribidi.h)
 AC_CONFIG_HEADERS(config.h)
 AM_INIT_AUTOMAKE([gnits])
@@ -110,6 +110,7 @@ AC_C_CONST
 AC_C_INLINE
 AC_C_STRINGIZE
 AC_CHECK_SIZEOF(int)
+SIZEOF_INT=$ac_cv_sizeof_int
 AC_SUBST(SIZEOF_INT)
 AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(void *)
@@ -118,14 +119,7 @@ AC_CHECK_SIZEOF(wchar_t)
 # Checks for compiler characteristics.
 changequote(,)dnl
 if test "x$GCC" = "xyes"; then
-  case " $CFLAGS " in
-  *[\ \        ]-Wall[\ \      ]*) ;;
-  *) CFLAGS="$CFLAGS -Wall " ;;
-  esac
-  case " $CFLAGS " in
-  *[\ \        ]-pedantic[\ \  ]*) ;;
-  *) CFLAGS="$CFLAGS -pedantic " ;;
-  esac
+  CFLAGS="$CFLAGS -Wall -pedantic -ansi "
 fi
 changequote([,])dnl
 
index e8bffd55dceac0245f507c996bec6287d23af7f6..b587edd13f7484c95ec609571e534fe437a57853 100644 (file)
@@ -40,6 +40,7 @@ MAINTAINERCLEANFILES += $(man3) c2man.stamp
 man3 = $(dist_man_MANS) $(dist_noinst_MANS)
 
 C2MANFLAGS = $(includepath) \
+               -D__FRIBIDI_DOC \
                -DDONT_HAVE_FRIBIDI_CONFIG_H \
                -M "Programmer's Manual" \
                -m "$(PACKAGE_NAME) $(PACKAGE_VERSION)"
index 3bac201a4ea726d037865d3c6db828f31cde4251..e0882f69725e26fcc0cc548ea01a608883767174 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * common.h - common include for library sources
  *
- * $Id: common.h,v 1.11 2004-05-31 18:39:39 behdad Exp $
+ * $Id: common.h,v 1.12 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-31 18:39:39 $
- * $Revision: 1.11 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.12 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/common.h,v $
  *
  * Author:
 # ifndef SIZEOF_VOID_P
 #  define SIZEOF_VOID_P GLIB_SIZEOF_VOID_P
 # endif        /* !SIZEOF_VOID_P */
-# ifndef __C2MAN__
+# ifndef __FRIBIDI_DOC
 #  include <glib/gmem.h>
-# endif        /* !__C2MAN__ */
+# endif        /* !__FRIBIDI_DOC */
 # ifndef fribidi_malloc
-#  define fribidi_malloc g_malloc
+#  define fribidi_malloc g_try_malloc
 #  define fribidi_free g_free
 # endif        /* !fribidi_malloc */
 # ifndef fribidi_assert
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <glib/gmessages.h>
-#  endif /* !__C2MAN__ */
+#  endif /* !__FRIBIDI_DOC */
 #  define fribidi_assert g_assert
 # endif        /* !fribidi_assert */
-# ifndef __C2MAN__
+# ifndef __FRIBIDI_DOC
 #  include <glib/gmacros.h>
-# endif        /* !__C2MAN__ */
+# endif        /* !__FRIBIDI_DOC */
 # ifndef FRIBIDI_BEGIN_STMT
 #  define FRIBIDI_BEGIN_STMT G_STMT_START {
 #  define FRIBIDI_END_STMT } G_STMT_END
  * No need to include any headers. */
 #ifndef fribidi_malloc
 # if HAVE_STDLIB_H
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <stdlib.h>
-#  endif /* __C2MAN__ */
+#  endif /* __FRIBIDI_DOC */
 #  define fribidi_malloc malloc
 # else /* !HAVE_STDLIB_H */
 #  define fribidi_malloc (void *) malloc
  * allocated for data structure pools. */
 #ifndef FRIBIDI_CHUNK_SIZE
 # if HAVE_ASM_PAGE_H
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <asm/page.h>
-#  endif /* __C2MAN__ */
+#  endif /* __FRIBIDI_DOC */
 #  define FRIBIDI_CHUNK_SIZE (PAGE_SIZE - 16)
 # else /* !HAVE_ASM_PAGE_H */
 #  define FRIBIDI_CHUNK_SIZE (4096 - 16)
index bca215a2cb7d441367bba8f7d60dddcab10743d2..07e0d73a3e7f07e4baefb14af73ffb19cb353cf5 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * debug.h - debug-only interfaces
  *
- * $Id: debug.h,v 1.5 2004-05-31 18:39:39 behdad Exp $
+ * $Id: debug.h,v 1.6 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-31 18:39:39 $
- * $Revision: 1.5 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.6 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/debug.h,v $
  *
  * Author:
@@ -55,9 +55,9 @@
 #endif /* !__FILE__ */
 
 #ifndef FRIBIDI_FPRINTF
-# ifndef __C2MAN__
+# ifndef __FRIBIDI_DOC
 #  include <stdio.h>
-# endif        /* !__C2MAN__ */
+# endif        /* !__FRIBIDI_DOC */
 # define FRIBIDI_FPRINTF fprintf
 # define FRIBIDI_STDERR_ stderr,
 #endif /* !FRIBIDI_FPRINTF */
index 6ca72cab75d6a2cd73d93d3e27f6b65312193173..0c097e41f1d8635bb6dd2eaf8f1f174985cbc519 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-bidi-type.c - get character bidi type
  *
- * $Id: fribidi-bidi-type.c,v 1.9 2004-06-04 09:41:11 behdad Exp $
+ * $Id: fribidi-bidi-type.c,v 1.10 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-04 09:41:11 $
- * $Revision: 1.9 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.10 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/Attic/fribidi-bidi-type.c,v $
  *
  * Authors:
@@ -55,8 +55,8 @@ static const FriBidiCharType linear_enum_to_char_type[] = {
 # undef _FRIBIDI_ADD_TYPE
 };
 
-static inline FriBidiCharType
-get_bidi_type (
+FRIBIDI_ENTRY FriBidiCharType
+fribidi_get_bidi_type (
   /* input */
   FriBidiChar uch
 )
@@ -67,55 +67,3 @@ get_bidi_type (
     return FRIBIDI_TYPE_LTR;
   /* Non-Unicode chars */
 }
-
-FRIBIDI_ENTRY FriBidiCharType
-fribidi_get_bidi_type (
-  /* input */
-  FriBidiChar ch
-)
-{
-  return get_bidi_type (ch);
-}
-
-/* The following is only defined for binary compatibility */
-FriBidiCharType
-fribidi_get_type (
-  FriBidiChar ch
-)
-{
-  return fribidi_get_bidi_type (ch);
-}
-
-/* The following is only defined for binary compatibility */
-FriBidiCharType
-fribidi_get_type_internal (
-  FriBidiChar ch
-)
-{
-  return fribidi_get_bidi_type (ch);
-}
-
-FRIBIDI_ENTRY void
-fribidi_get_bidi_types (
-  /* input */
-  const FriBidiChar *str,
-  FriBidiStrIndex len,
-  /* output */
-  FriBidiCharType *type
-)
-{
-  register FriBidiStrIndex i = len;
-  for (; i; i--)
-    *type++ = get_bidi_type (*str++);
-}
-
-/* The following is only defined for binary compatibility */
-void
-fribidi_get_types (
-  const FriBidiChar *str,
-  FriBidiStrIndex len,
-  FriBidiCharType *type
-)
-{
-  fribidi_get_bidi_types (str, len, type);
-}
index ceadc6baa32112d7656c43ca2e2c7ab6f5eb822f..ab5932b60de07d75a5fc217f6c9db6ed896e07f0 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-bidi-type.h - get character bidi type
  *
- * $Id: fribidi-bidi-type.h,v 1.4 2004-06-09 08:56:53 behdad Exp $
+ * $Id: fribidi-bidi-type.h,v 1.5 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-09 08:56:53 $
- * $Revision: 1.4 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.5 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/Attic/fribidi-bidi-type.h,v $
  *
  * Author:
@@ -51,39 +51,6 @@ fribidi_get_bidi_type (
   FriBidiChar ch               /* input character */
 ) FRIBIDI_GNUC_CONST;
 
-/* fribidi_get_type is the old name of fribidi_get_bidi_type. deprecated.*/
-#define fribidi_get_type FRIBIDI_NAMESPACE(get_type)
-     FRIBIDI_ENTRY FriBidiCharType fribidi_get_type (
-  FriBidiChar ch
-)
-     FRIBIDI_GNUC_CONST FRIBIDI_GNUC_DEPRECATED;
-
-#define fribidi_get_type_internal FRIBIDI_NAMESPACE(get_type_internal)
-     FRIBIDI_ENTRY FriBidiCharType fribidi_get_type_internal (
-  FriBidiChar ch
-)
-     FRIBIDI_GNUC_CONST FRIBIDI_GNUC_DEPRECATED;
-
-#define fribidi_get_bidi_types FRIBIDI_NAMESPACE(get_bidi_types)
-/* fribidi_get_bidi_types - get bidi types for an string of characters
- *
- * This function finds the bidi types of an string of characters.  See
- * fribidi_get_bidi_type for more information.
- */
-     FRIBIDI_ENTRY void fribidi_get_bidi_types (
-  const FriBidiChar *str,      /* input string */
-  FriBidiStrIndex len,         /* input string length */
-  FriBidiCharType *type                /* output bidi types */
-);
-
-/* fribidi_get_types is the old name of fribidi_get_bidi_types. deprecated. */
-#define fribidi_get_types FRIBIDI_NAMESPACE(get_types)
-     FRIBIDI_ENTRY void fribidi_get_types (
-  const FriBidiChar *str,
-  FriBidiStrIndex len,
-  FriBidiCharType *type
-) FRIBIDI_GNUC_DEPRECATED;
-
 #include "fribidi-enddecls.h"
 
 #endif /* !_FRIBIDI_BIDI_TYPE_H */
index 19f82f8004241ca30c7e7080cc09179da25b2741..9221b393dfa983d7fbdc4d85476eca2263df6bbc 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef __C2MAN__
+#ifndef __FRIBIDI_DOC
 /* FriBidi
  * fribidi-bidi-types-list.h - list of bidi types
  *
- * $Id: fribidi-bidi-types-list.h,v 1.3 2004-06-07 20:38:21 behdad Exp $
+ * $Id: fribidi-bidi-types-list.h,v 1.4 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.3 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.4 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-bidi-types-list.h,v $
  *
  * Author:
@@ -32,7 +32,7 @@
  * For licensing issues, contact <license@farsiweb.info>.
  */
 /* *INDENT-OFF* */
-#endif /* !__C2MAN__ */
+#endif /* !__FRIBIDI_DOC */
 #ifndef _FRIBIDI_ADD_TYPE
 # define _FRIBIDI_ADD_TYPE(x,y)
 #endif
@@ -93,6 +93,6 @@ typedef enum {
 } _FRIBIDI_ENUM_TYPES
 #endif /* _FRIBIDI_ENUM_TYPES */
 
-#ifndef __C2MAN__
+#ifndef __FRIBIDI_DOC
 /* *INDENT-ON* */
-#endif /* !__C2MAN__ */
+#endif /* !__FRIBIDI_DOC */
index e0a9b53ba974e32be79b1145606aa383494dc223..196787f515301faa01d558011d1c17f9a5117634 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-bidi-types.h - character bidi types
  *
- * $Id: fribidi-bidi-types.h,v 1.5 2004-06-07 20:38:21 behdad Exp $
+ * $Id: fribidi-bidi-types.h,v 1.6 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.5 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.6 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-bidi-types.h,v $
  *
  * Author:
@@ -86,8 +86,8 @@ typedef struct _FriBidiRun FriBidiRun;
 #define FRIBIDI_MASK_SS                0x00400000L
 #define FRIBIDI_MASK_WS                0x00800000L
 
-/* We reserve the sign bit for user's private use: we will never use it,
-   then negative character types will be never assigned. */
+/* We reserve a single bit for user's private use: we will never use it. */
+#define FRIBIDI_MASK_PRIVATE   0x01000000L
 
 
 /*
@@ -156,14 +156,19 @@ typedef struct _FriBidiRun FriBidiRun;
 /* Weak right to left */
 #define FRIBIDI_TYPE_WRTL_VAL  ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_RTL )
 
-/* The following is only used internally */
-
-/* Start or end of text (run list) */
+/* Start or end of text (run list).  Only used internally */
 #define FRIBIDI_TYPE_SENTINEL  ( FRIBIDI_MASK_SENTINEL )
 
+/* Private types for applications.  More private types can be obtained by
+ * summing up from this one. */
+#define FRIBIDI_TYPE_PRIVATE   ( FRIBIDI_MASK_PRIVATE )
+
 /* Define values for FriBidiCharType. */
 
-#if defined(__C2MAN__) || (defined(FRIBIDI_SIZEOF_INT) && ((FRIBIDI_SIZEOF_INT <= 4) && (FRIBIDI_SIZEOF_INT >= 4)))
+/* Define Enums only if sizeof(int) == 4 (UTF-32), and not compiling C++.
+ * The problem with C++ is that then casts between int32 and enum will fail!
+ */
+#if defined(__FRIBIDI_DOC) || (FRIBIDI_SIZEOF_INT+0 == 4 && !defined(__cplusplus))
 
 typedef enum
 {
@@ -171,7 +176,7 @@ typedef enum
        FRIBIDI_TYPE_##TYPE = FRIBIDI_TYPE_##TYPE##_VAL,
 # include "fribidi-bidi-types-list.h"
 # undef _FRIBIDI_ADD_TYPE
-  _FRIBIDI_TYPE_JUNK
+  _FRIBIDI_TYPE_SENTINEL = FRIBIDI_TYPE_SENTINEL /* Don't use this */
 } FriBidiCharType;
 
 typedef enum
@@ -182,7 +187,7 @@ typedef enum
 # include "fribidi-bidi-types-list.h"
 # undef _FRIBIDI_ADD_TYPE
 # undef _FRIBIDI_PAR_TYPES
-  _FRIBIDI_TYPE_JUNK
+  _FRIBIDI_PAR_SENTINEL = FRIBIDI_TYPE_SENTINEL /* Don't use this */
 } FriBidiParType;
 
 #else
@@ -217,7 +222,7 @@ typedef fribidi_uint32 FriBidiParType;
 
 #endif
 
-/* Just for compatibility */
+/* For lazy people... */
 #define FRIBIDI_TYPE_WLTR      FRIBIDI_PAR_WLTR
 #define FRIBIDI_TYPE_WL                FRIBIDI_PAR_WLTR
 #define FRIBIDI_TYPE_WRTL      FRIBIDI_PAR_WRTL
@@ -235,9 +240,6 @@ typedef fribidi_uint32 FriBidiParType;
  */
 
 
-/* Is private-use value? */
-#define FRIBIDI_TYPE_PRIVATE(p)        ((p) < 0)
-
 /* Is right-to-left level? */
 #define FRIBIDI_LEVEL_IS_RTL(lev) ((lev) & 1)
 
@@ -310,6 +312,9 @@ typedef fribidi_uint32 FriBidiParType;
        ((p) & (FRIBIDI_MASK_EXPLICIT | FRIBIDI_MASK_SEPARATOR \
                | FRIBIDI_MASK_BN | FRIBIDI_MASK_WS))
 
+/* Is private-use type for application? */
+#define FRIBIDI_IS_PRIVATE(p) ((p) & FRIBIDI_MASK_PRIVATE)
+
 /* Define some conversions. */
 
 /* Change numbers: EN, AN to RTL. */
index 7829194fee25adb52e0b5772f5dbdc71bd20adbd..c94bf3fd17f8344d0571bb37c79c881aaa66f5b0 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-bidi.h - bidirectional algorithm
  *
- * $Id: fribidi-bidi.h,v 1.6 2004-06-07 20:38:21 behdad Exp $
+ * $Id: fribidi-bidi.h,v 1.7 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.6 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.7 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-bidi.h,v $
  *
  * Authors:
@@ -100,7 +100,6 @@ fribidi_get_par_embedding_levels (
                                           back to logical string positions */
 ) FRIBIDI_GNUC_WARN_UNUSED;
 
-
 #include "fribidi-enddecls.h"
 
 #endif /* !_FRIBIDI_BIDI_H */
index b774dee564a9456d44b6432edf3b9625c0e2697e..bc415dcc625fed1be8ab202b10dfaa47848e2e15 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-common.h - common include for library headers
  *
- * $Id: fribidi-common.h,v 1.8 2004-06-04 09:41:11 behdad Exp $
+ * $Id: fribidi-common.h,v 1.9 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-04 09:41:11 $
- * $Revision: 1.8 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.9 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-common.h,v $
  *
  * Author:
@@ -60,9 +60,9 @@
 #endif /* !FRIBIDI_ENTRY */
 
 #if FRIBIDI_USE_GLIB
-# ifndef __C2MAN__
+# ifndef __FRIBIDI_DOC
 #  include <glib/gmacros.h>
-# endif        /* !__C2MAN__ */
+# endif        /* !__FRIBIDI_DOC */
 # define FRIBIDI_BEGIN_DECLS           G_BEGIN_DECLS
 # define FRIBIDI_END_DECLS             G_END_DECLS
 # define FRIBIDI_GNUC_CONST            G_GNUC_CONST
 # endif        /* !__cplusplus */
 #endif /* !FRIBIDI_BEGIN_DECLS */
 
-#define fribidi_version_info FRIBIDI_NAMESPACE(version_info)
-/* An string containing the version information of the library. */
-extern const char *fribidi_version_info;
-
 #endif /* !_FRIBIDI_COMMON_H */
 /* Editor directions:
  * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
index 5b16ed7e03218433e6f3bb663a23e4a1e08c532e..6c1d99592408ea72291240ea2b92de556d96fdd9 100644 (file)
  * For licensing issues, contact <license@farsiweb.info> or write to
  * Sharif FarsiWeb, Inc., PO Box 13445-389, Tehran, Iran.
  */
-/* $Id: fribidi-mirroring.c,v 1.8 2004-06-07 20:38:21 behdad Exp $
+/* $Id: fribidi-mirroring.c,v 1.9 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.8 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.9 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-mirroring.c,v $
  *
  * Authors:
@@ -91,10 +91,10 @@ fribidi_get_mirror_char (
 
 /* Editor directions:
  * Local Variables:
- *   mode:c
+ *   mode: c
  *   c-basic-offset: 2
- *   indent-tabs-mode:t
+ *   indent-tabs-mode: t
  *   tab-width: 8
  * End:
- * vim: textwidth=78: autoindent: cindent: shiftwidth=2: tabstop=8
+ * vim: textwidth=78: autoindent: cindent: shiftwidth=2: tabstop=8:
  */
index 1f0eea2f751948b96b1928ee4db0f87cbecaca9b..2c5891034b64e682c9c139f8dcc8edd8e74739e4 100644 (file)
  * For licensing issues, contact <license@farsiweb.info> or write to
  * Sharif FarsiWeb, Inc., PO Box 13445-389, Tehran, Iran.
  */
-/* $Id: fribidi-mirroring.h,v 1.6 2004-06-07 20:38:21 behdad Exp $
+/* $Id: fribidi-mirroring.h,v 1.7 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.6 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.7 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-mirroring.h,v $
  *
  * Authors:
@@ -62,10 +62,10 @@ FRIBIDI_ENTRY fribidi_boolean fribidi_get_mirror_char (
 #endif /* !_FRIBIDI_MIRRORING_H */
 /* Editor directions:
  * Local Variables:
- *   mode:c
+ *   mode: c
  *   c-basic-offset: 2
- *   indent-tabs-mode:t
+ *   indent-tabs-mode: t
  *   tab-width: 8
  * End:
- * vim: textwidth=78: autoindent: cindent: shiftwidth=2: tabstop=8
+ * vim: textwidth=78: autoindent: cindent: shiftwidth=2: tabstop=8:
  */
index 7f17416804fe4f81b38fd7d229938213808e0951..d5c92e17e17ea3f649607e20228229b01755b87f 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
  * fribidi-types.h - define data types for the rest of the library
  *
- * $Id: fribidi-types.h,v 1.4 2004-05-07 06:30:38 behdad Exp $
+ * $Id: fribidi-types.h,v 1.5 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-07 06:30:38 $
- * $Revision: 1.4 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.5 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi-types.h,v $
  *
  * Author:
 
 #if !FRIBIDI_USE_GLIB
 # if HAVE_INTTYPES_H
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <inttypes.h>
-#  endif /* !__C2MAN__ */
+#  endif /* !__FRIBIDI_DOC */
 #  define FRIBIDI_UINT8_LOCAL          uint8_t
 #  define FRIBIDI_UINT16_LOCAL         uint16_t
 #  define FRIBIDI_UINT32_LOCAL         uint32_t
 # else /* !HAVE_INTTYPES_H */
 #  if HAVE_STDINT_H
-#   ifndef __C2MAN__
+#   ifndef __FRIBIDI_DOC
 #    include <stdint.h>
-#   endif /* !__C2MAN__ */
+#   endif /* !__FRIBIDI_DOC */
 #   define FRIBIDI_UINT8_LOCAL         uint8_t
 #   define FRIBIDI_UINT16_LOCAL                uint16_t
 #   define FRIBIDI_UINT32_LOCAL                uint32_t
 #  endif /* !HAVE_STDINT_H */
 # endif        /* !HAVE_INTTYPES_H */
 # if HAVE_STDBOOL_H
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <stdbool.h>
-#  endif /* !__C2MAN__ */
+#  endif /* !__FRIBIDI_DOC */
 #  define FRIBIDI_BOOLEAN_LOCAL                bool
 # else /* !HAVE_STDBOOL_H */
 #  define FRIBIDI_BOOLEAN_LOCAL                int
 # endif        /* !HAVE_STDBOOL_H */
 # if SIZEOF_WCHAR_T >= 4
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   if STDC_HEADERS
 #    include <stdlib.h>
 #    include <stddef.h>
 #     include <stdlib.h>
 #    endif /* !HAVE_STDLIB_H */
 #   endif /* !STDC_HEADERS */
-#  endif /* !__C2MAN__ */
+#  endif /* !__FRIBIDI_DOC */
 #  define FRIBIDI_UNICHAR_LOCAL                wchar_t
 # else /* SIZEOF_WCHAR_T < 4 */
 #  define FRIBIDI_UNICHAR_LOCAL                fribidi_uint32
 # endif        /* SIZEOF_WCHAR_T < 4 */
 #else /* FRIBIDI_USE_GLIB */
-#  ifndef __C2MAN__
+#  ifndef __FRIBIDI_DOC
 #   include <glib/gtypes.h>
 #   include <glib/gunicode.h>
-#  endif /* !__C2MAN__ */
+#  endif /* !__FRIBIDI_DOC */
 # define FRIBIDI_UINT8_LOCAL           guint8
 # define FRIBIDI_UINT16_LOCAL          guint16
 # define FRIBIDI_UINT32_LOCAL          guint32
index 9e234cb438f60738e382970b028dad019003a41c..b75db6f281caa564aedd4049a500122d205bf1e6 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
- * fribidi.c - Unicode bidirectional and Arabic joining algorithms
+ * fribidi.c - Unicode bidirectional and Arabic joining/shaping algorithms
  *
- * $Id: fribidi.c,v 1.7 2004-06-07 20:38:21 behdad Exp $
+ * $Id: fribidi.c,v 1.8 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-07 20:38:21 $
- * $Revision: 1.7 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.8 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi.c,v $
  *
  * Authors:
index 78d7522d1766c181facf77eb3322dc65db78ac56..309ed5b3ba48054235fbe9162dfdb1cc72c1628a 100644 (file)
@@ -1,8 +1,5 @@
 fribidi_bidi_type_name
 fribidi_get_bidi_type
-fribidi_get_bidi_types
-fribidi_get_type
-fribidi_get_types
 fribidi_log2vis
 fribidi_get_par_embedding_levels
 fribidi_remove_bidi_marks
index 190b3a534e5879f7e3f155873640bebdf237abcd..1e68b25fbce350bdf24bc445b0340394cf8fd7bb 100644 (file)
@@ -1,10 +1,10 @@
 /* FriBidi
- * fribidi.h - Unicode bidirectional and Arabic joining algorithms
+ * fribidi.h - Unicode bidirectional and Arabic joining/shaping algorithms
  *
- * $Id: fribidi.h,v 1.3 2004-06-09 08:56:53 behdad Exp $
+ * $Id: fribidi.h,v 1.4 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-06-09 08:56:53 $
- * $Revision: 1.3 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.4 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi.h,v $
  *
  * Author:
@@ -42,6 +42,7 @@
 # include "fribidi-char-sets.h"
 #endif /* FRIBIDI_CHARSETS */
 
+#include "fribidi-begindecls.h"
 
 /* See fribidi-bidi.h for the core functions fribidi_get_par_embedding_levels
  * and fribidi_reorder_line which are probably the main calls you need.  See
@@ -127,9 +128,16 @@ fribidi_remove_bidi_marks (
 )
      FRIBIDI_GNUC_WARN_UNUSED FRIBIDI_GNUC_DEPRECATED;
 
-
 #define fribidi_log2vis_get_embedding_levels fribidi_get_par_embedding_levels
+#define fribidi_get_type fribidi_get_bidi_type
+
+
+
+#define fribidi_version_info FRIBIDI_NAMESPACE(version_info)
+/* An string containing the version information of the library. */
+extern const char *fribidi_version_info;
 
+#include "fribidi-enddecls.h"
 
 #endif /* !_FRIBIDI_H */
 /* Editor directions:
index 8576d6f6c12a3a3b31b7cac8c8ae2ec497abe431..084a1aee22fbd83b11059d06cc53a0f4886ed853 100644 (file)
--- a/lib/mem.h
+++ b/lib/mem.h
@@ -1,10 +1,10 @@
 /* FriBidi
  * mem.h - memory manipulation routines
  *
- * $Id: mem.h,v 1.5 2004-05-07 06:30:38 behdad Exp $
+ * $Id: mem.h,v 1.6 2004-06-09 14:59:21 behdad Exp $
  * $Author: behdad $
- * $Date: 2004-05-07 06:30:38 $
- * $Revision: 1.5 $
+ * $Date: 2004-06-09 14:59:21 $
+ * $Revision: 1.6 $
  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/mem.h,v $
  *
  * Author:
@@ -68,9 +68,9 @@ fribidi_mem_chunk_new (
 
 #else /* FRIBIDI_USE_GLIB */
 
-#ifndef __C2MAN__
+#ifndef __FRIBIDI_DOC
 # include <glib/gmem.h>
-#endif /* !__C2MAN__ */
+#endif /* !__FRIBIDI_DOC */
 
 #define FriBidiMemChunk GMemChunk
 #define FRIBIDI_ALLOC_ONLY G_ALLOC_ONLY