new-envwith_gc
Last change
on this file since 1cdfa82 was
e59f0bf,
checked in by Aaron Moss <a3moss@…>, 7 years ago
|
Update benchmarks so that C has assign operator like others
|
-
Property mode set to
100644
|
File size:
505 bytes
|
Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | struct stack_node; |
---|
4 | struct stack { |
---|
5 | struct stack_node* head; |
---|
6 | }; |
---|
7 | |
---|
8 | struct stack new_stack(); |
---|
9 | void copy_stack(struct stack* dst, const struct stack* src, void* (*copy)(const void*)); |
---|
10 | struct stack* assign_stack(struct stack* dst, const struct stack* src, |
---|
11 | void* (*copy_el)(const void*), void (*free_el)(void*)); |
---|
12 | void clear_stack(struct stack* s, void (*free_el)(void*)); |
---|
13 | |
---|
14 | _Bool stack_empty(const struct stack* s); |
---|
15 | void push_stack(struct stack* s, void* value); |
---|
16 | void* pop_stack(struct stack* s); |
---|
Note: See
TracBrowser
for help on using the repository browser.