Skip to content

Commit fd2c265

Browse files
committed
regen/embed.pl: Don't create prototype for private macros
Prior to this commit, a commented-out prototype was created for all macros that we have argument and return type information for. This might be useful information for a reader of proto.h. This commits stops doing this for private macros. It makes a future commit slightly easier, and I'm unsure of the usefulness of this anyway. But I could be persuaded otherwise.
1 parent 96c0bfe commit fd2c265

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

proto.h

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

regen/embed.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ sub generate_proto_h {
191191
die_at_end
192192
"$plain_func: m and S flags are mutually exclusive";
193193
}
194+
195+
# Don't generate a prototype for a macro that is not usable by the
196+
# outside world.
197+
next unless $flags =~ /[ACE]/;
194198
}
195199
else {
196200
die_at_end "$plain_func: u flag only usable with m"

0 commit comments

Comments
 (0)