Mercurial > hg > Gears > Gears
changeset 862:9d3c6e62558b
emit NULL?
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Jan 2021 19:03:57 +0900 |
parents | 1844a69b22f5 |
children | d09c8e65e620 |
files | src/parallel_execution/generate_stub.pl |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl Fri Jan 22 18:39:13 2021 +0900 +++ b/src/parallel_execution/generate_stub.pl Fri Jan 22 19:03:57 2021 +0900 @@ -861,6 +861,8 @@ for my $i (0..$outputCount-1) { print $fd "${prev}${context_name}\->task->data[${context_name}\->task->odg+$i] = (union Data*)$dataGears[$inputCount+$i];\n"; } + } else { + print $fd "${prev}${context_name}\->task->data[${context_name}\->task->odg] = NULL;\n"; } my $putTask = << "EOFEOF"; ${prev}element = &ALLOCATE(${context_name}, Element)->Element;