aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-23 21:48:43 -0400
committerDavid Robillard <d@drobilla.net>2022-10-23 21:48:43 -0400
commit09f40d2e1e5f987b97410535435a7a1db7323511 (patch)
treef1c41534a2cfbb611158395318805692ed575085 /include
parent83cd85ce89590ab06e78a3ff0adf10f636c4103e (diff)
downloadserd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.gz
serd-09f40d2e1e5f987b97410535435a7a1db7323511.tar.bz2
serd-09f40d2e1e5f987b97410535435a7a1db7323511.zip
Use uppercase integer literal suffixes
Diffstat (limited to 'include')
-rw-r--r--include/serd/serd.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index fbadff9b..0e1913f8 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -83,8 +83,8 @@ typedef enum {
/// Flags indicating certain string properties relevant to serialisation
typedef enum {
- SERD_HAS_NEWLINE = 1u << 0u, ///< Contains line breaks ('\\n' or '\\r')
- SERD_HAS_QUOTE = 1u << 1u ///< Contains quotes ('"')
+ SERD_HAS_NEWLINE = 1U << 0U, ///< Contains line breaks ('\\n' or '\\r')
+ SERD_HAS_QUOTE = 1U << 1U ///< Contains quotes ('"')
} SerdNodeFlag;
/// Bitwise OR of SerdNodeFlag values
@@ -543,14 +543,14 @@ serd_node_free(SerdNode* SERD_NULLABLE node);
/// Flags indicating inline abbreviation information for a statement
typedef enum {
- SERD_EMPTY_S = 1u << 1u, ///< Empty blank node subject
- SERD_EMPTY_O = 1u << 2u, ///< Empty blank node object
- SERD_ANON_S_BEGIN = 1u << 3u, ///< Start of anonymous subject
- SERD_ANON_O_BEGIN = 1u << 4u, ///< Start of anonymous object
- SERD_ANON_CONT = 1u << 5u, ///< Continuation of anonymous node
- SERD_LIST_S_BEGIN = 1u << 6u, ///< Start of list subject
- SERD_LIST_O_BEGIN = 1u << 7u, ///< Start of list object
- SERD_LIST_CONT = 1u << 8u ///< Continuation of list
+ SERD_EMPTY_S = 1U << 1U, ///< Empty blank node subject
+ SERD_EMPTY_O = 1U << 2U, ///< Empty blank node object
+ SERD_ANON_S_BEGIN = 1U << 3U, ///< Start of anonymous subject
+ SERD_ANON_O_BEGIN = 1U << 4U, ///< Start of anonymous object
+ SERD_ANON_CONT = 1U << 5U, ///< Continuation of anonymous node
+ SERD_LIST_S_BEGIN = 1U << 6U, ///< Start of list subject
+ SERD_LIST_O_BEGIN = 1U << 7U, ///< Start of list object
+ SERD_LIST_CONT = 1U << 8U ///< Continuation of list
} SerdStatementFlag;
/// Bitwise OR of SerdStatementFlag values
@@ -878,11 +878,11 @@ typedef struct SerdWriterImpl SerdWriter;
does not support abbreviation and is always ASCII.
*/
typedef enum {
- SERD_STYLE_ABBREVIATED = 1u << 0u, ///< Abbreviate triples when possible.
- SERD_STYLE_ASCII = 1u << 1u, ///< Escape all non-ASCII characters.
- SERD_STYLE_RESOLVED = 1u << 2u, ///< Resolve URIs against base URI.
- SERD_STYLE_CURIED = 1u << 3u, ///< Shorten URIs into CURIEs.
- SERD_STYLE_BULK = 1u << 4u, ///< Write output in pages.
+ SERD_STYLE_ABBREVIATED = 1U << 0U, ///< Abbreviate triples when possible.
+ SERD_STYLE_ASCII = 1U << 1U, ///< Escape all non-ASCII characters.
+ SERD_STYLE_RESOLVED = 1U << 2U, ///< Resolve URIs against base URI.
+ SERD_STYLE_CURIED = 1U << 3U, ///< Shorten URIs into CURIEs.
+ SERD_STYLE_BULK = 1U << 4U, ///< Write output in pages.
} SerdStyle;
/// Create a new RDF writer