aboutsummaryrefslogtreecommitdiff
path: root/src/sbuffer.h
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2023-05-01 18:27:07 +0200
committerkoekeishiya <aasvi93@hotmail.com>2023-05-01 18:27:07 +0200
commit18dd6a0418ddb8a03e91aed5d6e465e519d95ebd (patch)
tree735b72d52c8e5a076badbc3db81850a691791c58 /src/sbuffer.h
parentb659b90576cf88100b52ca6ab9270d84af7e579b (diff)
downloadskhd-18dd6a0418ddb8a03e91aed5d6e465e519d95ebd.tar.gz
skhd-18dd6a0418ddb8a03e91aed5d6e465e519d95ebd.zip
cleanup, add service commands
Diffstat (limited to 'src/sbuffer.h')
-rw-r--r--src/sbuffer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sbuffer.h b/src/sbuffer.h
index dc98b6e..5dca5cc 100644
--- a/src/sbuffer.h
+++ b/src/sbuffer.h
@@ -24,9 +24,7 @@ struct buf_hdr
#define buf_last(b) ((b)[buf_len(b)-1])
#define buf_free(b) ((b) ? free(buf__hdr(b)) : 0)
-#define internal static
-
-internal void *buf__grow_f(const void *buf, size_t new_len, size_t elem_size)
+static void *buf__grow_f(const void *buf, size_t new_len, size_t elem_size)
{
size_t new_cap = buf_MAX(1 + 2*buf_cap(buf), new_len);
size_t new_size = buf_OFFSETOF(struct buf_hdr, buf) + new_cap*elem_size;
@@ -38,6 +36,4 @@ internal void *buf__grow_f(const void *buf, size_t new_len, size_t elem_size)
return new_hdr->buf;
}
-#undef internal
-
#endif