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
12 + case gs_error_Fatal:
13 fprintf (stderr, "fatal internal error %d", code);
17 - case e_ExecStackUnderflow:
18 + case gs_error_ExecStackUnderflow:
19 fprintf (stderr, "stack overflow %d", code);
23 set = _spectre_strdup_printf ("%d %d translate\n", -x, -y);
24 error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set),
26 - error = error == e_NeedInput ? 0 : error;
27 + error = error == gs_error_NeedInput ? 0 : error;
29 - if (error != e_NeedInput && critic_error_code (error)) {
30 + if (error != gs_error_NeedInput && critic_error_code (error)) {
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;