Mercurial > hg > Members > Moririn
view src/parallel_execution/origin_cs.c @ 206:bd11fa6891b6
Add stub to origin_cs
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 20 Dec 2016 17:19:54 +0900 (2016-12-20) |
parents | 4f6a660c14a1 |
children |
line wrap: on
line source
#include <stdlib.h> #include <stdio.h> #include "context.h" __code meta(struct Context* context, enum Code next) { // printf("meta %d\n",next); goto (context->code[next])(context); } __code start_code(struct Context* context) { goto meta(context, context->next); } __code start_code_stub(struct Context* context) { goto start_code(context); } __code exit_code(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); } __code exit_code_stub(struct Context* context) { goto exit_code(context); }