Skip to content

Commit f4f431d

Browse files
committed
optlib2c: fix wrongly generated code for --_paramdef
- param.h was not included. - the field for description was wrong. Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 1add35c commit f4f431d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc/optlib2c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@ EOF
620620
if (defined $opts->{'selector'}) {
621621
print <<EOF;
622622
#include "selectors.h"
623+
EOF
624+
}
625+
if ((scalar @{$opts->{'paramdefs'}}) > 0) {
626+
print <<EOF;
627+
#include "param.h"
623628
EOF
624629
}
625630
print <<EOF;
@@ -968,7 +973,7 @@ EOF
968973
print <<EOF;
969974
{
970975
.name = "$_->{'name'}",
971-
.description = "$desc",
976+
.desc = "$desc",
972977
.handleParam = NULL,
973978
},
974979
EOF

0 commit comments

Comments
 (0)