Changeset fb2ce27 for doc/papers/general/evaluation/cfa-stack.c
- Timestamp:
- Mar 8, 2018, 1:37:46 PM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, 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:
- 28bc8c8
- Parents:
- f1f8e55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/cfa-stack.c
rf1f8e55 rfb2ce27 31 31 32 32 forall(otype T) void push( stack(T) & s, T value ) with( s ) { 33 stack_node(T)* n ew_node= malloc();34 (*n ew_node){ value, head };35 head = n ew_node;33 stack_node(T)* n = malloc(); 34 (*n){ value, head }; 35 head = n; 36 36 } 37 37 … … 39 39 stack_node(T) * n = head; 40 40 head = n->next; 41 T v= n->value;41 T x = n->value; 42 42 ^(*n){}; 43 43 free( n ); 44 return v;44 return x; 45 45 } 46 46 … … 52 52 free(crnt); 53 53 } 54 s.head = 0;54 head = 0; 55 55 }
Note: See TracChangeset
for help on using the changeset viewer.