1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
6 * Copyright (C) 1998-2011, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 *******************************************************************************
13 * Modification History:
15 * Date Name Description
16 * 05/28/99 stephen Creation.
17 *******************************************************************************
25 U_CFUNC void error(uint32_t linenumber, const char *msg, ...)
30 fprintf(stderr, "%s:%u: ", gCurrentFileName, (int)linenumber);
31 vfprintf(stderr, msg, va);
32 fprintf(stderr, "\n");
36 static UBool gShowWarning = TRUE;
38 U_CFUNC void setShowWarning(UBool val)
43 U_CFUNC UBool getShowWarning(){
47 static UBool gStrict =FALSE;
48 U_CFUNC UBool isStrict(){
51 U_CFUNC void setStrict(UBool val){
54 static UBool gVerbose =FALSE;
55 U_CFUNC UBool isVerbose(){
58 U_CFUNC void setVerbose(UBool val){
61 U_CFUNC void warning(uint32_t linenumber, const char *msg, ...)
68 fprintf(stderr, "%s:%u: warning: ", gCurrentFileName, (int)linenumber);
69 vfprintf(stderr, msg, va);
70 fprintf(stderr, "\n");