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

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

Update generics paper benchmarks

  • Property mode set to 100644
File size: 345 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, struct stack* src, void* (*copy)(void*));
12
13void clear_stack(struct stack* s);
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.