Home | History | Annotate | Download | only in genrb
      1 /*
      2 *******************************************************************************
      3 *
      4 *   Copyright (C) 1998-1999, International Business Machines
      5 *   Corporation and others.  All Rights Reserved.
      6 *
      7 *******************************************************************************
      8 *
      9 * File error.h
     10 *
     11 * Modification History:
     12 *
     13 *   Date        Name        Description
     14 *   05/28/99    stephen     Creation.
     15 *******************************************************************************
     16 */
     17 
     18 #ifndef ERROR_H
     19 #define ERROR_H 1
     20 
     21 extern const char *gCurrentFileName;
     22 
     23 void error   (uint32_t linenumber, const char *msg, ...);
     24 void warning (uint32_t linenumber, const char *msg, ...);
     25 
     26 
     27 /* Show warnings? */
     28 U_CFUNC void setShowWarning(UBool val);
     29 U_CFUNC UBool getShowWarning(void);
     30 
     31 /* strict */
     32 U_CFUNC void setStrict(UBool val);
     33 U_CFUNC UBool isStrict(void);
     34 
     35 /* verbosity */
     36 U_CFUNC void setVerbose(UBool val);
     37 U_CFUNC UBool isVerbose(void);
     38 #endif
     39