Imported Upstream version 0.19.7
[platform/upstream/fribidi.git] / lib / fribidi.c
1 /* FriBidi
2  * fribidi.c - Unicode bidirectional and Arabic joining/shaping algorithms
3  *
4  * $Id: fribidi.c,v 1.18 2006-01-31 03:23:13 behdad Exp $
5  * $Author: behdad $
6  * $Date: 2006-01-31 03:23:13 $
7  * $Revision: 1.18 $
8  * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/lib/fribidi.c,v $
9  *
10  * Authors:
11  *   Behdad Esfahbod, 2001, 2002, 2004
12  *   Dov Grobgeld, 1999, 2000
13  *
14  * Copyright (C) 2004 Sharif FarsiWeb, Inc
15  * Copyright (C) 2001,2002 Behdad Esfahbod
16  * Copyright (C) 1999,2000 Dov Grobgeld
17  * 
18  * This library is free software; you can redistribute it and/or
19  * modify it under the terms of the GNU Lesser General Public
20  * License as published by the Free Software Foundation; either
21  * version 2.1 of the License, or (at your option) any later version.
22  * 
23  * This library is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
26  * Lesser General Public License for more details.
27  * 
28  * You should have received a copy of the GNU Lesser General Public License
29  * along with this library, in a file named COPYING; if not, write to the
30  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
31  * Boston, MA 02110-1301, USA
32  * 
33  * For licensing issues, contact <license@farsiweb.info>.
34  */
35
36 #include "common.h"
37
38 #include <fribidi.h>
39
40 #if DEBUG+0
41 static int flag_debug = false;
42 #endif
43
44 FRIBIDI_ENTRY fribidi_boolean
45 fribidi_debug_status (
46   void
47 )
48 {
49 #if DEBUG+0
50   return flag_debug;
51 #else
52   return false;
53 #endif
54 }
55
56 FRIBIDI_ENTRY fribidi_boolean
57 fribidi_set_debug (
58   /* input */
59   fribidi_boolean state
60 )
61 {
62 #if DEBUG+0
63   return flag_debug = state;
64 #else
65   return false;
66 #endif
67 }
68
69
70
71 const char *fribidi_unicode_version = FRIBIDI_UNICODE_VERSION;
72
73 const char *fribidi_version_info =
74   "(" FRIBIDI_NAME ") " FRIBIDI_VERSION "\n"
75   "interface version " FRIBIDI_INTERFACE_VERSION_STRING ",\n"
76   "Unicode Character Database version " FRIBIDI_UNICODE_VERSION ",\n"
77   "Configure options"
78 #if DEBUG+0
79   " --enable-debug"
80 #endif /* DEBUG */
81 #if USE_SIMPLE_MALLOC+0
82   " --enable-malloc"
83 #endif /* USE_SIMPLE_MALLOC */
84 #if FRIBIDI_CHARSETS+0
85 #else
86   " --disable-charsets"
87 #endif /* !FRIBIDI_CHARSETS */
88 #if FRIBIDI_USE_GLIB+0
89   " --with-glib"
90 #else /* !FRIBIDI_USE_GLIB */
91   " --without-glib"
92 #endif /* !FRIBIDI_USE_GLIB */
93   ".\n\n"
94   "Copyright (C) 2004  Sharif FarsiWeb, Inc.\n"
95   "Copyright (C) 2001, 2002, 2004, 2005  Behdad Esfahbod\n"
96   "Copyright (C) 1999, 2000  Dov Grobgeld\n"
97   FRIBIDI_NAME " comes with NO WARRANTY, to the extent permitted by law.\n"
98   "You may redistribute copies of " FRIBIDI_NAME " under\n"
99   "the terms of the GNU Lesser General Public License.\n"
100   "For more information about these matters, see the file named COPYING.\n\n"
101   "Written by Behdad Esfahbod and Dov Grobgeld.\n";
102
103 /* Editor directions:
104  * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
105  */