diff src/parallel_execution/generate_context.pl @ 280:2c2e4e597eb0

generate no compile errors
author mir3636
date Fri, 03 Feb 2017 17:47:27 +0900
parents 23767f714f4a
children e6bc0a4c2c36
line wrap: on
line diff
--- a/src/parallel_execution/generate_context.pl	Fri Feb 03 03:25:57 2017 +0900
+++ b/src/parallel_execution/generate_context.pl	Fri Feb 03 17:47:27 2017 +0900
@@ -150,6 +150,9 @@
 
 $code_init
 
+    context->code[C_start_code]    = start_code_stub;
+    context->code[C_exit_code]    = exit_code_stub;
+
 #include "dataGearInit.c"
 
     // context->data[D_ActiveQueue] = createSynchronizedQueue(context);
@@ -165,7 +168,7 @@
 my $meta_call = <<"EOFEOF";
 
 __code meta(struct Context* context, enum Code next) {
-    // printf("meta %d\n",next);
+    // printf("meta %d\\n",next);
     goto (context->code[next])(context);
 }
 
@@ -188,7 +191,7 @@
     goto exit_code(context);
 }    
 
-// end $context_c
+// end context_c
 EOFEOF
 
     print $fd $meta_call;