diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:10:18 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:10:18 +0100 |
commit | 62ff8552500694c96b998d2aac6fbc47ab2d9395 (patch) | |
tree | 570f959104e1dafe49edf553120f0ed9a0b60709 /fitz/fitz.h | |
parent | 6796e89abefe67ea1e35e5f40f6a77620b6de9d8 (diff) | |
download | mupdf-62ff8552500694c96b998d2aac6fbc47ab2d9395.tar.xz |
Remove deprecated error handling code.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 09c12c14..8d523e3f 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -69,35 +69,15 @@ int gettimeofday(struct timeval *tv, struct timezone *tz); */ #if __STDC_VERSION__ == 199901L /* C99 */ - -#define fz_error_make(...) fz_error_make_imp(__FILE__, __LINE__, __func__, __VA_ARGS__) -#define fz_error_note(cause, ...) fz_error_note_imp(__FILE__, __LINE__, __func__, cause, __VA_ARGS__) -#define fz_error_handle(cause, ...) fz_error_handle_imp(__FILE__, __LINE__, __func__, cause, __VA_ARGS__) - #elif _MSC_VER >= 1500 /* MSVC 9 or newer */ - #define inline __inline #define restrict __restrict -#define fz_error_make(...) fz_error_make_imp(__FILE__, __LINE__, __FUNCTION__, __VA_ARGS__) -#define fz_error_note(cause, ...) fz_error_note_imp(__FILE__, __LINE__, __FUNCTION__, cause, __VA_ARGS__) -#define fz_error_handle(cause, ...) fz_error_handle_imp(__FILE__, __LINE__, __FUNCTION__, cause, __VA_ARGS__) - #elif __GNUC__ >= 3 /* GCC 3 or newer */ - #define inline __inline #define restrict __restrict -#define fz_error_make(fmt...) fz_error_make_imp(__FILE__, __LINE__, __FUNCTION__, fmt) -#define fz_error_note(cause, fmt...) fz_error_note_imp(__FILE__, __LINE__, __FUNCTION__, cause, fmt) -#define fz_error_handle(cause, fmt...) fz_error_handle_imp(__FILE__, __LINE__, __FUNCTION__, cause, fmt) - #else /* Unknown or ancient */ - #define inline #define restrict -#define fz_error_make fz_error_make_impx -#define fz_error_note fz_error_note_impx -#define fz_error_handle fz_error_handle_impx - #endif /* @@ -113,26 +93,6 @@ int gettimeofday(struct timeval *tv, struct timezone *tz); #endif #endif -/* - * Deprecated error handling. - */ - -typedef int fz_error; - -#define fz_okay ((fz_error)0) - -fz_error fz_error_make_imp(const char *file, int line, const char *func, char *fmt, ...) __printflike(4, 5); -fz_error fz_error_note_imp(const char *file, int line, const char *func, fz_error cause, char *fmt, ...) __printflike(5, 6); -void fz_error_handle_imp(const char *file, int line, const char *func, fz_error cause, char *fmt, ...) __printflike(5, 6); - -fz_error fz_error_make_impx(char *fmt, ...) __printflike(1, 2); -fz_error fz_error_note_impx(fz_error cause, char *fmt, ...) __printflike(2, 3); -void fz_error_handle_impx(fz_error cause, char *fmt, ...) __printflike(2, 3); - -/* extract the last error stack trace */ -int fz_get_error_count(void); -char *fz_get_error_line(int n); - /* Contexts */ typedef struct fz_alloc_context_s fz_alloc_context; |