diff options
author | David Robillard <d@drobilla.net> | 2024-03-29 09:36:50 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-03-29 09:36:50 -0400 |
commit | 59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5 (patch) | |
tree | 97ab4ea6c37e4ffe1616a07331f5a82c72f736b8 | |
parent | b1fc9980dfb154cb960d68b9932988e865a66437 (diff) | |
download | serd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.tar.gz serd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.tar.bz2 serd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.zip |
Use unsigned constants for all explicit enumerator values
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | include/serd/serd.h | 8 |
2 files changed, 6 insertions, 5 deletions
@@ -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 <d@drobilla.net> Fri, 29 Mar 2024 10:48:45 +0000 + -- David Robillard <d@drobilla.net> 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 |