mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 17:09:41 -04:00
psasim: have the generator script check for type = "void" rather than name = "(void)"
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
4d8d5569d8
commit
d32fac276d
@ -531,7 +531,7 @@ int ${name}_wrapper(
|
|||||||
{
|
{
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
print $fh <<EOF unless $ret_name eq "(void)";
|
print $fh <<EOF unless $ret_type eq "void";
|
||||||
$ret_type $ret_name = $ret_default;
|
$ret_type $ret_name = $ret_default;
|
||||||
EOF
|
EOF
|
||||||
# Output the variables we will need when we call the target function
|
# Output the variables we will need when we call the target function
|
||||||
@ -967,10 +967,11 @@ sub output_call
|
|||||||
{
|
{
|
||||||
my ($fh, $f, $name, $is_server) = @_;
|
my ($fh, $f, $name, $is_server) = @_;
|
||||||
|
|
||||||
|
my $ret_type = $f->{return}->{type};
|
||||||
my $ret_name = $f->{return}->{name};
|
my $ret_name = $f->{return}->{name};
|
||||||
my $args = $f->{args};
|
my $args = $f->{args};
|
||||||
|
|
||||||
if ($ret_name eq "(void)") {
|
if ($ret_type eq "void") {
|
||||||
print $fh "\n $name(\n";
|
print $fh "\n $name(\n";
|
||||||
} else {
|
} else {
|
||||||
print $fh "\n $ret_name = $name(\n";
|
print $fh "\n $ret_name = $name(\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user