From 59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Mar 2024 09:36:50 -0400 Subject: Use unsigned constants for all explicit enumerator values --- NEWS | 3 ++- include/serd/serd.h | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 8ca038a5..fc35155c 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,11 @@ serd (0.32.3) unstable; urgency=medium + * Clean up enum declarations * Fix library current_version on MacOS * Fix parsing NQuads lines with no space before the final dot * Support reading lone lists in lax mode - -- David Robillard Fri, 29 Mar 2024 10:48:45 +0000 + -- David Robillard Fri, 29 Mar 2024 13:36:36 +0000 serd (0.32.2) stable; urgency=medium diff --git a/include/serd/serd.h b/include/serd/serd.h index 498c1dab..1f84950b 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -75,10 +75,10 @@ extern "C" { /// RDF syntax type typedef enum { - SERD_TURTLE = 1, ///< Terse triples http://www.w3.org/TR/turtle - SERD_NTRIPLES = 2, ///< Line-based triples http://www.w3.org/TR/n-triples/ - SERD_NQUADS = 3, ///< Line-based quads http://www.w3.org/TR/n-quads/ - SERD_TRIG = 4, ///< Terse quads http://www.w3.org/TR/trig/ + SERD_TURTLE = 1U, ///< Terse triples http://www.w3.org/TR/turtle + SERD_NTRIPLES = 2U, ///< Line-based triples http://www.w3.org/TR/n-triples/ + SERD_NQUADS = 3U, ///< Line-based quads http://www.w3.org/TR/n-quads/ + SERD_TRIG = 4U, ///< Terse quads http://www.w3.org/TR/trig/ } SerdSyntax; /// Flags indicating certain string properties relevant to serialisation -- cgit v1.2.1