From: Michael Orlitzky Date: Wed, 15 Nov 2023 17:32:23 +0000 (-0500) Subject: test/decode_svg.c: handle svgtiny_LIBCSS_ERROR X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=inline;h=db526eaa10e6072f43f57298df1cfea0377ae7a4;p=libsvgtiny.git test/decode_svg.c: handle svgtiny_LIBCSS_ERROR 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. --- diff --git a/test/decode_svg.c b/test/decode_svg.c index b723e9e..7c10448 100644 --- a/test/decode_svg.c +++ b/test/decode_svg.c @@ -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;