comparison src/include/origin_cs.h @ 13:a765eb7f3b7c

implement delete, traverse
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 07 Apr 2015 15:39:14 +0900
parents
children 907c69e21e56
comparison
equal deleted inserted replaced
12:81411d8f9a77 13:a765eb7f3b7c
1 __code start_code();
2 __code meta_start_code();
3 __code exit_code();
4
5 __code start_code(Context* context, __code (*next)()) {
6 goto meta_start_code(context, next);
7 }
8
9 __code meta_start_code(Context* context, __code (*next)()) {
10 context->next = next;
11 goto context->next(context);
12 }
13
14 __code exit_code(Context* context) {
15 free(context->ds_heap);
16 free(context->mds_heap);
17 goto exit(0);
18 }