mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:15:40 +00:00
Fix preprocessor directive recognition in list-enum-consts.pl
This commit is contained in:
parent
89f36aeb2a
commit
346932a099
|
@ -22,7 +22,7 @@ while (<>)
|
||||||
$state = 'in';
|
$state = 'in';
|
||||||
} elsif( $state eq 'in' and /}/ ) {
|
} elsif( $state eq 'in' and /}/ ) {
|
||||||
$state = 'out';
|
$state = 'out';
|
||||||
} elsif( $state eq 'in' and not (/^#if/ or /#endif/)) {
|
} elsif( $state eq 'in' and not /^#/) {
|
||||||
s/=.*//; s!/\*.*!!; s/,.*//; s/\s+//g; chomp;
|
s/=.*//; s!/\*.*!!; s/,.*//; s/\s+//g; chomp;
|
||||||
push @consts, $_ if $_;
|
push @consts, $_ if $_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue