summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 08:56:16 -0500
committerDavid Robillard <d@drobilla.net>2024-11-15 08:56:16 -0500
commit8f29b993fdce549ab44f3529396d0cfb08637e01 (patch)
treed77e9a1c3498b2d96b89f680ecd615f3cc161adf /src
parentaf0663da39d5526b081ab6a6c791240958c7032d (diff)
downloadsord-8f29b993fdce549ab44f3529396d0cfb08637e01.tar.gz
sord-8f29b993fdce549ab44f3529396d0cfb08637e01.tar.bz2
sord-8f29b993fdce549ab44f3529396d0cfb08637e01.zip
Add clang-format configuration
Diffstat (limited to 'src')
-rw-r--r--src/sord.c3
-rw-r--r--src/sord_validate.c3
-rw-r--r--src/syntax.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/sord.c b/src/sord.c
index 1adab9e..ed7f40c 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -209,8 +209,7 @@ sord_node_create(const SordNode* const node)
return copy;
}
-SORD_LOG_FUNC(3, 4)
-static void
+SORD_LOG_FUNC(3, 4) static void
error(SordWorld* world, SerdStatus st, const char* fmt, ...)
{
va_list args;
diff --git a/src/sord_validate.c b/src/sord_validate.c
index 47c2051..094c421 100644
--- a/src/sord_validate.c
+++ b/src/sord_validate.c
@@ -132,8 +132,7 @@ absolute_path(const uint8_t* path)
#endif
}
-SORD_LOG_FUNC(2, 3)
-static int
+SORD_LOG_FUNC(2, 3) static int
errorf(const SordQuad quad, const char* fmt, ...)
{
va_list args;
diff --git a/src/syntax.c b/src/syntax.c
index b15eccc..dc80180 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -79,8 +79,7 @@ sord_inserter_write_statement(SordInserter* inserter,
return SERD_SUCCESS;
}
-SORD_API
-SerdReader*
+SORD_API SerdReader*
sord_new_reader(SordModel* model,
SerdEnv* env,
SerdSyntax syntax,