summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-09-29 13:48:00 +0100
committerNicholas Clark <nick@ccl4.org>2010-09-29 17:20:36 +0100
commit7e9255c9c8ef139223b7f3b0ee77f65f9a9ebfa6 (patch)
tree7152ec6606e2744d927509788541a7be839d5d8e /embed.pl
parent9be14afeeaf32ed8bfffc3fe55a17d99d7c9bd29 (diff)
downloadperl-7e9255c9c8ef139223b7f3b0ee77f65f9a9ebfa6.tar.gz
When generating embed.h, return early if an embed.fnc entry causes no output.
This removes several adjacent empty pairs of #ifdef/#endif.
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.pl b/embed.pl
index 04f6629dbd..0e86eac88c 100755
--- a/embed.pl
+++ b/embed.pl
@@ -465,6 +465,7 @@ walk_table {
$ret .= $alist . ")\n";
}
}
+ return "" unless $ret;
unless ($flags =~ /A/) {
if ($flags =~ /E/) {
$new_ifdef_state