source: doc/papers/general/evaluation/c-stack.h @ ac4dad2

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerwith_gc
Last change on this file since ac4dad2 was ac4dad2, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

shorten experimental code

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