Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtudcfonted / libfal / _fallcInit.c
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* lcInit.c 1.4 - Fujitsu source for CDEnext    96/03/11 17:13:15       */ 
24 /* $XConsortium: _fallcInit.c /main/1 1996/04/08 15:17:36 cde-fuj $ */
25 /*
26  * Copyright 1992, 1993 by TOSHIBA Corp.
27  *
28  * Permission to use, copy, modify, and distribute this software and its
29  * documentation for any purpose and without fee is hereby granted, provided
30  * that the above copyright notice appear in all copies and that both that
31  * copyright notice and this permission notice appear in supporting
32  * documentation, and that the name of TOSHIBA not be used in advertising
33  * or publicity pertaining to distribution of the software without specific,
34  * written prior permission. TOSHIBA make no representations about the
35  * suitability of this software for any purpose.  It is provided "as is"
36  * without express or implied warranty.
37  *
38  * TOSHIBA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40  * TOSHIBA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44  * SOFTWARE.
45  *
46  * Author: Katsuhisa Yano       TOSHIBA Corp.
47  *                              mopi@osa.ilab.toshiba.co.jp
48  */
49 /*
50  *  (c) Copyright 1995 FUJITSU LIMITED
51  *  This is source code modified by FUJITSU LIMITED under the Joint
52  *  Development Agreement for the CDEnext PST.
53  *  This is unpublished proprietary source code of FUJITSU LIMITED
54  *
55  *   Modifier: Masayoshi Shimamura      FUJITSU LIMITED 
56  *
57  */
58
59 #include "_fallibint.h"
60 #include "_fallcint.h"
61
62 #define USE_GENERIC_LOADER
63 #define USE_DEFAULT_LOADER
64 /*** #define USE_EUC_LOADER ***/
65 /*** #define USE_SJIS_LOADER ***/
66 /*** #define USE_JIS_LOADER ***/
67 /*** #define USE_UTF_LOADER ***/
68
69 extern XLCd _fallcDefaultLoader(
70 #if NeedFunctionPrototypes
71     char*
72 #endif
73 );
74
75 #ifdef DYNAMIC_LOAD
76 #ifdef sun
77 extern XLCd _falsunOsDynamicLoad(
78 #if NeedFunctionPrototypes
79     char*
80 #endif
81 );
82 #endif /* sun */
83
84 #ifdef AIXV3
85 extern XLCd _falaixOsDynamicLoad(
86 #if NeedFunctionPrototypes
87     char*
88 #endif
89 );
90 #endif /* AIXV3 */
91 #endif
92
93 #ifdef USE_GENERIC_LOADER
94 extern XLCd _fallcGenericLoader(
95 #if NeedFunctionPrototypes
96     char*
97 #endif
98 );
99 #endif
100
101 #ifdef USE_UTF_LOADER
102 extern XLCd _fallcUtfLoader(
103 #if NeedFunctionPrototypes
104     char*
105 #endif
106 );
107 #endif
108
109 #ifdef USE_EUC_LOADER
110 extern XLCd _fallcEucLoader(
111 #if NeedFunctionPrototypes
112     char*
113 #endif
114 );
115 #endif
116
117 #ifdef USE_SJIS_LOADER
118 extern XLCd _fallcSjisLoader(
119 #if NeedFunctionPrototypes
120     char*
121 #endif
122 );
123 #endif
124
125 #ifdef USE_JIS_LOADER
126 extern XLCd _XlcJisLoader(
127 #if NeedFunctionPrototypes
128     char*
129 #endif
130 );
131 #endif
132
133 #ifdef USE_DYNAMIC_LOADER
134 extern XLCd _fallcDynamicLoader(
135 #if NeedFunctionPrototypes
136     char*
137 #endif
138 );
139 #endif
140
141 /*
142  * The _fallcInitLoader function initializes the locale object loader list
143  * with vendor specific manner.
144  */
145
146 void
147 _fallcInitLoader()
148 {
149 #ifdef USE_GENERIC_LOADER
150     _fallcAddLoader(_fallcGenericLoader, XlcHead);
151 #endif
152
153 #ifdef USE_DEFAULT_LOADER
154     _fallcAddLoader(_fallcDefaultLoader, XlcHead);
155 #endif
156
157 #ifdef USE_EUC_LOADER
158     _fallcAddLoader(_fallcEucLoader, XlcHead);
159 #endif
160
161 #ifdef USE_SJIS_LOADER
162     _fallcAddLoader(_fallcSjisLoader, XlcHead);
163 #endif
164
165 #ifdef USE_JIS_LOADER
166     _fallcAddLoader(_XlcJisLoader, XlcHead);
167 #endif
168
169 #ifdef USE_UTF_LOADER
170     _fallcAddLoader(_fallcUtfLoader, XlcHead);
171 #endif
172
173 #ifdef DYNAMIC_LOAD
174 #ifdef sun
175     _fallcAddLoader(_falsunOsDynamicLoad, XlcHead);
176 #endif /* sun */
177
178 #ifdef AIXV3
179     _fallcAddLoader(_falaixOsDynamicLoad, XlcHead);
180 #endif /* AIXV3 */
181 #endif /* DYNAMIC_LOAD */
182
183 #ifdef USE_DYNAMIC_LOADER
184     _fallcAddLoader(_fallcDynamicLoader, XlcHead);
185 #endif
186 }