Changeset 80cdb2f for doc/generic_types/evaluation/cfa-stack.c
- Timestamp:
- Apr 5, 2017, 9:05:36 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 2264c11
- Parents:
- 2f0a3599 (diff), 5671b8d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cfa-stack.c
r2f0a3599 r80cdb2f 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.