Skip to content

Commit a8708c8

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 1d083b4 commit a8708c8

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
@@ -189,6 +189,9 @@ sub generate_proto_h {
189189
# Don't generate a prototype for a macro that is not usable by the
190190
# outside world.
191191
next unless $flags =~ /[ACE]/;
192+
193+
# Nor one that is weird, which would likely be a syntax error.
194+
next if $flags =~ /u/;
192195
}
193196
else {
194197
die_at_end "$plain_func: u flag only usable with m"

0 commit comments

Comments
 (0)