ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change
on this file since 8a5bdf0 was
ac4dad2,
checked in by Peter A. Buhr <pabuhr@…>, 6 years ago
|
shorten experimental code
|
-
Property mode set to
100644
|
File size:
465 bytes
|
Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | struct node; |
---|
4 | typedef struct stack { |
---|
5 | struct node * head; |
---|
6 | } stack; |
---|
7 | |
---|
8 | stack new_stack(); |
---|
9 | void copy_stack(stack * dst, const stack * src, void * (* copy)(const void *)); |
---|
10 | stack * assign_stack( stack * dst, const stack * src, |
---|
11 | void * (* copy_el)(const void *), void (* free_el)(void *)); |
---|
12 | void clear_stack(stack * s, void (*free_el)(void *)); |
---|
13 | |
---|
14 | _Bool stack_empty( const stack * s ); |
---|
15 | void push_stack( stack * s, void * value ); |
---|
16 | void * pop_stack( stack * s ); |
---|
Note: See
TracBrowser
for help on using the repository browser.