python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libspectre / libspectre-0.2.7-gs918.patch
blobe9a4eda192bab20b93134d0bcb622e9dea2efef3
1 Fixed error namespace for >=ghostscript-gpl-9.18
3 https://bugs.gentoo.org/563540
5 --- libspectre-0.2.7/libspectre/spectre-gs.c
6 +++ libspectre-0.2.7/libspectre/spectre-gs.c
7 @@ -43,12 +43,12 @@
9 if (code <= -100) {
10 switch (code) {
11 - case e_Fatal:
12 + case gs_error_Fatal:
13 fprintf (stderr, "fatal internal error %d", code);
14 return TRUE;
15 break;
17 - case e_ExecStackUnderflow:
18 + case gs_error_ExecStackUnderflow:
19 fprintf (stderr, "stack overflow %d", code);
20 return TRUE;
21 break;
22 @@ -109,9 +109,9 @@
23 set = _spectre_strdup_printf ("%d %d translate\n", -x, -y);
24 error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set),
25 0, &exit_code);
26 - error = error == e_NeedInput ? 0 : error;
27 + error = error == gs_error_NeedInput ? 0 : error;
28 free (set);
29 - if (error != e_NeedInput && critic_error_code (error)) {
30 + if (error != gs_error_NeedInput && critic_error_code (error)) {
31 fclose (fd);
32 return FALSE;
34 @@ -126,7 +126,7 @@
35 read = fread (buf, sizeof (char), to_read, fd);
36 error = gsapi_run_string_continue (ghostscript_instance,
37 buf, read, 0, &exit_code);
38 - error = error == e_NeedInput ? 0 : error;
39 + error = error == gs_error_NeedInput ? 0 : error;
40 left -= read;