Changeset 627f585 for src/tests/avltree


Ignore:
Timestamp:
Jan 10, 2017, 2:32:33 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
dd0c97b
Parents:
f831177
Message:

moved new and delete to stdlib

Location:
src/tests/avltree
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tests/avltree/avl.h

    rf831177 r627f585  
    1919forall(otype T | Comparable(T))
    2020int ?>?(T t1, T t2);
     21
     22// xxx - unbound type variable problems when trying to use new instead of create
     23// forall( otype T, ttype Params | { void ?{}(T *, Params); } ) T * new( Params p );
    2124
    2225forall(dtype T | { void ^?{}(T *); })
  • src/tests/avltree/avl0.c

    rf831177 r627f585  
    1010  return t2 < t1;
    1111}
    12 
    13 forall(dtype T | { void ^?{}(T *); })
    14 void delete(T * x) {
    15   if (x) {
    16     ^?{}(x);
    17     free(x);
    18   }
    19 }
Note: See TracChangeset for help on using the changeset viewer.