# HG changeset patch # User Shinji KONO # Date 1616031246 -32400 # Node ID 2e4c84f2683f95be067cfb6d5065cccad783f633 # Parent 359913ba01750fdb987c881babe281a3c2e8263c convert #interface into // include diff -r 359913ba0175 -r 2e4c84f2683f src/parallel_execution/generate_context.pl --- a/src/parallel_execution/generate_context.pl Wed Mar 17 20:00:15 2021 +0900 +++ b/src/parallel_execution/generate_context.pl Thu Mar 18 10:34:06 2021 +0900 @@ -51,12 +51,13 @@ my $ddir = "c"; -our($opt_o,$opt_d,$opt_h,$opt_w, $opt_project); +our($opt_o,$opt_d,$opt_h,$opt_w, $opt_project,$opt_D); GetOptions( "o=s" => \$opt_o, "d=s" => \$opt_d, "h" => \$opt_h, "w" => \$opt_w, + "D" => \$opt_D, "project=s" => \$opt_project, ); @@ -91,7 +92,7 @@ $project = $projects{$opt_project}; } -if (! -f "context.h") { +if ($opt_D || ! -f "context.h") { generateContextHeader($opt_w, $opt_o, $project, @ARGV); } diff -r 359913ba0175 -r 2e4c84f2683f src/parallel_execution/generate_stub.pl --- a/src/parallel_execution/generate_stub.pl Wed Mar 17 20:00:15 2021 +0900 +++ b/src/parallel_execution/generate_stub.pl Thu Mar 18 10:34:06 2021 +0900 @@ -687,6 +687,7 @@ debug_print("generateDataGear",__LINE__, $_) if $opt_debug; my $interfaceHeader = $1; # #interface not write + print $fd "// include \"$1\"\n"; next unless ($interfaceHeader =~ /context.h/); } elsif (/^#include "(.*).h"$/) { debug_print("generateDataGear",__LINE__, $_) if $opt_debug;