diff src/parallel_execution/context.c @ 172:661b0b0d0399

replace Tree to RedBlackTree
author ikkun
date Thu, 24 Nov 2016 20:22:17 +0900
parents ee7134f3bef1
children 5077cf9bf54e
line wrap: on
line diff
--- a/src/parallel_execution/context.c	Thu Nov 24 16:29:46 2016 +0900
+++ b/src/parallel_execution/context.c	Thu Nov 24 20:22:17 2016 +0900
@@ -99,7 +99,6 @@
     context->code[C_insertCase4]  = insertCase4_stub;
     context->code[C_insertCase5]  = insertCase5_stub;
     context->code[C_insertCase51] = insertCase51_stub;
-    context->code[C_stackClear]   = stackClear_stub;
     context->code[C_get]          = get_stub;
     context->code[C_search]       = search_stub;
 
@@ -165,11 +164,9 @@
     
     ALLOC_DATA(context, Stack);
 
-    struct Tree* tree = ALLOC_DATA(context, Tree);
-    tree->root = 0;
+    ALLOC_DATA(context, Tree);
 
-    struct Traverse* traverse = ALLOC_DATA(context, Traverse);
-    traverse->nodeStack = &createSingleLinkedStack(context)->stack;
+    ALLOC_DATA(context, RedBlackTree);
 
     ALLOC_DATA(context, RotateTree);