From: Michael Orlitzky Date: Wed, 4 Oct 2023 03:51:14 +0000 (-0400) Subject: README: document the new svgtiny_LIBCSS_ERROR code X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a5bf4ea6e6f6f3f9623cb63963e591f030396fa7;p=libsvgtiny.git README: document the new svgtiny_LIBCSS_ERROR code --- diff --git a/README b/README index 36f3842..de46390 100644 --- a/README +++ b/README @@ -162,8 +162,16 @@ error. The error is recorded in diagram->error_message and the line that caused it in diagram->error_line. svgtiny_LIBDOM_ERROR indicates that parsing the XML failed. The -returned diagram will contain no shapes. svgtiny_NOT_SVG means that -the XML did not contain a top-level element. +returned diagram will contain no shapes. + +svgtiny_LIBCSS_ERROR indicates that something went wrong in +libcss. Either it failed to initialize, or it failed to parse +something within the SVG, or it failed un-initialize (free +resources). Except in the last case, the returned diagram will be +empty. + +svgtiny_NOT_SVG means that the XML did not contain a top-level + element. To free memory used by a diagram, use svgtiny_free():