diff options
author | David Robillard <d@drobilla.net> | 2020-12-26 19:23:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-26 19:23:44 +0100 |
commit | 87aca493cd6ad0ffc49a896c9f8342d52ad6aa96 (patch) | |
tree | 25d222a5f8db03780cd1836dbca28ab5051cc173 /src/sord_internal.h | |
parent | c05ab9add46d84e39bea5ee59258564ba35a9582 (diff) | |
download | sord-87aca493cd6ad0ffc49a896c9f8342d52ad6aa96.tar.gz sord-87aca493cd6ad0ffc49a896c9f8342d52ad6aa96.tar.bz2 sord-87aca493cd6ad0ffc49a896c9f8342d52ad6aa96.zip |
Format all code with clang-format
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r-- | src/sord_internal.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h index 872b1c1..0b74bcd 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -23,31 +23,31 @@ #include <stddef.h> #if defined(__GNUC__) && __GNUC__ > 4 -# define SORD_UNREACHABLE() __builtin_unreachable() +# define SORD_UNREACHABLE() __builtin_unreachable() #else -# include <assert.h> -# define SORD_UNREACHABLE() assert(0) +# include <assert.h> +# define SORD_UNREACHABLE() assert(0) #endif /** Resource node metadata */ typedef struct { - size_t refs_as_obj; ///< References as a quad object + size_t refs_as_obj; ///< References as a quad object } SordResourceMetadata; /** Literal node metadata */ typedef struct { - SordNode* datatype; ///< Optional literal data type URI - char lang[16]; ///< Optional language tag + SordNode* datatype; ///< Optional literal data type URI + char lang[16]; ///< Optional language tag } SordLiteralMetadata; /** Node */ struct SordNodeImpl { - SerdNode node; ///< Serd node - size_t refs; ///< Reference count (# of containing quads) - union { - SordResourceMetadata res; - SordLiteralMetadata lit; - } meta; + SerdNode node; ///< Serd node + size_t refs; ///< Reference count (# of containing quads) + union { + SordResourceMetadata res; + SordLiteralMetadata lit; + } meta; }; #endif /* SORD_SORD_INTERNAL_H */ |