- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cfa-stack.c
r309be81 r75ac87e 8 8 9 9 forall(otype T) void ?{}(stack(T)* s) { 10 ?{}( s->head, 0 );10 ?{}( &s->head, 0 ); 11 11 } 12 12 … … 25 25 26 26 forall(otype T) void push(stack(T)* s, T value) { 27 s->head = new( value, s->head );27 s->head = ((stack_node(T)*)malloc()){ value, s->head }; 28 28 } 29 29
Note: See TracChangeset
for help on using the changeset viewer.