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

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 0d10090 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
RevLine 
[d919f47]1#pragma once
2
[309be81]3struct stack_node;
4
5struct stack {
6        struct stack_node* head;
7};
8
9struct stack new_stack();
10
[87c5f40]11void copy_stack(struct stack* dst, const struct stack* src, void* (*copy)(const void*));
[122aecd]12
[87c5f40]13void clear_stack(struct stack* s, void (*free_el)(void*));
[309be81]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.