Skip to content

Commit 36938dd

Browse files
committed
regen/embed.pl: Don't create prototype for weird macros
Where 'weird' is defined as meaning something that the normal rules don't apply, so something we generate is unlikely to be correct. This only affects one element, and it uses aTHX in a way that is incompatible with it being automated.
1 parent 43f6836 commit 36938dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

proto.h

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/embed.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ sub generate_proto_h {
188188
# Don't generate a prototype for a macro that is not usable by the
189189
# outside world.
190190
next unless $flags =~ /[ACE]/;
191+
192+
# Nor one that is weird, which would likely be a syntax error.
193+
next if $flags =~ /u/;
191194
}
192195
else {
193196
die_at_end "$plain_func: u flag only usable with m" if $flags =~ /u/;

0 commit comments

Comments
 (0)