aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-03-29 09:36:50 -0400
committerDavid Robillard <d@drobilla.net>2024-03-29 09:36:50 -0400
commit59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5 (patch)
tree97ab4ea6c37e4ffe1616a07331f5a82c72f736b8 /include/serd
parentb1fc9980dfb154cb960d68b9932988e865a66437 (diff)
downloadserd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.tar.gz
serd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.tar.bz2
serd-59e77405df9a3af3ccfdd9b3d26f6a43ef922dc5.zip
Use unsigned constants for all explicit enumerator values
Diffstat (limited to 'include/serd')
-rw-r--r--include/serd/serd.h8
1 files changed, 4 insertions, 4 deletions
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