home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / evbl0627.zip / everblue_20010627.zip / x11 / Xlc_Init.c < prev    next >
C/C++ Source or Header  |  1999-11-02  |  4KB  |  166 lines

  1. /* $XConsortium: lcInit.c /main/4 1996/12/05 10:40:35 swick $ */
  2. /* $XFree86: xc/lib/X11/lcInit.c,v 3.2.2.1 1998/01/25 06:11:07 dawes Exp $ */
  3. /*
  4.  * Copyright 1992, 1993 by TOSHIBA Corp.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software and its
  7.  * documentation for any purpose and without fee is hereby granted, provided
  8.  * that the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of TOSHIBA not be used in advertising
  11.  * or publicity pertaining to distribution of the software without specific,
  12.  * written prior permission. TOSHIBA make no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * TOSHIBA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  18.  * TOSHIBA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22.  * SOFTWARE.
  23.  *
  24.  * Author: Katsuhisa Yano    TOSHIBA Corp.
  25.  *                   mopi@osa.ilab.toshiba.co.jp
  26.  */
  27. /*
  28.  *  (c) Copyright 1995 FUJITSU LIMITED
  29.  *  This is source code modified by FUJITSU LIMITED under the Joint
  30.  *  Development Agreement for the CDE/Motif PST.
  31.  *
  32.  *   Modifier: Masayoshi Shimamura      FUJITSU LIMITED 
  33.  *
  34.  */
  35.  
  36. #include "Xlib_private.h"
  37. #include "Xlcint.h"
  38.  
  39. #define USE_GENERIC_LOADER
  40. #define USE_DEFAULT_LOADER
  41. /*** #define USE_EUC_LOADER ***/
  42. /*** #define USE_SJIS_LOADER ***/
  43. /*** #define USE_JIS_LOADER ***/
  44. #define USE_UTF_LOADER
  45.  
  46. extern XLCd _XlcDefaultLoader(
  47. #if NeedFunctionPrototypes
  48.     _Xconst char*
  49. #endif
  50. );
  51.  
  52. #ifdef DYNAMIC_LOAD
  53. #ifdef sun
  54. extern XLCd _XsunOsDynamicLoad(
  55. #if NeedFunctionPrototypes
  56.     _Xconst char*
  57. #endif
  58. );
  59. #endif /* sun */
  60.  
  61. #ifdef AIXV3
  62. extern XLCd _XaixOsDynamicLoad(
  63. #if NeedFunctionPrototypes
  64.     _Xconst char*
  65. #endif
  66. );
  67. #endif /* AIXV3 */
  68. #endif
  69.  
  70. #ifdef USE_GENERIC_LOADER
  71. extern XLCd _XlcGenericLoader(
  72. #if NeedFunctionPrototypes
  73.     _Xconst char*
  74. #endif
  75. );
  76. #endif
  77.  
  78. #ifdef USE_UTF_LOADER
  79. extern XLCd _XlcUtfLoader(
  80. #if NeedFunctionPrototypes
  81.     _Xconst char*
  82. #endif
  83. );
  84. #endif
  85.  
  86. #ifdef USE_EUC_LOADER
  87. extern XLCd _XlcEucLoader(
  88. #if NeedFunctionPrototypes
  89.     _Xconst char*
  90. #endif
  91. );
  92. #endif
  93.  
  94. #ifdef USE_SJIS_LOADER
  95. extern XLCd _XlcSjisLoader(
  96. #if NeedFunctionPrototypes
  97.     _Xconst char*
  98. #endif
  99. );
  100. #endif
  101.  
  102. #ifdef USE_JIS_LOADER
  103. extern XLCd _XlcJisLoader(
  104. #if NeedFunctionPrototypes
  105.     _Xconst char*
  106. #endif
  107. );
  108. #endif
  109.  
  110. #ifdef USE_DYNAMIC_LOADER
  111. extern XLCd _XlcDynamicLoader(
  112. #if NeedFunctionPrototypes
  113.     _Xconst char*
  114. #endif
  115. );
  116. #endif
  117.  
  118. /*
  119.  * The _XlcInitLoader function initializes the locale object loader list
  120.  * with vendor specific manner.
  121.  */
  122.  
  123. void
  124. _XlcInitLoader()
  125. {
  126.     DBUG_ENTER("_XlcInitLoader")
  127. #ifdef USE_GENERIC_LOADER
  128.     _XlcAddLoader(_XlcGenericLoader, XlcHead);
  129. #endif
  130.  
  131. #ifdef USE_DEFAULT_LOADER
  132.     _XlcAddLoader(_XlcDefaultLoader, XlcHead);
  133. #endif
  134.  
  135. #ifdef USE_EUC_LOADER
  136.     _XlcAddLoader(_XlcEucLoader, XlcHead);
  137. #endif
  138.  
  139. #ifdef USE_SJIS_LOADER
  140.     _XlcAddLoader(_XlcSjisLoader, XlcHead);
  141. #endif
  142.  
  143. #ifdef USE_JIS_LOADER
  144.     _XlcAddLoader(_XlcJisLoader, XlcHead);
  145. #endif
  146.  
  147. #ifdef USE_UTF_LOADER
  148.     _XlcAddLoader(_XlcUtfLoader, XlcHead);
  149. #endif
  150.  
  151. #ifdef DYNAMIC_LOAD
  152. #ifdef sun
  153.     _XlcAddLoader(_XsunOsDynamicLoad, XlcHead);
  154. #endif /* sun */
  155.  
  156. #ifdef AIXV3
  157.     _XlcAddLoader(_XaixOsDynamicLoad, XlcHead);
  158. #endif /* AIXV3 */
  159. #endif /* DYNAMIC_LOAD */
  160.  
  161. #ifdef USE_DYNAMIC_LOADER
  162.     _XlcAddLoader(_XlcDynamicLoader, XlcHead);
  163. #endif
  164.     DBUG_VOID_RETURN;
  165. }
  166.