Mercurial > hg > Gears > GearsAgda
view src/synchronizedQueue/origin_cs.c @ 149:63ab65b28466
Add Gearef macro
author | one |
---|---|
date | Thu, 10 Nov 2016 20:37:52 +0900 |
parents | 765ee56d68f1 |
children |
line wrap: on
line source
#include <stdlib.h> #include "synchronizedQueueContext.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); }