Changeset db67b11
- Timestamp:
- Aug 14, 2017, 5:50:11 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:
- c93bc28
- Parents:
- b37dba0
- Location:
- src/tests/avltree
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/avltree/avl.h
rb37dba0 rdb67b11 21 21 // xxx - unbound type variable problems when trying to use new instead of create 22 22 // forall( otype T, ttype Params | { void ?{}(T *, Params); } ) T * new( Params p ); 23 24 forall(dtype T | { void ^?{}(T &); })25 void delete(T * x);26 23 27 24 // To-do: properly use height or balance factor -
src/tests/avltree/avl1.c
rb37dba0 rdb67b11 1 1 #include "avl.h" 2 2 // #include "cwrap.h" 3 #include <stdlib> 3 4 4 5 forall(otype K | Comparable(K), otype V) -
src/tests/avltree/avl3.c
rb37dba0 rdb67b11 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib> 3 4 4 5 // from stdlib … … 32 33 t->left = NULL; 33 34 t->right = NULL; 34 delete SingleNode(t);35 delete(t); 35 36 } 36 37 -
src/tests/avltree/avl_test.c
rb37dba0 rdb67b11 1 1 #include "avl.h" 2 2 #include "avl-private.h" 3 #include <stdlib> 3 4 4 5 extern "C" {
Note: See TracChangeset
for help on using the changeset viewer.