summaryrefslogtreecommitdiff
path: root/utils/h2ph.PL
diff options
context:
space:
mode:
authorBilly Constantine <wdconsta@cs.adelaide.edu.au>1998-07-06 08:35:52 +0930
committerGurusamy Sarathy <gsar@cpan.org>1998-07-05 21:06:56 +0000
commit625ca0ef1ad7060d558556613e7fbcdabcef30a9 (patch)
tree768363a50c13dd78c995593e972986f2912c6c0e /utils/h2ph.PL
parentb47ba5cf0e95e26187080db8d4480e5402e1ca13 (diff)
downloadperl-625ca0ef1ad7060d558556613e7fbcdabcef30a9.tar.gz
applied patch, and undid change#1302 which it made unnecessary
Subject: [PATCH] utils/h2ph.PL and t/lib/h2ph.t Message-ID: <Pine.SV4.3.93.980705230337.27658A-100000@xenon.teaching.cs.adelaide.edu.au> p4raw-link: @1302 on //depot/perl: 1289a8b80f063d20e88094098a0275f4681d9f97 p4raw-id: //depot/perl@1324
Diffstat (limited to 'utils/h2ph.PL')
-rw-r--r--utils/h2ph.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL
index 35cb7ccee9..066f2c9c3f 100644
--- a/utils/h2ph.PL
+++ b/utils/h2ph.PL
@@ -40,7 +40,7 @@ use Config;
use File::Path qw(mkpath);
use Getopt::Std;
-getopts('Dd:rlha');
+getopts('Dd:rlhaQ');
die "-r and -a options are mutually exclusive\n" if ($opt_r and $opt_a);
@inc_dirs = inc_dirs() if $opt_a;
@@ -81,7 +81,7 @@ while (defined ($file = next_file())) {
open(OUT, ">-");
} else {
($outfile = $file) =~ s/\.h$/.ph/ || next;
- print "$file -> $outfile\n";
+ print "$file -> $outfile\n" unless $opt_Q;
if ($file =~ m|^(.*)/|) {
$dir = $1;
mkpath "$Dest_dir/$dir";
@@ -237,7 +237,7 @@ while (defined ($file = next_file())) {
} elsif(/^ident\s+(.*)/) {
print OUT $t, "# $1\n";
}
- } elsif(/^\s*(typedef\s*)?enum(\s+[a-zA-Z_]\w*)?\s*\{/) {
+ } elsif(/^\s*(typedef\s*)?enum\s*(\s+[a-zA-Z_]\w*\s*)?\{/) {
until(/\}.*?;/) {
chomp($next = <IN>);
$_ .= $next;