<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>This param.ccl file</p>
<div class="codehilite language-perl"><pre><span></span><span class="c1"># Parameter definitions for thorn paramtest</span>

<span class="n">INT</span> <span class="n">MyParam</span>
<span class="p">{</span>
  <span class="o">-</span><span class="mi">1</span> <span class="o">::</span> <span class="s">&quot;some value&quot;</span>
  <span class="mi">0</span><span class="p">:</span><span class="o">*</span> <span class="o">::</span> <span class="s">&quot;some other values&quot;</span>
<span class="p">}</span> <span class="mi">4</span>
</pre></div>


<p>which is missing the description for the parameter <code>max_m_mode</code> is accepted by CST but produces a C parameter bindings file that fails to compile with an error:</p>
<div class="codehilite language-plaintext"><pre><span></span>COMPILING configs/paramtest/bindings/Parameters/paramtest_Parameters.c
/data/rhaas/postdoc/gr/cactus/ET_trunk/configs/paramtest/build/CactusBindings/Parameters/paramtest_Parameters.c: In function ‘CCTKi_BindingsCreateparamtestParameters’:
/data/rhaas/postdoc/gr/cactus/ET_trunk/configs/paramtest/build/CactusBindings/Parameters/paramtest_Parameters.c:45:25: error: expected expression before ‘,’ token
   45 |                         ,
      |                         ^
</pre></div>


<p>I am attaching a tarfile of my test thorn.</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>