1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1998-1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File error.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 05/28/99 stephen Creation.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ERROR_H
|
|
|
|
#define ERROR_H 1
|
|
|
|
|
2001-07-27 17:33:28 +00:00
|
|
|
#define U_APPEND_CHAR32(c,target,len) { \
|
|
|
|
if (c <= 0xffff) \
|
|
|
|
{ \
|
|
|
|
*(target)++ = (UChar) c; \
|
|
|
|
len=1; \
|
|
|
|
} \
|
|
|
|
else \
|
|
|
|
{ \
|
|
|
|
c -= 0x0010000; \
|
|
|
|
*(target)++ = (UChar) (0xd800 + (UChar) (c >> 10)); \
|
|
|
|
*(target)++ = (UChar) (0xdc00 + (UChar) (c & 0x3ff)); \
|
|
|
|
len=2; \
|
|
|
|
} \
|
2001-05-25 00:16:28 +00:00
|
|
|
}
|
2001-07-11 20:31:32 +00:00
|
|
|
|
|
|
|
extern const char *gCurrentFileName;
|
|
|
|
|
|
|
|
void error (uint32_t linenumber, const char *msg, ...);
|
|
|
|
void warning (uint32_t linenumber, const char *msg, ...);
|
1999-08-16 21:50:52 +00:00
|
|
|
|
2001-11-03 02:54:08 +00:00
|
|
|
|
2001-10-10 18:32:06 +00:00
|
|
|
/* Show warnings? */
|
2001-10-15 18:05:27 +00:00
|
|
|
U_CFUNC void setShowWarning(UBool val);
|
2001-11-13 21:15:13 +00:00
|
|
|
U_CFUNC UBool getShowWarning(void);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|