Mercurial > hg > Papers > 2016 > kkb-master
view src/sample_transform.c @ 11:12d1c2f53258
revision
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 14 Feb 2016 07:02:11 +0900 |
parents | |
children |
line wrap: on
line source
// Code Gear __code code1(struct Context* context, struct Allocate* allocate) { allocate->size = sizeof(struct Data1); context->next = Code2; goto meta(context, Allocator); } // Meta Code Gear(stub) __code code1_stub(struct Context* context) { goto code1(context, &context->data[Allocate]->allocate); } // Code Gear __code code2(struct Context* context, struct Data1* data1) { // processing } // Meta Code Gear(stub) __code code2_stub(struct Context* context) { goto code2(context, &context->data[context->dataNum]->data1); }