mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-2194 fix Solaris warnings and HPUX failure
X-SVN-Rev: 11365
This commit is contained in:
parent
664e3a0b29
commit
dde478d82e
4 changed files with 18 additions and 5 deletions
|
@ -22,6 +22,7 @@ enum { base = 36, tmin = 1, tmax = 26, skew = 38, damp = 700,
|
|||
/* delim(cp) tests whether cp is a delimiter: */
|
||||
#define delim(cp) ((cp) == delimiter)
|
||||
|
||||
U_CDECL_BEGIN
|
||||
/* decode_digit(cp) returns the numeric value of a basic code */
|
||||
/* point (for use in representing integers) in the range 0 to */
|
||||
/* base-1, or base if cp is does not represent a value. */
|
||||
|
@ -262,3 +263,7 @@ enum punycode_status punycode_decode(
|
|||
*output_length = out;
|
||||
return punycode_success;
|
||||
}
|
||||
|
||||
U_CDECL_END
|
||||
|
||||
|
||||
|
|
|
@ -37,8 +37,9 @@ enum punycode_status {
|
|||
# endif
|
||||
#endif
|
||||
|
||||
U_CDECL_BEGIN
|
||||
|
||||
U_CFUNC enum punycode_status punycode_encode(
|
||||
enum punycode_status punycode_encode(
|
||||
punycode_uint input_length,
|
||||
const punycode_uint input[],
|
||||
const unsigned char case_flags[],
|
||||
|
@ -70,7 +71,7 @@ U_CFUNC enum punycode_status punycode_encode(
|
|||
/* except punycode_bad_input; if not punycode_success, then */
|
||||
/* output_size and output might contain garbage. */
|
||||
|
||||
U_CFUNC enum punycode_status punycode_decode(
|
||||
enum punycode_status punycode_decode(
|
||||
punycode_uint input_length,
|
||||
const char input[],
|
||||
punycode_uint *output_length,
|
||||
|
@ -97,5 +98,6 @@ U_CFUNC enum punycode_status punycode_decode(
|
|||
/* output, and case_flags might contain garbage. On success, the */
|
||||
/* decoder will never need to write an output_length greater than */
|
||||
/* input_length, because of how the encoding is defined. */
|
||||
U_CDECL_END
|
||||
#endif
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ testData(TestIDNA& test) {
|
|||
pTestIDNA = NULL;
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
U_CDECL_BEGIN
|
||||
static void U_CALLCONV
|
||||
caseMapLineFn(void *context,
|
||||
char *fields[][2], int32_t fieldCount,
|
||||
|
@ -201,6 +201,7 @@ caseMapLineFn(void *context,
|
|||
|
||||
compareMapping(code,mapping, length, *mapWithNorm, pErrorCode);
|
||||
}
|
||||
U_CDECL_END
|
||||
|
||||
static void
|
||||
parseMappings(const char *filename,UBool withNorm, UBool reportError, TestIDNA& test, UErrorCode *pErrorCode) {
|
||||
|
@ -220,6 +221,7 @@ parseMappings(const char *filename,UBool withNorm, UBool reportError, TestIDNA&
|
|||
}
|
||||
|
||||
/* parser for UnicodeData.txt ----------------------------------------------- */
|
||||
U_CDECL_BEGIN
|
||||
|
||||
static void U_CALLCONV
|
||||
unicodeDataLineFn(void *context,
|
||||
|
@ -240,6 +242,8 @@ unicodeDataLineFn(void *context,
|
|||
|
||||
}
|
||||
|
||||
U_CDECL_END
|
||||
|
||||
static void
|
||||
parseTable(const char *filename,UBool isUnassigned,TestIDNA& test, UErrorCode *pErrorCode) {
|
||||
char *fields[2][2];
|
||||
|
@ -395,7 +399,7 @@ cleanup() {
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
U_CDECL_BEGIN
|
||||
static UBool U_CALLCONV
|
||||
isAcceptable(void * /* context */,
|
||||
const char * /* type */, const char * /* name */,
|
||||
|
@ -427,6 +431,7 @@ getFoldingOffset(uint32_t data) {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
U_CDECL_END
|
||||
|
||||
static UBool
|
||||
loadIDNData(UErrorCode &errorCode) {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "intltest.h"
|
||||
#include "unicode/parseerr.h"
|
||||
|
||||
U_CDECL_BEGIN
|
||||
typedef int32_t
|
||||
(*TestFunc) ( const UChar *src, int32_t srcLength,
|
||||
UChar *dest, int32_t destCapacity,
|
||||
|
@ -33,7 +34,7 @@ typedef int32_t
|
|||
UErrorCode *status);
|
||||
|
||||
|
||||
|
||||
U_CDECL_END
|
||||
|
||||
// test the API
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue