Skip to content

Commit 76c06b8

Browse files
committed
Hide RBS_BUFFER_DEFAULT_CAPACITY
1 parent ce48664 commit 76c06b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/rbs/util/rbs_buffer.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
#include <stdlib.h>
99
#include <string.h>
1010

11-
/**
12-
* The default capacity of a rbs_buffer_t.
13-
* If the buffer needs to grow beyond this capacity, it will be doubled.
14-
*/
15-
#define RBS_BUFFER_DEFAULT_CAPACITY 128
16-
1711
/**
1812
* A rbs_buffer_t is a simple memory buffer that stores data in a contiguous block of memory.
1913
*/

src/util/rbs_buffer.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#include "rbs/util/rbs_buffer.h"
22
#include "rbs/util/rbs_assert.h"
33

4+
/**
5+
* The default capacity of a rbs_buffer_t.
6+
* If the buffer needs to grow beyond this capacity, it will be doubled.
7+
*/
8+
#define RBS_BUFFER_DEFAULT_CAPACITY 128
9+
410
bool rbs_buffer_init(rbs_allocator_t *allocator, rbs_buffer_t *buffer) {
511
*buffer = (rbs_buffer_t) {
612
.length = 0,

0 commit comments

Comments
 (0)