Mercurial > hg > CbC > old > akasha
changeset 17:1034102aff1e
Use meta style
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2016 15:26:22 +0900 |
parents | 3acaadc0a60c |
children | 38e8d5a58fe8 |
files | src/insert_verification/akashaLLRBContext.c src/insert_verification/include/akashaLLRBContext.h src/insert_verification/main.c |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/insert_verification/akashaLLRBContext.c Sun Mar 20 23:39:31 2016 +0900 +++ b/src/insert_verification/akashaLLRBContext.c Tue Mar 22 15:26:22 2016 +0900 @@ -7,6 +7,7 @@ extern __code putAndGoToNextDepth_stub (struct Context*); extern __code duplicateIterator_stub(struct Context*); extern __code duplicateIteratorElem_stub(struct Context*); +extern __code duplicateTree_stub(struct Context*); extern __code goToPreviousDepth(struct Context*); /* definitions from llrb */ @@ -65,7 +66,8 @@ context->code[IterateInsertion] = iterateInsertion_stub; context->code[PutAndGoToNextDepth] = putAndGoToNextDepth_stub; context->code[DuplicateIterator] = duplicateIterator_stub; - context->code[DuplicateIteratorElem] = duplicateIterator_stub; + context->code[DuplicateIteratorElem] = duplicateIteratorElem_stub; + context->code[DuplicateTree] = duplicateTree_stub; context->code[GoToPreviousDepth] = goToPreviousDepth; /* definitions from llrb */
--- a/src/insert_verification/include/akashaLLRBContext.h Sun Mar 20 23:39:31 2016 +0900 +++ b/src/insert_verification/include/akashaLLRBContext.h Tue Mar 22 15:26:22 2016 +0900 @@ -10,6 +10,7 @@ PutAndGoToNextDepth, DuplicateIterator, DuplicateIteratorElem, + DuplicateTree, GoToPreviousDepth, /* definitions from llrb */
--- a/src/insert_verification/main.c Sun Mar 20 23:39:31 2016 +0900 +++ b/src/insert_verification/main.c Tue Mar 22 15:26:22 2016 +0900 @@ -108,7 +108,7 @@ if (oldElem->val == iter->previousDepth->iteratedValue) { newElem->next = iter->head; iter->last = iter->head; - goto duplicateTree_stub(context); // meta + goto meta(context, DuplicateTree); } else { struct IterElem* dup = context->heap; allocate->size = sizeof(struct IterElem); @@ -116,8 +116,7 @@ dup->val = oldElem->val; newElem->next = dup; - goto duplicateIteratorElem_stub(context); - //goto meta(context, DuplicateIterElem); // meta + goto meta(context, DuplicateIteratorElem); } }