source: doc/papers/OOPSLA17/evaluation/cfa-stack.h@ 2097cd4

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 2097cd4 was f4e3419d, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

restructure paper documents

  • Property mode set to 100644
File size: 466 bytes
Line 
1#pragma once
2
3forall(otype T) struct stack_node;
4forall(otype T) struct stack {
5 stack_node(T)* head;
6};
7
8forall(otype T) void ?{}(stack(T)* s);
9forall(otype T) void ?{}(stack(T)* s, stack(T) t);
10forall(otype T) stack(T) ?=?(stack(T)* s, stack(T) t);
11forall(otype T) void ^?{}(stack(T)* s);
12
13forall(otype T) _Bool empty(const stack(T)* s);
14forall(otype T) void push(stack(T)* s, T value);
15forall(otype T) T pop(stack(T)* s);
16forall(otype T) void clear(stack(T)* s);
Note: See TracBrowser for help on using the repository browser.