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