summaryrefslogtreecommitdiff
path: root/symbian/config.pl
diff options
context:
space:
mode:
authorJohn Lightsey <lightsey@debian.org>2016-12-23 12:35:45 -0500
committerJames E Keenan <jkeenan@cpan.org>2016-12-23 13:52:28 -0500
commit1ae6ead94905dfee43773cf3b18949c91b33f9d1 (patch)
tree6a54545d46d1ae3f61696e23111a21c736b3b2b5 /symbian/config.pl
parent7527883f8c7b71d808abdbd3cff07f61280a42b5 (diff)
downloadperl-1ae6ead94905dfee43773cf3b18949c91b33f9d1.tar.gz
Switch most open() calls to three-argument form.
Switch from two-argument form. Filehandle cloning is still done with the two argument form for backward compatibility. Committer: Get all porting tests to pass. Increment some $VERSIONs. Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl For: RT #130122
Diffstat (limited to 'symbian/config.pl')
-rw-r--r--symbian/config.pl24
1 files changed, 12 insertions, 12 deletions
diff --git a/symbian/config.pl b/symbian/config.pl
index e82c365d5a..2671df6d8f 100644
--- a/symbian/config.pl
+++ b/symbian/config.pl
@@ -67,7 +67,7 @@ sub create_mmp {
my $mmp = "$target.mmp";
my $targetpath = $miniperl
|| $perl ? "TARGETPATH\t\\System\\Apps\\Perl" : "";
- if ( open( my $fh, ">$mmp" ) ) {
+ if ( open( my $fh, '>', $mmp ) ) {
print "\t$mmp\n";
push @mmp, $mmp;
push @unclean, $mmp;
@@ -209,7 +209,7 @@ __EOF__
}
sub create_bld_inf {
- if ( open( BLD_INF, ">bld.inf" ) ) {
+ if ( open( BLD_INF, '>', 'bld.inf' ) ) {
print "\tbld.inf\n";
push @unclean, "bld.inf";
print BLD_INF <<__EOF__;
@@ -228,7 +228,7 @@ __EOF__
my %config;
sub load_config_sh {
- if ( open( CONFIG_SH, "symbian/config.sh" ) ) {
+ if ( open( CONFIG_SH, '<', 'symbian/config.sh' ) ) {
while (<CONFIG_SH>) {
if (/^(\w+)=['"]?(.*?)["']?$/) {
my ( $var, $val ) = ( $1, $2 );
@@ -249,10 +249,10 @@ sub load_config_sh {
sub create_config_h {
load_config_sh();
- if ( open( CONFIG_H, ">config.h" ) ) {
+ if ( open( CONFIG_H, '>', 'config.h' ) ) {
print "\tconfig.h\n";
push @unclean, "config.h";
- if ( open( CONFIG_H_SH, "config_h.SH" ) ) {
+ if ( open( CONFIG_H_SH, '<', 'config_h.SH' ) ) {
while (<CONFIG_H_SH>) {
last if /\#ifndef _config_h_/;
}
@@ -298,7 +298,7 @@ q[xsubpp ext\DynaLoader\dl_symbian.xs >ext\DynaLoader\DynaLoader.cpp]
sub create_symbian_port_h {
print "\tsymbian\\symbian_port.h\n";
- if ( open( SYMBIAN_PORT_H, ">symbian/symbian_port.h" ) ) {
+ if ( open( SYMBIAN_PORT_H, '>', 'symbian/symbian_port.h' ) ) {
my ($sdkmajor, $sdkminor);
if ($SDK_VARIANT eq 'S60') {
$S60SDK =~ /^(\d+)\.(\d+)$/;
@@ -351,7 +351,7 @@ q[perl -ne "print qq[ char *file = __FILE__;\n] if /dXSUB_SYS/;print unless /
sub create_PerlApp_pkg {
print "\tsymbian\\PerlApp.pkg\n";
- if ( open( PERLAPP_PKG, ">symbian\\PerlApp.pkg" ) ) {
+ if ( open( PERLAPP_PKG, '>', 'symbian\\PerlApp.pkg' ) ) {
my $ProductId =
defined $S60SDK ?
qq[;Supports Series 60 v0.9\n(0x101F6F88), 0, 0, 0, {"Series60ProductID"}\n] :
@@ -392,7 +392,7 @@ $mdl
"$APPS\\PerlApp.rsc"-"!:\\system\\apps\\PerlApp\\PerlApp.rsc"
$AIF
__EOF__
- if ( open( DEMOS, "perl symbian\\demo_pl list |" ) ) {
+ if ( open( DEMOS, '-|', "perl symbian\\demo_pl list" ) ) {
while (<DEMOS>) {
chomp;
if (defined $S90SDK) {
@@ -447,7 +447,7 @@ create_symbian_port_h();
create_DynaLoader_cpp();
create_PerlApp_pkg();
-if ( open( PERLAPP_MMP, ">symbian/PerlApp.mmp" ) ) {
+if ( open( PERLAPP_MMP, '>', 'symbian/PerlApp.mmp' ) ) {
my @MACRO;
my @LIB;
push @MACRO, 'PERL_IMPLICIT_CONTEXT';
@@ -543,7 +543,7 @@ else {
warn "$0: failed to create symbian\\PerlApp.mmp";
}
-if ( open( MAKEFILE, ">Makefile" ) ) {
+if ( open( MAKEFILE, '>', 'Makefile' ) ) {
my $perl = "perl$VERSION";
my $windef1 = "$SYMBIAN_ROOT\\Epoc32\\Build$CWD\\$perl\\$WIN\\$perl.def";
my $windef2 = "..\\BWINS\\${perl}u.def";
@@ -895,7 +895,7 @@ else {
warn "$0: failed to create Makefile: $!\n";
}
-if ( open( MAKEFILE, ">symbian/Makefile")) {
+if ( open( MAKEFILE, '>', 'symbian/Makefile')) {
my $wrap = defined $S60SDK && $S60SDK eq '1.2' && $WIN ne '${WIN}cw';
my $ABLD = $wrap ? 'perl b.pl': 'abld';
print "\tsymbian/Makefile\n";
@@ -951,7 +951,7 @@ distclean: clean
__EOF__
close(MAKEFILE);
if ($wrap) {
- if ( open( B_PL, ">symbian/b.pl")) {
+ if ( open( B_PL, '>', 'symbian/b.pl')) {
print B_PL <<'__EOF__';
# abld.pl wrapper.