/* * error.h -- * * Definitions for error handling. * * Copyright (c) 1999 Frank Strauss, Technical University of Braunschweig. * * See the file "COPYING" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * @(#) $Id: error.h 1151 2001-08-22 17:51:42Z strauss $ */ #ifndef _ERROR_H #define _ERROR_H #include "data.h" #include "errormacros.h" /* list of error macros generated from error.c */ #ifdef yyerror #undef yyerror #endif #define yyerror(msg) smiyyerror(msg, parserPtr) extern int smiErrorLevel; /* Higher levels produce more warnings */ extern void smiErrorHandler(char *path, int line, int severity, char *msg, char *tag); extern void smiSetErrorSeverity(char *pattern, int severity); extern int smiGetErrorSeverity(int id); extern char* smiGetErrorTag(int id); extern char* smiGetErrorMsg(int id); extern void smiPrintError(Parser *parser, int id, ...); extern void smiPrintErrorAtLine(Parser *parser, int id, int line, ...); #endif /* _ERROR_H */