mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-12 01:14:02 +00: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
|
||||
|
||||
print $fh <<EOF unless $ret_name eq "(void)";
|
||||
print $fh <<EOF unless $ret_type eq "void";
|
||||
$ret_type $ret_name = $ret_default;
|
||||
EOF
|
||||
# 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 $ret_type = $f->{return}->{type};
|
||||
my $ret_name = $f->{return}->{name};
|
||||
my $args = $f->{args};
|
||||
|
||||
if ($ret_name eq "(void)") {
|
||||
if ($ret_type eq "void") {
|
||||
print $fh "\n $name(\n";
|
||||
} else {
|
||||
print $fh "\n $ret_name = $name(\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user