Mercurial > hg > CbC > old > akasha
view src/insert_verification/akashaCS.c @ 6:3f00d95339a7
Use llrb in akasha
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Mar 2016 11:45:17 +0900 |
parents | d41e349d6e22 |
children | 46bc6ea5fa81 |
line wrap: on
line source
#include <stdlib.h> #include "llrbContext.h" __code meta(struct Context* context, enum Code next) { goto (context->code[next])(context); } __code startCode(enum Code next) { struct Context* context = (struct Context*)malloc(sizeof(struct Context)); initLLRBContext(context); goto meta(context, next); } __code exitCode(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); }