diff options
author | Jean-Louis Fuchs <ganwell@fangorn.ch> | 2017-03-23 14:49:02 +0100 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 12:39:26 +0000 |
commit | a93a9ea4300454d3da446338a6fddd94c2a799d2 (patch) | |
tree | 80fd541c9848ec894d984730af3933803816786c /testing/libspectre/ghostscript-api.patch | |
parent | 2e7328a8092d9db4e2ffa79690805a55dfff0ec6 (diff) | |
download | aports-a93a9ea4300454d3da446338a6fddd94c2a799d2.tar.bz2 aports-a93a9ea4300454d3da446338a6fddd94c2a799d2.tar.xz |
testing/libspectre: Bump, remove returns, add check()
Diffstat (limited to 'testing/libspectre/ghostscript-api.patch')
-rw-r--r-- | testing/libspectre/ghostscript-api.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/testing/libspectre/ghostscript-api.patch b/testing/libspectre/ghostscript-api.patch deleted file mode 100644 index d7f907828e..0000000000 --- a/testing/libspectre/ghostscript-api.patch +++ /dev/null @@ -1,52 +0,0 @@ -diff -ru a/libspectre/spectre-gs.c b/libspectre/spectre-gs.c ---- a/libspectre/spectre-gs.c 2010-04-18 18:01:05.000000000 +0200 -+++ b/libspectre/spectre-gs.c 2017-01-29 15:49:14.428958824 +0100 -@@ -29,6 +29,12 @@ - #include <ghostscript/iapi.h> - #include <ghostscript/ierrors.h> - -+/* Fix ghostscript API till a new release of libspectre -+ * e_ExecStackUnderflow -> gs_error_ExecStackUnderflow -+ * e_Fatal -> gs_error_Fatal -+ * e_NeedInput -> gs_error_NeedInput -+ */ -+ - #define BUFFER_SIZE 32768 - - struct SpectreGS { -@@ -43,12 +49,12 @@ - - if (code <= -100) { - switch (code) { -- case e_Fatal: -+ case gs_error_Fatal: - fprintf (stderr, "fatal internal error %d", code); - return TRUE; - break; - -- case e_ExecStackUnderflow: -+ case gs_error_ExecStackUnderflow: - fprintf (stderr, "stack overflow %d", code); - return TRUE; - break; -@@ -109,9 +115,9 @@ - set = _spectre_strdup_printf ("%d %d translate\n", -x, -y); - error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set), - 0, &exit_code); -- error = error == e_NeedInput ? 0 : error; -+ error = error == gs_error_NeedInput ? 0 : error; - free (set); -- if (error != e_NeedInput && critic_error_code (error)) { -+ if (error != gs_error_NeedInput && critic_error_code (error)) { - fclose (fd); - return FALSE; - } -@@ -126,7 +132,7 @@ - read = fread (buf, sizeof (char), to_read, fd); - error = gsapi_run_string_continue (ghostscript_instance, - buf, read, 0, &exit_code); -- error = error == e_NeedInput ? 0 : error; -+ error = error == gs_error_NeedInput ? 0 : error; - left -= read; - } - |