Mercurial > hg > CbC > old > akasha
view src/insert_verification/akashaCS.c @ 16:3acaadc0a60c
Enumerate all insetion patterns
author | Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 20 Mar 2016 23:39:31 +0900 |
parents | e864ede359cc |
children | 38ba1606e62d |
line wrap: on
line source
#include <stdlib.h> #include "akashaLLRBContext.h" extern __code initLLRBContext(struct Context*, enum Code); __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)); goto initLLRBContext(context, next); } __code exitCode(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); }