diff src/llrb/llrbContext.c @ 65:025fd6e90597

to the function call(allocate and compare)
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 14 Jul 2015 15:59:41 +0900
parents c469c5ed5b4d
children 368306e1bfed
line wrap: on
line diff
--- a/src/llrb/llrbContext.c	Mon Jul 13 23:22:12 2015 +0900
+++ b/src/llrb/llrbContext.c	Tue Jul 14 15:59:41 2015 +0900
@@ -9,11 +9,9 @@
 extern __code code5(struct Context*);
 extern __code code6_stub(struct Context*);
 extern __code meta(struct Context*);
-extern __code allocate(struct Context*);
 extern __code put_stub(struct Context*);
 extern __code replaceNode_stub(struct Context*);
 extern __code insertNode_stub(struct Context*);
-extern __code compare_stub(struct Context*);
 extern __code rotateLeft_stub(struct Context*);
 extern __code rotateRight_stub(struct Context*);
 extern __code colorFlip_stub(struct Context*);
@@ -25,7 +23,6 @@
 
 __code initLLRBContext(struct Context* context) {
     context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE;
-    context->next = malloc(sizeof(enum Code)*ALLOCATE_SIZE);
     context->code = malloc(sizeof(__code*)*ALLOCATE_SIZE);
     context->data = malloc(sizeof(union Data*)*ALLOCATE_SIZE);
     context->heapStart = malloc(context->heapLimit);
@@ -36,11 +33,9 @@
     context->code[Code3]     = code3_stub;
     context->code[Code4]     = code4;
     context->code[Code5]     = code5;
-    context->code[Allocator] = allocate;
     context->code[Put]       = put_stub;
     context->code[Replace]   = replaceNode_stub;
     context->code[Insert]    = insertNode_stub;
-    context->code[Compare]   = compare_stub;
     context->code[RotateL]   = rotateLeft_stub;
     context->code[RotateR]   = rotateRight_stub;
     context->code[ColorFlip] = colorFlip_stub;