Skip to content
Browse files

Merge branch 'master' of github.com:robbiehanson/XMPPFramework

  • Loading branch information...
2 parents ab2bf6e + b1107ba commit be5eab537be6b92a34086ba8cd372276f4405a9f @robbiehanson committed
View
325 Vendor/libidn/idn-int.h
@@ -1,5 +1,5 @@
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
-/* Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2002, 2004-2012 Free Software Foundation, Inc.
Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
This file is part of gnulib.
@@ -22,7 +22,12 @@
* <http://www.opengroup.org/susv3xbd/stdint.h.html>
*/
-#ifndef _GL_STDINT_H
+#ifndef _GL_LGL_STDINT_H
+
+#if __GNUC__ >= 3
+#pragma GCC system_header
+#endif
+
/* When including a system file that in turn includes <inttypes.h>,
use the system <inttypes.h>, not our substitute. This avoids
@@ -45,16 +50,27 @@
diagnostics. */
# define __STDINT_H__
# endif
+
+ /* Some pre-C++11 <stdint.h> implementations need this. */
+# ifdef __cplusplus
+# ifndef __STDC_CONSTANT_MACROS
+# define __STDC_CONSTANT_MACROS 1
+# endif
+# ifndef __STDC_LIMIT_MACROS
+# define __STDC_LIMIT_MACROS 1
+# endif
+# endif
+
/* Other systems may have an incomplete or buggy <stdint.h>.
Include it before <inttypes.h>, since any "#include <stdint.h>"
in <inttypes.h> would reinclude us, skipping our contents because
- _GL_STDINT_H is defined.
+ _GL_LGL_STDINT_H is defined.
The include requires a split double-inclusion guard. */
# include <stdint.h>
#endif
-#if ! defined _GL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H
-#define _GL_STDINT_H
+#if ! defined _GL_LGL_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H
+#define _GL_LGL_STDINT_H
/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
@@ -87,19 +103,9 @@
# include <sys/bitypes.h>
#endif
-#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS
-
-/* Get WCHAR_MIN, WCHAR_MAX. */
-# if ! (defined WCHAR_MIN && defined WCHAR_MAX)
-/* We don't need WCHAR_* in libidn, so to avoid problems with
- missing wchar.h, don't include wchar.h here. */
-# endif
-
-#endif
-
#undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
-/* Minimum and maximum values for a integer type under the usual assumption.
+/* Minimum and maximum values for an integer type under the usual assumption.
Return an unspecified value if BITS == 0, adding a check to pacify
picky compilers. */
@@ -110,10 +116,12 @@
((signed) \
? ~ _STDINT_MIN (signed, bits, zero) \
: /* The expression for the unsigned case. The subtraction of (signed) \
- is a nop in the unsigned case and avoids "signed integer overflow" \
- warnings in the signed case. */ \
+ is a nop in the unsigned case and avoids "signed integer overflow" \
+ warnings in the signed case. */ \
((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
+#if !GNULIB_defined_stdint_types
+
/* 7.18.1.1. Exact-width integer types */
/* Here we assume a standard architecture where the hardware integer
@@ -121,47 +129,73 @@
#undef int8_t
#undef uint8_t
-#define int8_t signed char
-#define uint8_t unsigned char
+typedef signed char gl_int8_t;
+typedef unsigned char gl_uint8_t;
+#define int8_t gl_int8_t
+#define uint8_t gl_uint8_t
#undef int16_t
#undef uint16_t
-#define int16_t short int
-#define uint16_t unsigned short int
+typedef short int gl_int16_t;
+typedef unsigned short int gl_uint16_t;
+#define int16_t gl_int16_t
+#define uint16_t gl_uint16_t
#undef int32_t
#undef uint32_t
-#define int32_t int
-#define uint32_t unsigned int
+typedef int gl_int32_t;
+typedef unsigned int gl_uint32_t;
+#define int32_t gl_int32_t
+#define uint32_t gl_uint32_t
+
+/* If the system defines INT64_MAX, assume int64_t works. That way,
+ if the underlying platform defines int64_t to be a 64-bit long long
+ int, the code below won't mistakenly define it to be a 64-bit long
+ int, which would mess up C++ name mangling. We must use #ifdef
+ rather than #if, to avoid an error with HP-UX 10.20 cc. */
+#ifdef INT64_MAX
+# define GL_INT64_T
+#else
/* Do not undefine int64_t if gnulib is not being used with 64-bit
types, since otherwise it breaks platforms like Tandem/NSK. */
-#if LONG_MAX >> 31 >> 31 == 1
-# undef int64_t
-# define int64_t long int
-# define GL_INT64_T
-#elif defined _MSC_VER
-# undef int64_t
-# define int64_t __int64
-# define GL_INT64_T
-#elif 1
-# undef int64_t
-# define int64_t long long int
-# define GL_INT64_T
+# if LONG_MAX >> 31 >> 31 == 1
+# undef int64_t
+typedef long int gl_int64_t;
+# define int64_t gl_int64_t
+# define GL_INT64_T
+# elif defined _MSC_VER
+# undef int64_t
+typedef __int64 gl_int64_t;
+# define int64_t gl_int64_t
+# define GL_INT64_T
+# elif 1
+# undef int64_t
+typedef long long int gl_int64_t;
+# define int64_t gl_int64_t
+# define GL_INT64_T
+# endif
#endif
-#if ULONG_MAX >> 31 >> 31 >> 1 == 1
-# undef uint64_t
-# define uint64_t unsigned long int
-# define GL_UINT64_T
-#elif defined _MSC_VER
-# undef uint64_t
-# define uint64_t unsigned __int64
-# define GL_UINT64_T
-#elif 1
-# undef uint64_t
-# define uint64_t unsigned long long int
+#ifdef UINT64_MAX
# define GL_UINT64_T
+#else
+# if ULONG_MAX >> 31 >> 31 >> 1 == 1
+# undef uint64_t
+typedef unsigned long int gl_uint64_t;
+# define uint64_t gl_uint64_t
+# define GL_UINT64_T
+# elif defined _MSC_VER
+# undef uint64_t
+typedef unsigned __int64 gl_uint64_t;
+# define uint64_t gl_uint64_t
+# define GL_UINT64_T
+# elif 1
+# undef uint64_t
+typedef unsigned long long int gl_uint64_t;
+# define uint64_t gl_uint64_t
+# define GL_UINT64_T
+# endif
#endif
/* Avoid collision with Solaris 2.5.1 <pthread.h> etc. */
@@ -215,12 +249,18 @@
#undef uint_fast32_t
#undef int_fast64_t
#undef uint_fast64_t
-#define int_fast8_t long int
-#define uint_fast8_t unsigned int_fast8_t
-#define int_fast16_t long int
-#define uint_fast16_t unsigned int_fast16_t
-#define int_fast32_t long int
-#define uint_fast32_t unsigned int_fast32_t
+typedef long int gl_int_fast8_t;
+typedef unsigned long int gl_uint_fast8_t;
+typedef long int gl_int_fast16_t;
+typedef unsigned long int gl_uint_fast16_t;
+typedef long int gl_int_fast32_t;
+typedef unsigned long int gl_uint_fast32_t;
+#define int_fast8_t gl_int_fast8_t
+#define uint_fast8_t gl_uint_fast8_t
+#define int_fast16_t gl_int_fast16_t
+#define uint_fast16_t gl_uint_fast16_t
+#define int_fast32_t gl_int_fast32_t
+#define uint_fast32_t gl_uint_fast32_t
#ifdef GL_INT64_T
# define int_fast64_t int64_t
#endif
@@ -232,40 +272,58 @@
#undef intptr_t
#undef uintptr_t
-#define intptr_t long int
-#define uintptr_t unsigned long int
+typedef long int gl_intptr_t;
+typedef unsigned long int gl_uintptr_t;
+#define intptr_t gl_intptr_t
+#define uintptr_t gl_uintptr_t
/* 7.18.1.5. Greatest-width integer types */
/* Note: These types are compiler dependent. It may be unwise to use them in
public header files. */
-#undef intmax_t
-#if 1 && LONG_MAX >> 30 == 1
-# define intmax_t long long int
-#elif defined GL_INT64_T
-# define intmax_t int64_t
-#else
-# define intmax_t long int
+/* If the system defines INTMAX_MAX, assume that intmax_t works, and
+ similarly for UINTMAX_MAX and uintmax_t. This avoids problems with
+ assuming one type where another is used by the system. */
+
+#ifndef INTMAX_MAX
+# undef INTMAX_C
+# undef intmax_t
+# if 1 && LONG_MAX >> 30 == 1
+typedef long long int gl_intmax_t;
+# define intmax_t gl_intmax_t
+# elif defined GL_INT64_T
+# define intmax_t int64_t
+# else
+typedef long int gl_intmax_t;
+# define intmax_t gl_intmax_t
+# endif
#endif
-#undef uintmax_t
-#if 1 && ULONG_MAX >> 31 == 1
-# define uintmax_t unsigned long long int
-#elif defined GL_UINT64_T
-# define uintmax_t uint64_t
-#else
-# define uintmax_t unsigned long int
+#ifndef UINTMAX_MAX
+# undef UINTMAX_C
+# undef uintmax_t
+# if 1 && ULONG_MAX >> 31 == 1
+typedef unsigned long long int gl_uintmax_t;
+# define uintmax_t gl_uintmax_t
+# elif defined GL_UINT64_T
+# define uintmax_t uint64_t
+# else
+typedef unsigned long int gl_uintmax_t;
+# define uintmax_t gl_uintmax_t
+# endif
#endif
/* Verify that intmax_t and uintmax_t have the same size. Too much code
breaks if this is not the case. If this check fails, the reason is likely
to be found in the autoconf macros. */
-typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) - 1];
+typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
+ ? 1 : -1];
-/* 7.18.2. Limits of specified-width integer types */
+#define GNULIB_defined_stdint_types 1
+#endif /* !GNULIB_defined_stdint_types */
-#if ! defined __cplusplus || defined __STDC_LIMIT_MACROS
+/* 7.18.2. Limits of specified-width integer types */
/* 7.18.2.1. Limits of exact-width integer types */
@@ -293,17 +351,14 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
#define INT32_MAX 2147483647
#define UINT32_MAX 4294967295U
-#undef INT64_MIN
-#undef INT64_MAX
-#ifdef GL_INT64_T
+#if defined GL_INT64_T && ! defined INT64_MAX
/* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0
evaluates the latter incorrectly in preprocessor expressions. */
# define INT64_MIN (- INTMAX_C (1) << 63)
# define INT64_MAX INTMAX_C (9223372036854775807)
#endif
-#undef UINT64_MAX
-#ifdef GL_UINT64_T
+#if defined GL_UINT64_T && ! defined UINT64_MAX
# define UINT64_MAX UINTMAX_C (18446744073709551615)
#endif
@@ -396,21 +451,23 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
/* 7.18.2.5. Limits of greatest-width integer types */
-#undef INTMAX_MIN
-#undef INTMAX_MAX
-#ifdef INT64_MAX
-# define INTMAX_MIN INT64_MIN
-# define INTMAX_MAX INT64_MAX
-#else
-# define INTMAX_MIN INT32_MIN
-# define INTMAX_MAX INT32_MAX
+#ifndef INTMAX_MAX
+# undef INTMAX_MIN
+# ifdef INT64_MAX
+# define INTMAX_MIN INT64_MIN
+# define INTMAX_MAX INT64_MAX
+# else
+# define INTMAX_MIN INT32_MIN
+# define INTMAX_MAX INT32_MAX
+# endif
#endif
-#undef UINTMAX_MAX
-#ifdef UINT64_MAX
-# define UINTMAX_MAX UINT64_MAX
-#else
-# define UINTMAX_MAX UINT32_MAX
+#ifndef UINTMAX_MAX
+# ifdef UINT64_MAX
+# define UINTMAX_MAX UINT64_MAX
+# else
+# define UINTMAX_MAX UINT32_MAX
+# endif
#endif
/* 7.18.3. Limits of other integer types */
@@ -418,27 +475,61 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
/* ptrdiff_t limits */
#undef PTRDIFF_MIN
#undef PTRDIFF_MAX
-#define PTRDIFF_MIN \
- _STDINT_MIN (1, 32, 0)
-#define PTRDIFF_MAX \
- _STDINT_MAX (1, 32, 0)
+#if 0
+# ifdef _LP64
+# define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l)
+# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l)
+# else
+# define PTRDIFF_MIN _STDINT_MIN (1, 32, 0)
+# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0)
+# endif
+#else
+# define PTRDIFF_MIN \
+ _STDINT_MIN (1, 32, 0)
+# define PTRDIFF_MAX \
+ _STDINT_MAX (1, 32, 0)
+#endif
/* sig_atomic_t limits */
#undef SIG_ATOMIC_MIN
#undef SIG_ATOMIC_MAX
#define SIG_ATOMIC_MIN \
_STDINT_MIN (1, 32, \
- 0)
+ 0)
#define SIG_ATOMIC_MAX \
_STDINT_MAX (1, 32, \
- 0)
+ 0)
/* size_t limit */
#undef SIZE_MAX
-#define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
+#if 0
+# ifdef _LP64
+# define SIZE_MAX _STDINT_MAX (0, 64, 0ul)
+# else
+# define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
+# endif
+#else
+# define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
+#endif
/* wchar_t limits */
+/* Get WCHAR_MIN, WCHAR_MAX.
+ This include is not on the top, above, because on OSF/1 4.0 we have a
+ sequence of nested includes
+ <wchar.h> -> <stdio.h> -> <getopt.h> -> <stdlib.h>, and the latter includes
+ <stdint.h> and assumes its types are already defined. */
+#if 1 && ! (defined WCHAR_MIN && defined WCHAR_MAX)
+ /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
+ included before <wchar.h>. */
+# include <stddef.h>
+# include <stdio.h>
+# include <time.h>
+# define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
+/* We don't need WCHAR_* in libidn, so to avoid problems with
+ missing wchar.h, don't include wchar.h here. */
+# undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
+#endif
#undef WCHAR_MIN
#undef WCHAR_MAX
#define WCHAR_MIN \
@@ -454,12 +545,8 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
#define WINT_MAX \
_STDINT_MAX (1, 32, 0)
-#endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */
-
/* 7.18.4. Macros for integer constants */
-#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS
-
/* 7.18.4.1. Macros for minimum-width integer constants */
/* According to ISO C 99 Technical Corrigendum 1 */
@@ -500,25 +587,25 @@ typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) -
/* 7.18.4.2. Macros for greatest-width integer constants */
-#undef INTMAX_C
-#if 1 && LONG_MAX >> 30 == 1
-# define INTMAX_C(x) x##LL
-#elif defined GL_INT64_T
-# define INTMAX_C(x) INT64_C(x)
-#else
-# define INTMAX_C(x) x##L
+#ifndef INTMAX_C
+# if 1 && LONG_MAX >> 30 == 1
+# define INTMAX_C(x) x##LL
+# elif defined GL_INT64_T
+# define INTMAX_C(x) INT64_C(x)
+# else
+# define INTMAX_C(x) x##L
+# endif
#endif
-#undef UINTMAX_C
-#if 1 && ULONG_MAX >> 31 == 1
-# define UINTMAX_C(x) x##ULL
-#elif defined GL_UINT64_T
-# define UINTMAX_C(x) UINT64_C(x)
-#else
-# define UINTMAX_C(x) x##UL
+#ifndef UINTMAX_C
+# if 1 && ULONG_MAX >> 31 == 1
+# define UINTMAX_C(x) x##ULL
+# elif defined GL_UINT64_T
+# define UINTMAX_C(x) UINT64_C(x)
+# else
+# define UINTMAX_C(x) x##UL
+# endif
#endif
-#endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */
-
-#endif /* _GL_STDINT_H */
-#endif /* !defined _GL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */
+#endif /* _GL_LGL_STDINT_H */
+#endif /* !defined _GL_LGL_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */
View
BIN Vendor/libidn/libidn-1.15.tar.gz
Binary file not shown.
View
BIN Vendor/libidn/libidn-1.24.tar.gz
Binary file not shown.
View
BIN Vendor/libidn/libidn.a
Binary file not shown.
View
246 Vendor/libidn/stringprep.h
@@ -1,47 +1,57 @@
-/* stringprep.h --- Header file for stringprep functions. -*- c -*-
- * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Simon Josefsson
- *
- * This file is part of GNU Libidn.
- *
- * GNU Libidn is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * GNU Libidn is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with GNU Libidn; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- */
-
-#ifndef _STRINGPREP_H
-#define _STRINGPREP_H
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+/* stringprep.h --- Header file for stringprep functions.
+ Copyright (C) 2002-2012 Simon Josefsson
+
+ This file is part of GNU Libidn.
+
+ GNU Libidn is free software: you can redistribute it and/or
+ modify it under the terms of either:
+
+ * the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 3 of the License, or (at
+ your option) any later version.
+
+ or
+
+ * the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at
+ your option) any later version.
+
+ or both in parallel, as here.
+
+ GNU Libidn is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received copies of the GNU General Public License and
+ the GNU Lesser General Public License along with this program. If
+ not, see <http://www.gnu.org/licenses/>. */
-#include <stddef.h> /* size_t */
-#include <unistd.h> /* ssize_t */
-#include "idn-int.h" /* uint32_t */
+#ifndef STRINGPREP_H
+# define STRINGPREP_H
- /* On Windows, variables that may be in a DLL must be marked
- * specially. This is only active when not building libidn itself
- * (!LIBIDN_BUILDING). It is only used for MinGW which declare
- * __DECLSPEC_SUPPORTED or MSVC (_MSC_VER && _DLL). */
-#if !defined (LIBIDN_BUILDING) && (defined(__DECLSPEC_SUPPORTED) || (defined(_MSC_VER) && defined(_DLL)))
-# define IDN_DLL_VAR __declspec (dllimport)
-#else
-# define IDN_DLL_VAR
-#endif
+# ifndef IDNAPI
+# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
+# define IDNAPI __attribute__((__visibility__("default")))
+# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
+# define IDNAPI __declspec(dllexport)
+# elif defined _MSC_VER && ! defined LIBIDN_STATIC
+# define IDNAPI __declspec(dllimport)
+# else
+# define IDNAPI
+# endif
+# endif
-#define STRINGPREP_VERSION "1.9"
+# include <stddef.h> /* size_t */
+# include <sys/types.h> /* ssize_t */
+# include "idn-int.h" /* uint32_t */
+
+# ifdef __cplusplus
+extern "C"
+{
+# endif
+
+# define STRINGPREP_VERSION "1.24"
/* Error codes. */
typedef enum
@@ -84,7 +94,7 @@ extern "C"
STRINGPREP_BIDI_L_TABLE = 8
} Stringprep_profile_steps;
-#define STRINGPREP_MAX_MAP_CHARS 4
+# define STRINGPREP_MAX_MAP_CHARS 4
struct Stringprep_table_element
{
@@ -109,115 +119,123 @@ extern "C"
};
typedef struct Stringprep_profiles Stringprep_profiles;
- extern IDN_DLL_VAR const Stringprep_profiles stringprep_profiles[];
+ extern IDNAPI const Stringprep_profiles stringprep_profiles[];
/* Profiles */
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_A_1[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_B_1[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_B_2[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_B_3[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_1_1[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_1_2[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_2_1[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_2_2[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_3[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_4[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_5[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_6[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_7[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_8[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_C_9[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_D_1[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_rfc3454_D_2[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_A_1[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_B_1[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_B_2[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_B_3[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_1_1[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_1_2[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_2_1[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_2_2[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_3[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_4[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_5[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_6[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_7[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_8[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_C_9[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_D_1[];
+ extern IDNAPI const Stringprep_table_element stringprep_rfc3454_D_2[];
/* Nameprep */
- extern IDN_DLL_VAR const Stringprep_profile stringprep_nameprep[];
+ extern IDNAPI const Stringprep_profile stringprep_nameprep[];
-#define stringprep_nameprep(in, maxlen) \
+# define stringprep_nameprep(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_nameprep)
-#define stringprep_nameprep_no_unassigned(in, maxlen) \
+# define stringprep_nameprep_no_unassigned(in, maxlen) \
stringprep(in, maxlen, STRINGPREP_NO_UNASSIGNED, stringprep_nameprep)
/* SASL */
- extern IDN_DLL_VAR const Stringprep_profile stringprep_saslprep[];
- extern IDN_DLL_VAR const Stringprep_profile stringprep_plain[];
- extern IDN_DLL_VAR const Stringprep_profile stringprep_trace[];
+ extern IDNAPI const Stringprep_profile stringprep_saslprep[];
+ extern IDNAPI const Stringprep_table_element stringprep_saslprep_space_map[];
+ extern IDNAPI const Stringprep_profile stringprep_plain[];
+ extern IDNAPI const Stringprep_profile stringprep_trace[];
-#define stringprep_plain(in, maxlen) \
+# define stringprep_plain(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_plain)
/* Kerberos */
- extern IDN_DLL_VAR const Stringprep_profile stringprep_kerberos5[];
+ extern IDNAPI const Stringprep_profile stringprep_kerberos5[];
-#define stringprep_kerberos5(in, maxlen) \
+# define stringprep_kerberos5(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_kerberos5)
/* XMPP */
- extern IDN_DLL_VAR const Stringprep_profile stringprep_xmpp_nodeprep[];
- extern IDN_DLL_VAR const Stringprep_profile stringprep_xmpp_resourceprep[];
- extern IDN_DLL_VAR const Stringprep_table_element stringprep_xmpp_nodeprep_prohibit[];
+ extern IDNAPI const Stringprep_profile stringprep_xmpp_nodeprep[];
+ extern IDNAPI const Stringprep_profile stringprep_xmpp_resourceprep[];
+ extern IDNAPI const Stringprep_table_element stringprep_xmpp_nodeprep_prohibit[];
-#define stringprep_xmpp_nodeprep(in, maxlen) \
+# define stringprep_xmpp_nodeprep(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_xmpp_nodeprep)
-#define stringprep_xmpp_resourceprep(in, maxlen) \
+# define stringprep_xmpp_resourceprep(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_xmpp_resourceprep)
/* iSCSI */
- extern IDN_DLL_VAR const Stringprep_profile stringprep_iscsi[];
+ extern IDNAPI const Stringprep_profile stringprep_iscsi[];
+ extern IDNAPI const Stringprep_table_element stringprep_iscsi_prohibit[];
-#define stringprep_iscsi(in, maxlen) \
+# define stringprep_iscsi(in, maxlen) \
stringprep(in, maxlen, 0, stringprep_iscsi)
/* API */
- extern int stringprep_4i (uint32_t * ucs4, size_t * len, size_t maxucs4len,
- Stringprep_profile_flags flags,
- const Stringprep_profile * profile);
- extern int stringprep_4zi (uint32_t * ucs4, size_t maxucs4len,
- Stringprep_profile_flags flags,
- const Stringprep_profile * profile);
- extern int stringprep (char *in, size_t maxlen,
- Stringprep_profile_flags flags,
- const Stringprep_profile * profile);
+ extern IDNAPI int stringprep_4i (uint32_t * ucs4, size_t * len,
+ size_t maxucs4len,
+ Stringprep_profile_flags flags,
+ const Stringprep_profile * profile);
+ extern IDNAPI int stringprep_4zi (uint32_t * ucs4, size_t maxucs4len,
+ Stringprep_profile_flags flags,
+ const Stringprep_profile * profile);
+ extern IDNAPI int stringprep (char *in, size_t maxlen,
+ Stringprep_profile_flags flags,
+ const Stringprep_profile * profile);
- extern int stringprep_profile (const char *in,
- char **out,
- const char *profile,
- Stringprep_profile_flags flags);
+ extern IDNAPI int stringprep_profile (const char *in,
+ char **out,
+ const char *profile,
+ Stringprep_profile_flags flags);
- extern const char *stringprep_strerror (Stringprep_rc rc);
+ extern IDNAPI const char *stringprep_strerror (Stringprep_rc rc);
- extern const char *stringprep_check_version (const char *req_version);
+ extern IDNAPI const char *stringprep_check_version (const char
+ *req_version);
/* Utility */
- extern int stringprep_unichar_to_utf8 (uint32_t c, char *outbuf);
- extern uint32_t stringprep_utf8_to_unichar (const char *p);
-
- extern uint32_t *stringprep_utf8_to_ucs4 (const char *str, ssize_t len,
- size_t * items_written);
- extern char *stringprep_ucs4_to_utf8 (const uint32_t * str, ssize_t len,
- size_t * items_read,
- size_t * items_written);
-
- extern char *stringprep_utf8_nfkc_normalize (const char *str, ssize_t len);
- extern uint32_t *stringprep_ucs4_nfkc_normalize (uint32_t * str,
- ssize_t len);
-
- extern const char *stringprep_locale_charset (void);
- extern char *stringprep_convert (const char *str,
- const char *to_codeset,
- const char *from_codeset);
- extern char *stringprep_locale_to_utf8 (const char *str);
- extern char *stringprep_utf8_to_locale (const char *str);
-
-#ifdef __cplusplus
+ extern IDNAPI int stringprep_unichar_to_utf8 (uint32_t c, char *outbuf);
+ extern IDNAPI uint32_t stringprep_utf8_to_unichar (const char *p);
+
+ extern IDNAPI uint32_t *stringprep_utf8_to_ucs4 (const char *str,
+ ssize_t len,
+ size_t * items_written);
+ extern IDNAPI char *stringprep_ucs4_to_utf8 (const uint32_t * str,
+ ssize_t len,
+ size_t * items_read,
+ size_t * items_written);
+
+ extern IDNAPI char *stringprep_utf8_nfkc_normalize (const char *str,
+ ssize_t len);
+ extern IDNAPI uint32_t *stringprep_ucs4_nfkc_normalize (const uint32_t * str,
+ ssize_t len);
+
+ extern IDNAPI const char *stringprep_locale_charset (void);
+ extern IDNAPI char *stringprep_convert (const char *str,
+ const char *to_codeset,
+ const char *from_codeset);
+ extern IDNAPI char *stringprep_locale_to_utf8 (const char *str);
+ extern IDNAPI char *stringprep_utf8_to_locale (const char *str);
+
+# ifdef __cplusplus
}
-#endif
-#endif /* _STRINGPREP_H */
+# endif
+
+#endif /* STRINGPREP_H */

0 comments on commit be5eab5

Please sign in to comment.
Something went wrong with that request. Please try again.