Skip to content

Commit 43f6836

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 8c6bfa5 commit 43f6836

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
@@ -184,6 +184,10 @@ sub generate_proto_h {
184184
if ($flags =~ /S/) {
185185
die_at_end "$plain_func: m and S flags are mutually exclusive";
186186
}
187+
188+
# Don't generate a prototype for a macro that is not usable by the
189+
# outside world.
190+
next unless $flags =~ /[ACE]/;
187191
}
188192
else {
189193
die_at_end "$plain_func: u flag only usable with m" if $flags =~ /u/;

0 commit comments

Comments
 (0)