source:
doc/papers/general/evaluation/c-stack.h@
4edf753
Last change on this file since 4edf753 was e59f0bf, checked in by , 8 years ago | |
---|---|
|
|
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.