view src/llrb/origin_cs.c @ 363:3aab69fc4c28

Fix twice
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 29 Jun 2017 01:14:21 +0900
parents 368306e1bfed
children
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 start_code(struct Context* context, enum Code next) {
    goto meta(context, next);
}

__code exit_code(struct Context* context) {
    free(context->code);
    free(context->data);
    free(context->heapStart);
    goto exit(0);
}