citrus_namespace.h revision 1.1 1 /* $NetBSD: citrus_namespace.h,v 1.1 2003/06/25 09:51:38 tshiozak Exp $ */
2
3 /*-
4 * Copyright (c)2003 Citrus Project,
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29 #ifndef _CITRUS_NAMESPACE_H_
30 #define _CITRUS_NAMESPACE_H_
31
32 /* citrus_alias */
33 #ifndef _CITRUS_ALIAS_NO_NAMESPACE
34 #define _alias_lookup _citrus_alias_lookup
35 #endif /* _CITRUS_ALIAS_NO_NAMESPACE */
36
37 /* citrus_bcs */
38 #ifndef _CITRUS_BCS_NO_NAMESPACE
39 #define _bcs_isalnum _citrus_bcs_isalnum
40 #define _bcs_isalpha _citrus_bcs_isalpha
41 #define _bcs_isblank _citrus_bcs_isblank
42 #define _bcs_isdigit _citrus_bcs_isdigit
43 #define _bcs_islower _citrus_bcs_islower
44 #define _bcs_iseol _citrus_bcs_iseol
45 #define _bcs_isspace _citrus_bcs_isspace
46 #define _bcs_isupper _citrus_bcs_isupper
47 #define _bcs_isxdigit _citrus_bcs_isxdigit
48 #define _bcs_skip_nonws _citrus_bcs_skip_nonws
49 #define _bcs_skip_nonws_len _citrus_bcs_skip_nonws_len
50 #define _bcs_skip_ws _citrus_bcs_skip_ws
51 #define _bcs_skip_ws_len _citrus_bcs_skip_ws_len
52 #define _bcs_strcasecmp _citrus_bcs_strcasecmp
53 #define _bcs_strncasecmp _citrus_bcs_strncasecmp
54 #define _bcs_tolower _citrus_bcs_tolower
55 #define _bcs_toupper _citrus_bcs_toupper
56 #define _bcs_trunc_rws_len _citrus_bcs_trunc_rws_len
57 #define _bcs_convert_to_lower _citrus_bcs_convert_to_lower
58 #define _bcs_convert_to_upper _citrus_bcs_convert_to_upper
59 #endif /* _CITRUS_BCS_NO_NAMESPACE */
60
61 /* citrus_csmapper */
62 #ifndef _CITRUS_CSMAPPER_NO_NAMESPACE
63 #define _csmapper _citrus_csmapper
64 #define _csmapper_open _citrus_csmapper_open
65 #define _csmapper_close _citrus_csmapper_close
66 #define _csmapper_convert _citrus_csmapper_convert
67 #define _csmapper_init_state _citrus_csmapper_init_state
68 #define _csmapper_get_state_size _citrus_csmapper_get_state_size
69 #define _csmapper_get_src_max _citrus_csmapper_get_src_max
70 #define _csmapper_get_dst_max _citrus_csmapper_get_dst_max
71 #define _CSMAPPER_F_PREVENT_PIVOT _CITRUS_CSMAPPER_F_PREVENT_PIVOT
72 #endif /* _CITRUS_CSMAPPER_NO_NAMESPACE */
73
74 /* citrus_db */
75 #ifndef _CITRUS_DB_NO_NAMESPACE
76 #define _db_open _citrus_db_open
77 #define _db_close _citrus_db_close
78 #define _db_lookup _citrus_db_lookup
79 #define _db_lookup_by_s _citrus_db_lookup_by_string
80 #define _db_lookup8_by_s _citrus_db_lookup8_by_string
81 #define _db_lookup16_by_s _citrus_db_lookup16_by_string
82 #define _db_lookup32_by_s _citrus_db_lookup32_by_string
83 #define _db_lookupstr_by_s _citrus_db_lookup_string_by_string
84 #define _db_hash_std _citrus_db_hash_std
85 #define _db_get_num_entries _citrus_db_get_number_of_entries
86 #define _db_get_entry _citrus_db_get_entry
87 #define _db_locator _citrus_db_locator
88 #define _db_locator_init _citrus_db_locator_init
89 #endif /* _CITRUS_DB_NO_NAMESPACE */
90
91 /* citrus_db_factory */
92 #ifndef _CITRUS_DB_FACTORY_NO_NAMESPACE
93 #define _db_factory _citrus_db_factory
94 #define _db_factory_create _citrus_db_factory_create
95 #define _db_factory_free _citrus_db_factory_free
96 #define _db_factory_add _citrus_db_factory_add
97 #define _db_factory_add_by_s _citrus_db_factory_add_by_string
98 #define _db_factory_add8_by_s _citrus_db_factory_add8_by_string
99 #define _db_factory_add16_by_s _citrus_db_factory_add16_by_string
100 #define _db_factory_add32_by_s _citrus_db_factory_add32_by_string
101 #define _db_factory_addstr_by_s _citrus_db_factory_add_string_by_string
102 #define _db_factory_calc_size _citrus_db_factory_calc_size
103 #define _db_factory_serialize _citrus_db_factory_serialize
104 #endif /* _CITRUS_DB_FACTORY_NO_NAMESPACE */
105
106 /* citrus_lookup */
107 #ifndef _CITRUS_DB_NO_NAMESPACE
108 #define _lookup _citrus_lookup
109 #define _lookup_simple _citrus_lookup_simple
110 #define _lookup_alias _citrus_lookup_alias
111 #define _lookup_seq_open _citrus_lookup_seq_open
112 #define _lookup_seq_rewind _citrus_lookup_seq_rewind
113 #define _lookup_seq_next _citrus_lookup_seq_next
114 #define _lookup_seq_lookup _citrus_lookup_seq_lookup
115 #define _lookup_get_num_entries _citrus_lookup_get_number_of_entries
116 #define _lookup_seq_close _citrus_lookup_seq_close
117 #define _lookup_factory_convert _citrus_lookup_factory_convert
118 #endif /* _CITRUS_DB_NO_NAMESPACE */
119
120 /* citrus_esdb */
121 #ifndef _CITRUS_ESDB_NO_NAMESPACE
122 #define _esdb _citrus_esdb
123 #define _esdb_charset _citrus_esdb_charset
124 #define _esdb_open _citrus_esdb_open
125 #define _esdb_close _citrus_esdb_close
126 #define _esdb_get_list _citrus_esdb_get_list
127 #define _esdb_free_list _citrus_esdb_free_list
128 #endif /* _CITRUS_ESDB_NO_NAMESPACE */
129
130 /* citrus_hash */
131 #ifndef _CITRUS_HASH_NO_NAMESPACE
132 #define _citrus_string_hash_func _string_hash_func
133 #endif /* _CITRUS_HASH_NO_NAMESPACE */
134
135 /* citrus_mapper */
136 #ifndef _CITRUS_MAPPER_NO_NAMESPACE
137 #define _mapper _citrus_mapper
138 #define _mapper_ops _citrus_mapper_ops
139 #define _mapper_traits _citrus_mapper_traits
140 #define _mapper_open _citrus_mapper_open
141 #define _mapper_open_direct _citrus_mapper_open_direct
142 #define _mapper_close _citrus_mapper_close
143 #define _MAPPER_CONVERT_SUCCESS _CITRUS_MAPPER_CONVERT_SUCCESS
144 #define _MAPPER_CONVERT_INVAL _CITRUS_MAPPER_CONVERT_INVAL
145 #define _MAPPER_CONVERT_SRC_MORE _CITRUS_MAPPER_CONVERT_SRC_MORE
146 #define _MAPPER_CONVERT_DST_MORE _CITRUS_MAPPER_CONVERT_DST_MORE
147 #define _MAPPER_CONVERT_ILSEQ _CITRUS_MAPPER_CONVERT_ILSEQ
148 #define _MAPPER_CONVERT_FATAL _CITRUS_MAPPER_CONVERT_FATAL
149 #define _mapper_convert _citrus_mapper_convert
150 #define _mapper_init_state _citrus_mapper_init_state
151 #define _mapper_get_state_size _citrus_mapper_get_state_size
152 #define _mapper_get_src_max _citrus_mapper_get_src_max
153 #define _mapper_get_dst_max _citrus_mapper_get_dst_max
154 #define _mapper_set_persistent _citrus_mapper_set_persistent
155 #endif /* _CITRUS_MAPPER_NO_NAMESPACE */
156
157 /* citrus_memstream */
158 #ifndef _CITRUS_MEMSTREAM_NO_NAMESPACE
159 #define _memstream _citrus_memory_stream
160 #define _memstream_getln _citrus_memory_stream_getln
161 #define _memstream_matchline _citrus_memory_stream_matchline
162 #define _memstream_chr _citrus_memory_stream_chr
163 #define _memstream_skip_ws _citrus_memory_stream_skip_ws
164 #define _memstream_iseof _citrus_memory_stream_iseof
165 #define _memstream_bind _citrus_memory_stream_bind
166 #define _memstream_seek _citrus_memory_stream_seek
167 #define _memstream_rewind _citrus_memory_stream_rewind
168 #define _memstream_remainder _citrus_memory_stream_remainder
169 #define _memstream_getc _citrus_memory_stream_getc
170 #define _memstream_peek _citrus_memory_stream_peek
171 #define _memstream_getregion _citrus_memory_stream_getregion
172 #endif /* _CITRUS_MEMSTREAM_NO_NAMESPACE */
173
174 /* citrus_mmap */
175 #ifndef _CITRUS_MMAP_NO_NAMESPACE
176 #define _map_file _citrus_map_file
177 #define _unmap_file _citrus_unmap_file
178 #endif /* _CITRUS_MMAP_NO_NAMESPACE */
179
180 #ifndef _CITRUS_PIVOT_NO_NAMESPACE
181 #define _pivot_factory_convert _citrus_pivot_factory_convert
182 #endif /* _CITRUS_PIVOT_NO_NAMESPACE */
183
184 /* citrus_region.h */
185 #ifndef _CITRUS_REGION_NO_NAMESPACE
186 #define _region _citrus_region
187 #define _region_init _citrus_region_init
188 #define _region_head _citrus_region_head
189 #define _region_size _citrus_region_size
190 #define _region_check _citrus_region_check
191 #define _region_offset _citrus_region_offset
192 #define _region_peek8 _citrus_region_peek8
193 #define _region_peek16 _citrus_region_peek16
194 #define _region_peek32 _citrus_region_peek32
195 #endif /* _CITRUS_REGION_NO_NAMESPACE */
196
197 /* citrus_stdenc.h */
198 #ifndef _CITRUS_STDENC_NO_NAMESPACE
199 #define _stdenc _citrus_stdenc
200 #define _stdenc_ops _citrus_stdenc_ops
201 #define _stdenc_traits _citrus_stdenc_traits
202 #define _stdenc_open _citrus_stdenc_open
203 #define _stdenc_close _citrus_stdenc_close
204 #define _stdenc_init_state _citrus_stdenc_init_state
205 #define _stdenc_mbtocs _citrus_stdenc_mbtocs
206 #define _stdenc_cstomb _citrus_stdenc_cstomb
207 #define _stdenc_mbtowc _citrus_stdenc_mbtowc
208 #define _stdenc_wctomb _citrus_stdenc_wctomb
209 #define _stdenc_get_state_size _citrus_stdenc_get_state_size
210 #define _stdenc_get_mb_cur_max _citrus_stdenc_get_mb_cur_max
211 #endif /* _CITRUS_STDENC_NO_NAMESPACE */
212
213 /* citrus_types.h */
214 #ifndef _CITRUS_TYPES_NO_NAMESPACE
215 #define _index_t _citrus_index_t
216 #define _csid_t _citrus_csid_t
217 #define _wc_t _citrus_wc_t
218 #endif /* _CITRUS_TYPES_NO_NAMESPACE */
219
220 #endif
221