Skip to content

Commit 556343f

Browse files
committed
regen/embed.pl: Verify flags field of embed.fnc
Make sure that the specified flags are legal.
1 parent 1be7e5f commit 556343f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

regen/embed.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ sub open_print_header {
7575
}
7676

7777
my ($flags,$retval,$plain_func,@args) = @$_;
78+
if ($flags =~ / ( [^AabDdEfiMmnOoPpRrsUXx] ) /x) {
79+
warn "flag $1 is not legal (for function $plain_func)";
80+
}
7881
my @nonnull;
7982
my $has_context = ( $flags !~ /n/ );
8083
my $never_returns = ( $flags =~ /r/ );

0 commit comments

Comments
 (0)