2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: InterBase International support
|
|
|
|
* MODULE: ldcommon.h
|
|
|
|
* DESCRIPTION: Common declarations for InterBase language drivers
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2004-03-07 08:58:55 +01:00
|
|
|
#ifndef INTL_LDCOMMON_H
|
|
|
|
#define INTL_LDCOMMON_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
#include "../jrd/intlobj_new.h"
|
2004-05-01 00:47:16 +02:00
|
|
|
#include "../jrd/constants.h"
|
2006-05-21 21:26:03 +02:00
|
|
|
#include "../jrd/gdsassert.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
#include "../intl/charsets.h"
|
|
|
|
#include "../intl/country_codes.h"
|
|
|
|
#include "../intl/ld.h"
|
|
|
|
|
|
|
|
#undef DEBUG
|
|
|
|
|
|
|
|
typedef USHORT UNICODE;
|
|
|
|
|
2003-10-27 23:27:30 +01:00
|
|
|
#ifndef MIN
|
2004-12-08 06:58:41 +01:00
|
|
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
2003-10-27 23:27:30 +01:00
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
2004-12-08 06:58:41 +01:00
|
|
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
2003-10-27 23:27:30 +01:00
|
|
|
#endif
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
#define TEXTTYPE_ENTRY(name) INTL_BOOL name (TEXTTYPE cache, const ASCII* tt_name, const ASCII* cs_name, \
|
|
|
|
USHORT attributes, const UCHAR* specific_attributes, \
|
|
|
|
ULONG specific_attributes_length)
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-01 03:08:00 +02:00
|
|
|
#ifdef NOT_USED_OR_REPLACED
|
2005-05-28 00:45:31 +02:00
|
|
|
#define CONVERT_ENTRY(cs1, cs2, name) INTL_BOOL name (csconvert* csptr, const ASCII* dest_cs, const ASCII* source_cs)
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
#define CONVERT_RETURN return (true)
|
|
|
|
#endif
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
#define CHARSET_ENTRY(name) INTL_BOOL name (charset* csptr, const ASCII* cs_name)
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
#define CHARSET_RETURN return (true)
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2005-05-28 00:45:31 +02:00
|
|
|
void CV_convert_init(csconvert*, pfn_INTL_convert, const void*, const void*);
|
2002-04-10 01:25:13 +02:00
|
|
|
|
2004-03-07 08:58:55 +01:00
|
|
|
#endif /* INTL_LDCOMMON_H */
|