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

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

Minor cleanup, also filled in benchmark source appendix

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