Skip to content

Commit 3dac89b

Browse files
committed
regen/embed.pl: Don't create prototype for weird macros
Where 'weird' is defined as meaning something where 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 fd2c265 commit 3dac89b

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
@@ -195,6 +195,9 @@ sub generate_proto_h {
195195
# Don't generate a prototype for a macro that is not usable by the
196196
# outside world.
197197
next unless $flags =~ /[ACE]/;
198+
199+
# Nor one that is weird, which would likely be a syntax error.
200+
next if $flags =~ /u/;
198201
}
199202
else {
200203
die_at_end "$plain_func: u flag only usable with m"

0 commit comments

Comments
 (0)