mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 13:55:29 +00:00
Make matching more robbust in generate_errors.pl
This commit is contained in:
parent
8936ffe66a
commit
387ff07157
|
@ -50,7 +50,7 @@ my @files = <$include_dir/*.h>;
|
||||||
my @matches;
|
my @matches;
|
||||||
foreach my $file (@files) {
|
foreach my $file (@files) {
|
||||||
open(FILE, "$file");
|
open(FILE, "$file");
|
||||||
my @grep_res = grep(/define MBEDTLS_ERR_/, <FILE>);
|
my @grep_res = grep(/^\s*#define\s+MBEDTLS_ERR_\w+\s+\-0x[0-9A-Fa-f]+/, <FILE>);
|
||||||
push(@matches, @grep_res);
|
push(@matches, @grep_res);
|
||||||
close FILE;
|
close FILE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue