2 *******************************************************************************
4 * Copyright (C) 1998-2011, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
11 * Modification History:
13 * Date Name Description
14 * 05/28/99 stephen Creation.
15 *******************************************************************************
23 U_CFUNC void error(uint32_t linenumber, const char *msg, ...)
28 fprintf(stderr, "%s:%u: ", gCurrentFileName, (int)linenumber);
29 vfprintf(stderr, msg, va);
30 fprintf(stderr, "\n");
34 static UBool gShowWarning = TRUE;
36 U_CFUNC void setShowWarning(UBool val)
41 U_CFUNC UBool getShowWarning(){
45 static UBool gStrict =FALSE;
46 U_CFUNC UBool isStrict(){
49 U_CFUNC void setStrict(UBool val){
52 static UBool gVerbose =FALSE;
53 U_CFUNC UBool isVerbose(){
56 U_CFUNC void setVerbose(UBool val){
59 U_CFUNC void warning(uint32_t linenumber, const char *msg, ...)
66 fprintf(stderr, "%s:%u: warning: ", gCurrentFileName, (int)linenumber);
67 vfprintf(stderr, msg, va);
68 fprintf(stderr, "\n");