Mercurial > hg > Members > Moririn
view src/parallel_execution/origin_cs.c @ 140:f31b4e4bf4bb
fixes
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 09 Nov 2016 13:26:53 +0900 |
parents | 9e139a340bd1 |
children | 4f6a660c14a1 |
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 exit_code(struct Context* context) { free(context->code); free(context->data); free(context->heapStart); goto exit(0); }