my $sentinel = "$macro expands to";
-my %done_header;
+# These two are included from perl.h, and perl.h sometimes redefines their
+# macros. So no need to include them.
+my %done_header = ('embed.h' => 1, 'embedvar.h' => 1);
sub do_header {
my $header = shift;
=head1 SYNOPSIS
- expand-macro.pl [options] [ < macro-name | macro-expression | - > [headers] ]
+ expand-macro.pl [options]
+ [ < macro-name | macro-expression | - > [headers] ]
options:
-f use 'indent' to format output
-F <tool> use <tool> to format output (instead of -f)
- -e erase try.[ic] instead of failing when they're present (errdetect)
+ -e erase try.[ic] instead of failing when they're present
+ (errdetect)
-k keep them after generating (for handy inspection)
-v verbose
-I <indent-opts> passed into indent