]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
examples/svgtiny_display_x11.c: handle svgtiny_LIBCSS_ERROR
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 15 Nov 2023 17:32:06 +0000 (12:32 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Nov 2023 16:42:58 +0000 (11:42 -0500)
This example program has a switch statement to handle errors, with one
case for each svgtiny_code. Now that svgtiny_LIBCSS_ERROR belongs to
that enum, we add it to the list of cases.

examples/svgtiny_display_x11.c

index 463beb80929b82dcc9e66f0cbaf145011c870e4e..291449d8c31eb1dcd78084ef66039f245e9918d8 100644 (file)
@@ -126,6 +126,9 @@ int main(int argc, char *argv[])
                                        diagram->error_line,
                                        diagram->error_message);
                        break;
+               case svgtiny_LIBCSS_ERROR:
+                       fprintf(stderr, "svgtiny_LIBCSS_ERROR");
+                       break;
                default:
                        fprintf(stderr, "unknown svgtiny_code %i", code);
                        break;