aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-29 14:10:27 -0400
committerDavid Robillard <d@drobilla.net>2021-05-31 11:37:53 -0400
commit47ecf6ce2b538a4c8bacb71dd923bc733a075892 (patch)
treee310fa2d1799ec54fa108fe8b90974ba3943b01c /src/writer.c
parent35e1cea484c860fba9fc702a4e4ea9d284b26f08 (diff)
downloadserd-47ecf6ce2b538a4c8bacb71dd923bc733a075892.tar.gz
serd-47ecf6ce2b538a4c8bacb71dd923bc733a075892.tar.bz2
serd-47ecf6ce2b538a4c8bacb71dd923bc733a075892.zip
Remove "static inline" for functions in implementation files
This is just noise since these are static functions local to a C compilation unit.
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/writer.c b/src/writer.c
index 94c03f06..aaf2f175 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -150,7 +150,7 @@ w_err(SerdWriter* writer, SerdStatus st, const char* fmt, ...)
va_end(args);
}
-static inline SERD_PURE_FUNC WriteContext*
+SERD_PURE_FUNC static WriteContext*
anon_stack_top(SerdWriter* writer)
{
assert(!serd_stack_is_empty(&writer->anon_stack));
@@ -173,7 +173,7 @@ copy_node(SerdNode* dst, const SerdNode* src)
}
}
-static inline size_t
+static size_t
sink(const void* buf, size_t len, SerdWriter* writer)
{
return serd_byte_sink_write(buf, len, &writer->byte_sink);
@@ -211,7 +211,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size)
return sink(escape, 10, writer);
}
-static inline bool
+static bool
uri_must_escape(const uint8_t c)
{
switch (c) {
@@ -552,7 +552,7 @@ write_literal(SerdWriter* writer,
}
// Return true iff `buf` is a valid prefixed name suffix
-static inline bool
+static bool
is_name(const uint8_t* buf, const size_t len)
{
// TODO: This is more strict than it should be
@@ -755,7 +755,7 @@ write_node(SerdWriter* writer,
return ret;
}
-static inline bool
+static bool
is_resource(const SerdNode* node)
{
return node && node->buf && node->type > SERD_LITERAL;