Skip to content

Commit

Permalink
optlib2c: fix wrongly generated code for --_paramdef
Browse files Browse the repository at this point in the history
- param.h was not included.
- the field for description was wrong.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Jan 4, 2023
1 parent b823933 commit 8be2171
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion misc/optlib2c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ EOF
if (defined $opts->{'selector'}) {
print <<EOF;
#include "selectors.h"
EOF
}
if ((scalar @{$opts->{'paramdefs'}}) > 0) {
print <<EOF;
#include "param.h"
EOF
}
print <<EOF;
Expand Down Expand Up @@ -968,7 +973,7 @@ EOF
print <<EOF;
{
.name = "$_->{'name'}",
.description = "$desc",
.desc = "$desc",
.handleParam = NULL,
},
EOF
Expand Down

0 comments on commit 8be2171

Please sign in to comment.