| 1 |
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. |
| 2 |
|
| 3 |
Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, |
| 4 |
the dvipdfmx project team. |
| 5 |
|
| 6 |
Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]> |
| 7 |
|
| 8 |
This program is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 2 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program; if not, write to the Free Software |
| 20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _ERROR_H_ |
| 24 |
#define _ERROR_H_ |
| 25 |
|
| 26 |
#include "system.h" |
| 27 |
|
| 28 |
extern void error_cleanup (void); |
| 29 |
|
| 30 |
/* Avoid conflict with NO_ERROR from <winerror.h>. */ |
| 31 |
#undef NO_ERROR |
| 32 |
|
| 33 |
#define FATAL_ERROR -1 |
| 34 |
#define NO_ERROR 0 |
| 35 |
|
| 36 |
#include <assert.h> |
| 37 |
#include <stdio.h> |
| 38 |
|
| 39 |
extern void shut_up (int quietness); |
| 40 |
|
| 41 |
/* Avoid conflict with ERROR from <winnt.h>. */ |
| 42 |
#undef ERROR |
| 43 |
|
| 44 |
extern void ERROR (const char *fmt, ...); |
| 45 |
extern void MESG (const char *fmt, ...); |
| 46 |
extern void WARN (const char *fmt, ...); |
| 47 |
|
| 48 |
#define ASSERT(e) assert(e) |
| 49 |
|
| 50 |
#if defined(WIN32) |
| 51 |
#undef vfprintf |
| 52 |
#define vfprintf win32_vfprintf |
| 53 |
#endif |
| 54 |
|
| 55 |
#endif /* _ERROR_H_ */ |