a patch for ttc fonts with bad index
[luatex.git] / source / libs / poppler / poppler-0.36.0 / poppler / Error.h
blob9e11733d8030738775028f471320cc288c8d23eb
1 //========================================================================
2 //
3 // Error.h
4 //
5 // Copyright 1996-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 //========================================================================
11 // Modified under the Poppler project - http://poppler.freedesktop.org
13 // All changes made under the Poppler project to this file are licensed
14 // under GPL version 2 or later
16 // Copyright (C) 2005, 2007 Jeff Muizelaar <jeff@infidigm.net>
17 // Copyright (C) 2005 Albert Astals Cid <aacid@kde.org>
18 // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com>
19 // Copyright (C) 2013 Adrian Johnson <ajohnson@redneon.com>
20 // Copyright (C) 2014 Fabio D'Urso <fabiodurso@hotmail.it>
22 // To see a description of the changes please see the Changelog file that
23 // came with your tarball or type make ChangeLog if you are building from git
25 //========================================================================
27 #ifndef ERROR_H
28 #define ERROR_H
30 #ifdef USE_GCC_PRAGMAS
31 #pragma interface
32 #endif
34 #include <stdarg.h>
35 #include "poppler-config.h"
36 #include "goo/gtypes.h"
37 #include "goo/GooString.h"
39 enum ErrorCategory {
40 errSyntaxWarning, // PDF syntax error which can be worked around;
41 // output will probably be correct
42 errSyntaxError, // PDF syntax error which can be worked around;
43 // output will probably be incorrect
44 errConfig, // error in Xpdf config info (xpdfrc file, etc.)
45 errCommandLine, // error in user-supplied parameters, action not
46 // allowed, etc. (only used by command-line tools)
47 errIO, // error in file I/O
48 errNotAllowed, // action not allowed by PDF permission bits
49 errUnimplemented, // unimplemented PDF feature - display will be
50 // incorrect
51 errInternal // internal error - malfunction within the Xpdf code
54 extern void setErrorCallback(void (*cbk)(void *data, ErrorCategory category,
55 Goffset pos, char *msg),
56 void *data);
58 extern void CDECL error(ErrorCategory category, Goffset pos, const char *msg, ...) GOOSTRING_FORMAT;
60 #endif