Skip to content

Commit

Permalink
Use ->ignore_not_found(1); and avoid use of eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Jolma committed Jun 18, 2023
1 parent 42bb6af commit 4741fa1
Show file tree
Hide file tree
Showing 2 changed files with 1,107 additions and 1,104 deletions.
4 changes: 2 additions & 2 deletions build-tools/parse_h.pl
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ sub parse_h {
} else {
$args = "'".join("','", @args)."'";
}
say "eval{\$ffi->attach('$name' => [$args] => '$ret');};";
say "\$ffi->attach('$name' => [$args] => '$ret');";
} else {
die "can't parse $s as function";
}
Expand Down Expand Up @@ -445,7 +445,7 @@ sub parse_type {
} elsif ($arg =~ /^GUInt32/) {
$arg = 'uint32';
} elsif ($arg =~ /^const GInt64\s*\*/) {
$arg = 'int64';
$arg = 'sint64';
} elsif ($arg =~ /^GUInt64/ || $arg =~ /^uint64_t/) {
$arg = 'uint64';
} elsif ($arg =~ /^const GUInt64\s*\*/) {
Expand Down
Loading

0 comments on commit 4741fa1

Please sign in to comment.