ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since dd05e12 was 604e76d, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago |
initial setup for general and concurrency papers
|
-
Property mode
set to
100644
|
File size:
376 bytes
|
Rev | Line | |
---|
[604e76d] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | struct stack_node;
|
---|
| 4 | struct stack {
|
---|
| 5 | struct stack_node* head;
|
---|
| 6 | };
|
---|
| 7 |
|
---|
| 8 | struct stack new_stack();
|
---|
| 9 | void copy_stack(struct stack* dst, const struct stack* src, void* (*copy)(const void*));
|
---|
| 10 | void clear_stack(struct stack* s, void (*free_el)(void*));
|
---|
| 11 |
|
---|
| 12 | _Bool stack_empty(const struct stack* s);
|
---|
| 13 | void push_stack(struct stack* s, void* value);
|
---|
| 14 | void* pop_stack(struct stack* s);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.