<html>#2425: param.ccl code creators creates incorrect C code if parameter description is missing
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'> Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>
<p>Comment (by Steven R. Brandt):</p>
<p>It’s easily fixed by this:</p>
<div class="codehilite"><pre><span></span><span class="gh">diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl</span>
<span class="gh">index 5e7eeeeb..29cf4d57 100644</span>
<span class="gd">--- a/lib/sbin/parameter_parser.pl</span>
<span class="gi">+++ b/lib/sbin/parameter_parser.pl</span>
<span class="gu">@@ -196,6 +196,7 @@ sub parse_param_ccl</span>
}
my $desc = $guts->group(1,"description")->substring();
$desc =~ s/\\\n//g;
<span class="gi">+ $desc = '""' if($desc eq "");</span>
if($gr->is("keywordpar")) {
$parameter_db1{"\U$thorn $as_name\E type"}="KEYWORD";
my $item_count = 1;
</pre></div>
<p></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2425/paramccl-code-creators-creates-incorrect-c'>https://bitbucket.org/einsteintoolkit/tickets/issues/2425/paramccl-code-creators-creates-incorrect-c</a></p>
</html>