_fallcInit.c 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 libraries 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. #include "_fallibint.h"
  59. #include "_fallcint.h"
  60. #define USE_GENERIC_LOADER
  61. #define USE_DEFAULT_LOADER
  62. /*** #define USE_EUC_LOADER ***/
  63. /*** #define USE_SJIS_LOADER ***/
  64. /*** #define USE_JIS_LOADER ***/
  65. /*** #define USE_UTF_LOADER ***/
  66. extern XLCd _fallcDefaultLoader(
  67. char*
  68. );
  69. #ifdef DYNAMIC_LOAD
  70. #ifdef sun
  71. extern XLCd _falsunOsDynamicLoad(
  72. char*
  73. );
  74. #endif /* sun */
  75. #endif /* DYNAMIC_LOAD */
  76. #ifdef USE_GENERIC_LOADER
  77. extern XLCd _fallcGenericLoader(
  78. char*
  79. );
  80. #endif
  81. #ifdef USE_UTF_LOADER
  82. extern XLCd _fallcUtfLoader(
  83. char*
  84. );
  85. #endif
  86. #ifdef USE_EUC_LOADER
  87. extern XLCd _fallcEucLoader(
  88. char*
  89. );
  90. #endif
  91. #ifdef USE_SJIS_LOADER
  92. extern XLCd _fallcSjisLoader(
  93. char*
  94. );
  95. #endif
  96. #ifdef USE_JIS_LOADER
  97. extern XLCd _XlcJisLoader(
  98. char*
  99. );
  100. #endif
  101. #ifdef USE_DYNAMIC_LOADER
  102. extern XLCd _fallcDynamicLoader(
  103. char*
  104. );
  105. #endif
  106. /*
  107. * The _fallcInitLoader function initializes the locale object loader list
  108. * with vendor specific manner.
  109. */
  110. void
  111. _fallcInitLoader(void)
  112. {
  113. #ifdef USE_GENERIC_LOADER
  114. _fallcAddLoader(_fallcGenericLoader, XlcHead);
  115. #endif
  116. #ifdef USE_DEFAULT_LOADER
  117. _fallcAddLoader(_fallcDefaultLoader, XlcHead);
  118. #endif
  119. #ifdef USE_EUC_LOADER
  120. _fallcAddLoader(_fallcEucLoader, XlcHead);
  121. #endif
  122. #ifdef USE_SJIS_LOADER
  123. _fallcAddLoader(_fallcSjisLoader, XlcHead);
  124. #endif
  125. #ifdef USE_JIS_LOADER
  126. _fallcAddLoader(_XlcJisLoader, XlcHead);
  127. #endif
  128. #ifdef USE_UTF_LOADER
  129. _fallcAddLoader(_fallcUtfLoader, XlcHead);
  130. #endif
  131. #ifdef DYNAMIC_LOAD
  132. #ifdef sun
  133. _fallcAddLoader(_falsunOsDynamicLoad, XlcHead);
  134. #endif /* sun */
  135. #endif /* DYNAMIC_LOAD */
  136. #ifdef USE_DYNAMIC_LOADER
  137. _fallcAddLoader(_fallcDynamicLoader, XlcHead);
  138. #endif
  139. }