Mercurial > hg > Gears > Gears
view src/parallel_execution/examples/calc/initIntegerDataGears.cbc @ 1032:793b21a8ea12
fix include
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Oct 2023 12:25:40 +0900 |
parents | 13267f35c286 |
children |
line wrap: on
line source
#include <stdio.h> __code initIntegerDataGears(__code next(struct Integer* output1, struct Integer* output2, struct Integer* output3, ...)) { output1->value = 1; output2->value = 2; output3->value = 3; *O_output1 = output1; *O_output2 = output2; *O_output3 = output3; goto meta(context, next); } __code initIntegerDataGears_stub(struct Context* context) { Integer** O_output1 = (struct Integer **)&context->data[context->odg]; Integer** O_output2 = (struct Integer **)&context->data[context->odg+1]; Integer** O_output3 = (struct Integer **)&context->data[context->odg+2]; goto initIntegerDataGears(context, context->next, O_output1, O_output2, O_output3); }