import native symbols in lib.h

lib.h gets included into the host module and the wasm module. For the
host module the attributes will be ignored.
This commit is contained in:
2026-04-24 10:45:55 +02:00
parent 348aac20ae
commit 5aab319424
4 changed files with 18 additions and 15 deletions

View File

@ -198,10 +198,10 @@ sub read_experiment_info {
open( my $fhandle, '<', "$local_archive_dir/$exp/0.info" )
or die "Failed to open 0.info: $!";
my $info = <$fhandle>;
chomp $info;
chomp $info if defined $info;
close($fhandle);
return $info;
return defined $info ? $info : "";
}
sub read_marker_info {
@ -251,7 +251,9 @@ sub select_experiment {
my $info = read_experiment_info($exp);
push @exp_with_notes,
defined $info ? sprintf( "%-50s (Note: %s)", $exp, $info ) : $exp;
( defined $info && length($info) > 0 )
? sprintf( "%-50s (Note: %s)", $exp, $info )
: $exp;
}
my @selected_experiments =