source: doc/generic_types/evaluation/c-stack.h @ 87c5f40

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 87c5f40 was 87c5f40, checked in by Aaron Moss <a3moss@…>, 5 years ago

Update benchmarks to include stack of pairs

  • Property mode set to 100644
File size: 381 bytes
Line 
1#pragma once
2
3struct stack_node;
4
5struct stack {
6        struct stack_node* head;
7};
8
9struct stack new_stack();
10
11void copy_stack(struct stack* dst, const struct stack* src, void* (*copy)(const void*));
12
13void clear_stack(struct stack* s, void (*free_el)(void*));
14
15_Bool stack_empty(const struct stack* s);
16
17void push_stack(struct stack* s, void* value);
18
19void* pop_stack(struct stack* s);
Note: See TracBrowser for help on using the repository browser.