Changeset 8b001bd for doc/papers/general/evaluation/cfa-stack.c
- Timestamp:
- Mar 9, 2018, 1:08:32 PM (6 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:
- 3d8f2f8
- Parents:
- 81e8ab0 (diff), e59f0bf (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/papers/general/evaluation/cfa-stack.c
r81e8ab0 r8b001bd 6 6 stack_node(T) * next; 7 7 }; 8 9 forall( otype T ) void clear( stack(T) & s ) with( s ) { 10 for ( stack_node(T) * next = head; next; ) { 11 stack_node(T) * crnt = next; 12 next = crnt->next; 13 ^(*crnt){}; 14 free(crnt); 15 } 16 head = 0; 17 } 8 18 9 19 forall( otype T ) void ?{}( stack(T) & s ) { (s.head){ 0 }; } … … 17 27 } 18 28 *crnt = 0; 19 }20 21 forall( otype T ) void clear( stack(T) & s ) with( s ) {22 for ( stack_node(T) * next = head; next; ) {23 stack_node(T) * crnt = next;24 next = crnt->next;25 ^(*crnt){};26 free(crnt);27 }28 head = 0;29 29 } 30 30
Note: See TracChangeset
for help on using the changeset viewer.