Changeset db67b11 for src/tests/avltree


Ignore:
Timestamp:
Aug 14, 2017, 5:50:11 PM (7 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:
c93bc28
Parents:
b37dba0
Message:

Fix avl_test to use stdlib include instead of 'delete' forward declaration

Location:
src/tests/avltree
Files:
4 edited

Legend:

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

    rb37dba0 rdb67b11  
    2121// xxx - unbound type variable problems when trying to use new instead of create
    2222// forall( otype T, ttype Params | { void ?{}(T *, Params); } ) T * new( Params p );
    23 
    24 forall(dtype T | { void ^?{}(T &); })
    25 void delete(T * x);
    2623
    2724// To-do: properly use height or balance factor
  • src/tests/avltree/avl1.c

    rb37dba0 rdb67b11  
    11#include "avl.h"
    22// #include "cwrap.h"
     3#include <stdlib>
    34
    45forall(otype K | Comparable(K), otype V)
  • src/tests/avltree/avl3.c

    rb37dba0 rdb67b11  
    11#include "avl.h"
    22#include "avl-private.h"
     3#include <stdlib>
    34
    45// from stdlib
     
    3233  t->left = NULL;
    3334  t->right = NULL;
    34   deleteSingleNode(t);
     35  delete(t);
    3536}
    3637
  • src/tests/avltree/avl_test.c

    rb37dba0 rdb67b11  
    11#include "avl.h"
    22#include "avl-private.h"
     3#include <stdlib>
    34
    45extern "C" {
Note: See TracChangeset for help on using the changeset viewer.