Mercurial > hg > Gears > GearsAgda
comparison src/llrb/llrb.c @ 108:4db311ba1289
Set allocation size
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 12 Apr 2016 16:40:29 +0900 |
parents | c13575c3dbe9 |
children |
comparison
equal
deleted
inserted
replaced
107:67f68f9c04b6 | 108:4db311ba1289 |
---|---|
48 } else { | 48 } else { |
49 tree->current = oldNode->left; | 49 tree->current = oldNode->left; |
50 newNode->left = context->heap; | 50 newNode->left = context->heap; |
51 } | 51 } |
52 | 52 |
53 context->data[Allocate]->allocate.size = sizeof(struct Node); | |
53 allocator(context); | 54 allocator(context); |
54 | 55 |
55 if (tree->current) { | 56 if (tree->current) { |
56 compare(context, tree, tree->current->key, context->data[Node]->node.key); | 57 compare(context, tree, tree->current->key, context->data[Node]->node.key); |
57 goto meta(context, Replace); | 58 goto meta(context, Replace); |