# HG changeset patch # User Tatsuki IHA # Date 1514540953 -32400 # Node ID 1861e41aa96a8db59d49f91bfaa38523feb3f38b # Parent 747dd4ba7b44298d93ad66f2b6bd2d9071f996fd Use main generate script for examples diff -r 747dd4ba7b44 -r 1861e41aa96a src/parallel_execution/examples/bitonicSort/bitonicSort.cbc --- a/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/bitonicSort/bitonicSort.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -97,9 +97,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); } diff -r 747dd4ba7b44 -r 1861e41aa96a src/parallel_execution/examples/calc/calc.cbc --- a/src/parallel_execution/examples/calc/calc.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/calc/calc.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -95,9 +95,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); } diff -r 747dd4ba7b44 -r 1861e41aa96a src/parallel_execution/examples/twice/main.cbc --- a/src/parallel_execution/examples/twice/main.cbc Fri Dec 29 18:31:15 2017 +0900 +++ b/src/parallel_execution/examples/twice/main.cbc Fri Dec 29 18:49:13 2017 +0900 @@ -83,9 +83,5 @@ int main(int argc, char** argv) { init(argc, argv); - struct Context* main_context = NEW(struct Context); - initContext(main_context); - main_context->next = C_initDataGears; - - goto start_code(main_context); + goto initDataGears(); }