#2425: param.ccl code creators creates incorrect C code if parameter description is missing
| Reporter: | Roland Haas |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | major |
| Component: | Cactus |
This param.ccl file
# Parameter definitions for thorn paramtest INT MyParam { -1 :: "some value" 0:* :: "some other values" } 4
which is missing the description for the parameter max_m_mode is accepted by CST but produces a C parameter bindings file that fails to compile with an error:
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 | ,
| ^
I am attaching a tarfile of my test thorn.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2425/paramccl-code-creators-creates-incorrect-c