changeset 972:6a9ad3da2daf

tweak HelloWorld
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Fri, 18 Jun 2021 22:00:21 +0900
parents edbd4495f08f
children 864a52dfef0a
files src/parallel_execution/examples/helloWorld/HelloImpl.cbc
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/examples/helloWorld/HelloImpl.cbc	Thu Jun 17 21:01:20 2021 +0900
+++ b/src/parallel_execution/examples/helloWorld/HelloImpl.cbc	Fri Jun 18 22:00:21 2021 +0900
@@ -22,13 +22,14 @@
     return hello;
 }
 __code h(struct HelloImpl* hello, __code next(...)) {
-    hello->string = "Hello, ";
-    printf("%s", hello->string);
+    hello->hString = "Hello, "; //createImpl部分では_implなのだが動く
+    printf("%s", hello->hString);
     goto w(hello, next);
 }
 
 __code w(struct HelloImpl* hello, __code next(...)) {
-    // printf("%s", hello_impl->wString);
+    hello->wString = "World.\n";
+    printf("%s", hello->wString);
     goto next(...);
 }