ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change
on this file since e7602ed was
e59f0bf,
checked in by Aaron Moss <a3moss@…>, 6 years ago
|
Update benchmarks so that C has assign operator like others
|
-
Property mode set to
100644
|
File size:
505 bytes
|
Rev | Line | |
---|
[604e76d] | 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*)); |
---|
[e59f0bf] | 10 | struct stack* assign_stack(struct stack* dst, const struct stack* src, |
---|
| 11 | void* (*copy_el)(const void*), void (*free_el)(void*)); |
---|
[604e76d] | 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.