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