#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 |
Comment (by Steven R. Brandt):
It’s easily fixed by this:
diff --git a/lib/sbin/parameter_parser.pl b/lib/sbin/parameter_parser.pl index 5e7eeeeb..29cf4d57 100644 --- a/lib/sbin/parameter_parser.pl +++ b/lib/sbin/parameter_parser.pl @@ -196,6 +196,7 @@ sub parse_param_ccl } my $desc = $guts->group(1,"description")->substring(); $desc =~ s/\\\n//g; + $desc = '""' if($desc eq ""); if($gr->is("keywordpar")) { $parameter_db1{"\U$thorn $as_name\E type"}="KEYWORD"; my $item_count = 1;
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2425/paramccl-code-creators-creates-incorrect-c