blob: 841dd42a036aa1b36af1c5543360b2594ed2705d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* errormsg.h
*
* This file is part of the ttf2pk package.
*
* Copyright 1997-1999, 2000 by
* Frederic Loyer <loyer@ensta.fr>
* Werner Lemberg <wl@gnu.org>
*/
#ifndef ERRORMSG_H
#define ERRORMSG_H
/*
Disable some annoying warnings when you compile with -W3. Namely the
warnings about missing __cdecl specifiers at some places where they are
not really needed because the compiler can generate them.
This is relevant only if you compile with -Gr option, i.e., use fastcall
calling convention.
This is needed for fpTeX.
*/
#ifdef WIN32
#pragma warning (disable : 4007 4096)
#define XCDECL __cdecl
#else
#define XCDECL
#endif
extern const char *progname; /* the origin of the error/warning message */
void oops(const char *message,
...);
void boops(const char *buffer,
size_t offset,
const char *message,
...);
void warning(const char *message,
...);
#endif /* ERRORMSG_H */
/* end */
|