aboutsummaryrefslogtreecommitdiff
path: root/memstack/include/memstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'memstack/include/memstack.h')
-rw-r--r--memstack/include/memstack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memstack/include/memstack.h b/memstack/include/memstack.h
index 97a9d12..93cd2e6 100644
--- a/memstack/include/memstack.h
+++ b/memstack/include/memstack.h
@@ -32,6 +32,12 @@ void memstack_del(memstack*);
32/// Clear the stack. 32/// Clear the stack.
33void memstack_clear(memstack*); 33void memstack_clear(memstack*);
34 34
35/// Return the top of the stack.
36size_t memstack_watermark(const memstack*);
37
38/// Set the top of the stack.
39void memstack_set_watermark(memstack*, size_t watermark);
40
35/// Allocate a new block. 41/// Allocate a new block.
36/// 42///
37/// Return null if the block does not fit in the remaining memory. 43/// Return null if the block does not fit in the remaining memory.