]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
test/decode_svg.c: handle svgtiny_LIBCSS_ERROR
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 15 Nov 2023 17:32:23 +0000 (12:32 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Nov 2023 16:42:58 +0000 (11:42 -0500)
This test 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.

test/decode_svg.c

index b723e9e6e25a5c9c43d77c2aa364212532a02273..7c1044848041b5224f51a53e2ca77061c61fbb65 100644 (file)
@@ -173,6 +173,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;