]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genrb/errmsg.c
2 *******************************************************************************
4 * Copyright (C) 1998-2004, 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 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 void setShowWarning(UBool val
)
41 UBool
getShowWarning(){
45 static UBool gStrict
=FALSE
;
49 void setStrict(UBool val
){
52 static UBool gVerbose
=FALSE
;
56 void setVerbose(UBool val
){
59 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");