92
|
1 #include <stdio.h>
|
|
2
|
|
3 #include "context.h"
|
|
4 #include "origin_cs.h"
|
|
5
|
|
6 __code twice(struct Context* context, int index, int* array) {
|
|
7 printf("No.%d %p\n", context->thread_num, context->thread);
|
|
8 array[index] = array[index]*2;
|
|
9
|
|
10 stack_pop(context->code_stack, &context->next);
|
|
11 goto meta(context, context->next);
|
|
12 }
|
|
13
|
|
14 __code twice_stub(struct Context* context) {
|
|
15 goto twice(context, context->data[Node]->node.value->array.index, context->data[Node]->node.value->array.array);
|
|
16 }
|
86
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17
|