This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
27 years agoMore (and less!) 425traps
Perl 5 Porters [Sun, 8 Sep 1996 22:09:04 +0000 (22:09 +0000)]
More (and less!) 425traps

Here's documentation on the change in split's behavior between Perl 4
and Perl 5.

Large integer traps

Precedence

warn STDERR

Change blank lines to empty lines.

27 years agomore TIEHANDLE
Sven Verdoolaege [Thu, 29 Aug 1996 13:14:51 +0000 (15:14 +0200)]
more TIEHANDLE

This adds support for a READLINE method.

27 years agoDocument correct C<use POSIX ":wait_h";> usage.
Perl 5 Porters [Sun, 8 Sep 1996 20:39:59 +0000 (20:39 +0000)]
Document correct C<use POSIX ":wait_h";> usage.

27 years agoperl 5.003_05: pod/perlfunc.pod
Perl 5 Porters [Wed, 11 Sep 1996 21:03:53 +0000 (21:03 +0000)]
perl 5.003_05: pod/perlfunc.pod

Document correct C<use POSIX ":wait_h";> usage.

Add notes about POSIX [gs]etpgrp.

27 years agoperl 5.003_05: dev/null
Perl 5 Porters [Sun, 8 Sep 1996 23:24:21 +0000 (23:24 +0000)]
perl 5.003_05: dev/null

New script to check for common errors in pods.  This is not
normally called during the perl build process, but you can
use it with  B<make check>.

27 years agoperl 5.003_05: pod/Makefile
Perl 5 Porters [Sun, 8 Sep 1996 23:26:45 +0000 (23:26 +0000)]
perl 5.003_05: pod/Makefile

Remove trailing spaces in pods.
Include a call to the checkpods script in the Makefile (though it's
not ordinarily used by users).

27 years agoperl 5.003_05: perlsdio.h
Perl 5 Porters [Sat, 7 Sep 1996 03:11:14 +0000 (03:11 +0000)]
perl 5.003_05: perlsdio.h

Don't supply redundant parameters for PerlIO_open and PerlIO_fdopen.

Include PerlIO_reopen and PerlIO_getname.

s/FILE_(CNT|PTR)_LVALUE/STDIO_(CNT|PTR)_LVALUE to fix a typo.
This had prevented SV_FAST_FGETS from working anywhere.

Include PerlIO_canset_cnt.  I'm not sure how this is supposed to
differ from STDIO_CNT_LVALUE.

27 years agoperl 5.003_05: perlio.c
Perl 5 Porters [Sat, 7 Sep 1996 03:11:03 +0000 (03:11 +0000)]
perl 5.003_05: perlio.c

Eliminate potential "signed vs. unsigned" warning

Add PerlIO_reopen and PerlIO_cgetname functions.

27 years agoperl 5.003_05: perl.h
Perl 5 Porters [Mon, 9 Sep 1996 21:26:18 +0000 (21:26 +0000)]
perl 5.003_05: perl.h

One last LONG & co. fix (yet another cut'n'paste error) and a few
minor cleanups. Nothing crucial.

Make a little more C++-friendly for IBM's CSET++ compiler.

Enhance detection of [gs]etpgrp() variants.  Some systems have
BSD-style behavior for one and POSIX for the other.  Use
[gs]etpgid() instead, whenever possible.

27 years agoMake floating point constants Locale-friendly.
Perl 5 Porters [Thu, 5 Sep 1996 00:42:36 +0000 (00:42 +0000)]
Make floating point constants Locale-friendly.

27 years agoRe: \ ( @array ) busted for lexical @array (once more)
Gurusamy Sarathy [Wed, 4 Sep 1996 02:54:56 +0000 (02:54 +0000)]
Re: \ ( @array ) busted for lexical @array (once more)

27 years agoAdd _STDIO_LOADED (VMS) to list of guard symbols.
Perl 5 Porters [Sat, 7 Sep 1996 03:10:43 +0000 (03:10 +0000)]
Add _STDIO_LOADED (VMS) to list of guard symbols.

27 years agoperl 5.003_05: mg.h
Perl 5 Porters [Sun, 8 Sep 1996 00:55:02 +0000 (00:55 +0000)]
perl 5.003_05: mg.h

Replace the oft-repeated mg_ptr incantation with
the simple MgPVKEY macro.

Rename MgPVKEY to MgPV (to match with HePV elsewhere).  Add
additional parens around the "mg".

27 years agoIntegerize mg.c; eliminate warning on C< local($)) >
Chip Salzenberg [Fri, 23 Aug 1996 21:20:22 +0000 (17:20 -0400)]
Integerize mg.c; eliminate warning on C< local($)) >

Ok, here's a tested patch for the debugger problem.
I was missing the fact that DB::dbline magic is actually
uppercase (which means hv_store_ent() etc., will pass SV keys
to the vtbl_dbline handlers).

Replace the oft-repeated mg_ptr incantation with
the simple MgPVKEY macro.

Rename MgPVKEY to MgPV (to match with HePV elsewhere).  Add
additional parens around the "mg".

(lines near 584) Part of VMS changes.  I don't know what this did.

This patch converts magic variables ($!, $^E, etc.) to use integers
(C<sv_setiv>) instead of floats.  It also eliminates a warning from
C< local($)) >, via a hack similar to $!.

27 years agoperl 5.003_05: makedepend.SH
Perl 5 Porters [Sat, 7 Sep 1996 02:38:34 +0000 (02:38 +0000)]
perl 5.003_05: makedepend.SH

This patch eliminates "\|" in sed patterns in makedepend.SH, since
they're not really needed anyway in this one case.

27 years agosyslog.pl `use Socket' lossage
Roderick Schertler [Wed, 4 Sep 1996 00:33:54 +0000 (20:33 -0400)]
syslog.pl `use Socket' lossage

syslog.pl tries but fails to use
Socket.pm, the problem is that use doesn't return a true value.  This
module should be recast in terms of Sys::Syslog, of course.

27 years agoperl 5.003_05: lib/open3.pl
Perl 5 Porters [Sat, 7 Sep 1996 23:49:09 +0000 (23:49 +0000)]
perl 5.003_05: lib/open3.pl

The I/O directions on the dad_wtr and kid_rdr were backwards.
IO/Open3.pm didn't have this error.

27 years agoperl 5.003_05: lib/Math/Complex.pm
Perl 5 Porters [Sun, 8 Sep 1996 00:40:34 +0000 (00:40 +0000)]
perl 5.003_05: lib/Math/Complex.pm

There was a mistake in the sqrt routine in lib/Math/Complex.pm that
gave wrong answers when the magnitude of the imaginary part of the
argument exceeded the magnitude of the real part.  Line 69 had too
many sqrt($y)'s.  Further, expressions were re-arranged so that
calls to the expensive real sqrt() routine were reduced from 4 to 2
in this case.

27 years agoCwd::fastcwd in File::Find
Michael Mahan [Wed, 4 Sep 1996 02:55:19 +0000 (02:55 +0000)]
Cwd::fastcwd in File::Find

Is there a good reason why File::Find uses Cwd::fastcwd instead of
Cwd:cwd when fastcwd isn't as portable?
[In particular, fastcwd() doesn't work on AFS.]

27 years agoperl 5.003_05: lib/ExtUtils/MakeMaker.pm
Perl 5 Porters [Sun, 8 Sep 1996 20:13:54 +0000 (20:13 +0000)]
perl 5.003_05: lib/ExtUtils/MakeMaker.pm

Updated to MakeMaker-5.38.

Updated to MakeMaker-5.39 to allow CFLAGS in hint files.

27 years agoUpdated to MakeMaker-5.38.
Perl 5 Porters [Tue, 3 Sep 1996 03:59:43 +0000 (03:59 +0000)]
Updated to MakeMaker-5.38.

27 years agoUpdated to MakeMaker-5.38.
Perl 5 Porters [Tue, 3 Sep 1996 04:42:42 +0000 (04:42 +0000)]
Updated to MakeMaker-5.38.

27 years agoperl 5.003_05: lib/ExtUtils/Install.pm
Perl 5 Porters [Sat, 7 Sep 1996 03:10:33 +0000 (03:10 +0000)]
perl 5.003_05: lib/ExtUtils/Install.pm

Updated to MakeMaker-5.38.

Fix for VMS utime.

27 years agoperl 5.003_05: lib/AnyDBM_File.pm
Perl 5 Porters [Thu, 5 Sep 1996 04:14:21 +0000 (04:14 +0000)]
perl 5.003_05: lib/AnyDBM_File.pm

AnyDBM_File (modifying ISA does not work as expected)
Now behaves as documented:  Modifying ISA works to select
order in which *DB* modules are tried.  The default is still
the same.

Add helpful "die" message to end of AnyDBM_File.  Previously
it would return a 0, and the failure would eventually show up
somewhere else in the script and be hard to track down.  It is
a failure if perl can't open AnyDBM_File.  The test regression
suite is supposed to indicate this as a failure too.

27 years agoRe: installperl feature request (was: Re: Upgrade 4.0x to 5.001m)
author scotth@sgi.com 842220273 +0000 [Sun, 8 Sep 1996 22:04:33 +0000 (22:04 +0000)]
Re: installperl feature request (was: Re: Upgrade 4.0x to 5.001m)

Fix installperl so that the -n option really only prints commands.
(previously, it would still do the mkdirs.)

an "ignore installed" option, so that it doesn't bother to check
to see if the target already exists (an optimization that I
*don't* want it to do when I do #1 above)

27 years agoperl 5.003_05: hv.c
Perl 5 Porters [Thu, 5 Sep 1996 06:52:21 +0000 (02:52 -0400)]
perl 5.003_05: hv.c

Date: Thu, 05 Sep 1996 00:25:28 -0400
From: Gurusamy Sarathy <gsar@engin.umich.edu>
Subject: minor misc. cleanup

This patch makes some minor cleanups to the sources.  No change
in functionality whatsoever.

Date: Thu, 05 Sep 1996 02:52:21 -0400
From: Gurusamy Sarathy <gsar@engin.umich.edu>

Subject: debugger problems--another patch (was Re: 5.003_04)

I have tried to avoid copying of hash keys that are passed to
magical hashes, but it seems that copying may be unavoidable
since the hv_*_ent() functions could be PADTMPs (and other
SVs that may get reused) as keys.

VMS dynamic %ENV fix

27 years agoperl 5.003_05: hints/sunos_4_1.sh
Perl 5 Porters [Sun, 8 Sep 1996 23:40:23 +0000 (23:40 +0000)]
perl 5.003_05: hints/sunos_4_1.sh

Describe solution for the __lib_version problem with acc on
SunOS.

27 years agoperl 5.003_05: hints/solaris_2.sh
Perl 5 Porters [Tue, 10 Sep 1996 02:16:49 +0000 (02:16 +0000)]
perl 5.003_05: hints/solaris_2.sh

Catch GNU ld even though it doesn't identify itself as a GNU tool.
Thanks to Tim Pierce <twpierce@midway.uchicago.edu>.

27 years agoperl 5.003_05: hints/sco.sh
Perl 5 Porters [Mon, 2 Sep 1996 22:18:45 +0000 (22:18 +0000)]
perl 5.003_05: hints/sco.sh

Turn off optimization for stock cc.  This appears to
prevent miniperl core dumps.

27 years agoperl 5.003_05: hints/hpux.sh
Perl 5 Porters [Wed, 11 Sep 1996 20:58:51 +0000 (20:58 +0000)]
perl 5.003_05: hints/hpux.sh

Add note about possible gcc GR3 warning message.

Remove [gs]etpgrp workaround.  Configure & perl.h should handle
this now.

27 years agoperl 5.003_05: hints/convexos.sh
Perl 5 Porters [Wed, 11 Sep 1996 20:58:36 +0000 (20:58 +0000)]
perl 5.003_05: hints/convexos.sh

Remove [gs]etpgrp workaround.  Configure & perl.h should handle
this now.

27 years agoMake a little more C++-friendly for IBM's CSET++ compiler.
Perl 5 Porters [Thu, 5 Sep 1996 23:59:55 +0000 (23:59 +0000)]
Make a little more C++-friendly for IBM's CSET++ compiler.

27 years agoPatch to inhibit autosplit on Socket.pm
Andreas Koenig [Thu, 5 Sep 1996 07:58:08 +0000 (09:58 +0200)]
Patch to inhibit autosplit on Socket.pm

This patch inhibits production and use of a completely useless
auto/Socket/autosplit.ix.

27 years agoTry to work around "bad free" in dbmclose().
Perl 5 Porters [Sun, 8 Sep 1996 20:20:53 +0000 (20:20 +0000)]
Try to work around "bad free" in dbmclose().

27 years agoperl 5.003_05: ext/ODBM_File/ODBM_File.xs
Perl 5 Porters [Sat, 7 Sep 1996 23:55:22 +0000 (23:55 +0000)]
perl 5.003_05: ext/ODBM_File/ODBM_File.xs

Attempt to correct for "Bad free" in Ultrix and HPUX versions of
odbm.

27 years agoFileHandle::DESTROY for fd 0
Roderick Schertler [Wed, 4 Sep 1996 02:55:31 +0000 (02:55 +0000)]
FileHandle::DESTROY for fd 0

This fixes FileHandle::DESTROY when called on stdin.

27 years agoNo AutoLoader for Fcntl
Chip Salzenberg [Thu, 5 Sep 1996 22:19:14 +0000 (18:19 -0400)]
No AutoLoader for Fcntl

Just like Socket, Fcntl doesn't need splitting and AutoLoading.

27 years agoUpdate to DB_File 1.03.
Perl 5 Porters [Sat, 7 Sep 1996 03:18:27 +0000 (03:18 +0000)]
Update to DB_File 1.03.

27 years agoNewer CPerl-mode
Ilya Zakharevich [Sat, 7 Sep 1996 02:31:23 +0000 (02:31 +0000)]
Newer CPerl-mode

27 years agoperl 5.003_05: config_h.SH
Perl 5 Porters [Wed, 11 Sep 1996 20:44:25 +0000 (20:44 +0000)]
perl 5.003_05: config_h.SH

Updated to match Configure.

Changed the DLSYM_NEEDS_UNDERSCORE comment to
/**/ to conform to metaconfig style.

27 years agoUpdated to match newest config_h.SH.
Perl 5 Porters [Wed, 11 Sep 1996 02:36:18 +0000 (02:36 +0000)]
Updated to match newest config_h.SH.

28 years agoturbidity in av.[ch]
Gurusamy Sarathy [Sun, 10 Dec 1995 05:21:31 +0000 (00:21 -0500)]
turbidity in av.[ch]

Some unclean code that I noticed today.

27 years agoVMS 5.003_05 Update.
Perl 5 Porters [Sat, 7 Sep 1996 03:16:00 +0000 (03:16 +0000)]
VMS 5.003_05 Update.

27 years agoUpdated to match Configure.
Perl 5 Porters [Wed, 11 Sep 1996 02:55:15 +0000 (02:55 +0000)]
Updated to match Configure.

27 years agoperl 5.003_05: Makefile.SH
Perl 5 Porters [Tue, 10 Sep 1996 01:12:44 +0000 (01:12 +0000)]
perl 5.003_05: Makefile.SH

A new heredoc tag in Makefile.SH needs to be quoted.

shrpenv stuff moved to Configure.

27 years agoperl 5.003_05: MANIFEST
Perl 5 Porters [Sun, 8 Sep 1996 23:27:23 +0000 (23:27 +0000)]
perl 5.003_05: MANIFEST

Add new test t/io/read.t.

Add new hints files for ODBM_File for ultrix and hpux.

Add new pod checker script.

27 years agoperl 5.003_05: INSTALL
Perl 5 Porters [Sat, 7 Sep 1996 02:04:41 +0000 (02:04 +0000)]
perl 5.003_05: INSTALL

Correct libperl5 -> libperl typo.

Describe MakeMaker's Warning (will try anyway) messages.

More info on where and how to send reports.

Add info on non-Unix ports.

27 years agoperl 5.003_05: Configure
Perl 5 Porters [Wed, 11 Sep 1996 20:44:25 +0000 (20:44 +0000)]
perl 5.003_05: Configure

Allow command line or hint-file overrides of $afs.

Allow trailing spaces in nm output for HPUX10.

Check for newer BIND 'search' directives in /etc/resolv.conf as well
as older 'domain' directive.

Enhance detection of [gs]etpgrp() variants.  Some systems have
BSD-style behavior for one and POSIX for the other.  Use
[gs]etpgid() instead, whenever possible.

Include -s in the -h summary of available options.

Allow command-line override of $afs.

Handle trailing spaces in nm-output on HPUX10.

Set shrpenv for handling LD_RUN_PATH, if needed. (This used to
be in Makefile.SH.  Now it's available for other modules too.)

When using shared libperl, avoid LD_RUN_PATH if possible by adding
correct ld flags.  Currently, Solaris and NetBSD get the correct
-R $archlibexp/CORE, and Linux gets its
-Wl,-rpath,$archlibexp/CORE flag.  Other contributions are
welcome.

27 years agoUpdated for 5.003_05.
Perl 5 Porters [Wed, 11 Sep 1996 21:54:17 +0000 (21:54 +0000)]
Updated for 5.003_05.

27 years agoChange to subversion 5.
Perl 5 Porters [Mon, 2 Sep 1996 22:55:03 +0000 (22:55 +0000)]
Change to subversion 5.

27 years agoperl 5.003_04: [patch introduction and re-organisation] perl-5.003_04
Andy Dougherty [Mon, 2 Sep 1996 03:16:25 +0000 (03:16 +0000)]
perl 5.003_04: [patch introduction and re-organisation]

# The full description is below.
# Please execute the following commands before applying this patch.
# (You can feed this patch to 'sh' to do so.)
#  Andy Dougherty               <doughera@lafcol.lafayette.edu>

rm -f hints/dnix.sh
rm -f os2/notes

# We'll create a new test, but patch won't automatically make it
# executable.
touch t/op/gv.t
chmod +x t/op/gv.t

exit 0

This is patch perl5.003_04.pat to perl version 5.003_03.
This takes you from 5.003_03 to 5.003_04.

To apply this patch, run the above commands,
cd to your perl source directory and then type

        patch -p1 -N < perl5.003_04.pat

The changes are described after each /^Index/ line below.  This is
designed so you can examine each change with a command such as

        csplit -k perl5.003_04.pat '/^Index:/' '{99}'

Patch and enjoy,

    Andy Dougherty              doughera@lafcol.lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042

27 years agoperl 5.003_04: utils/perldoc.PL
Perl 5 Porters [Wed, 28 Aug 1996 03:04:54 +0000 (03:04 +0000)]
perl 5.003_04: utils/perldoc.PL

Use col -x to filter out half-line feeds (ESC-9) from
HP-UX nroff -man output.  (col -x isn't portable -- SunOS
doesn't support the -x option.)

27 years agoMake leading =head NAME item a paragraph so pod2man finds it.
Perl 5 Porters [Wed, 28 Aug 1996 04:04:04 +0000 (04:04 +0000)]
Make leading =head NAME item a paragraph so pod2man finds it.

27 years agoPatch for LONG_MAX & co.
Perl 5 Porters [Fri, 30 Aug 1996 01:52:45 +0000 (01:52 +0000)]
Patch for LONG_MAX & co.

    __DIE__ (with patch)

sv_2pv() might call croak() (which is not prepared to handle that
when it calls sv_2pv(), itself).  Likewise for warn() (but under
slightly more esoteric circumstances--mg_get() in sv_2pv() might
trigger a call to warn()).

PERL_BADLANG is examined by default before issuing a warning during
    internationalization.

27 years agolval substr() coredumps with refs (with patch)
Perl 5 Porters [Wed, 28 Aug 1996 02:32:42 +0000 (02:32 +0000)]
lval substr() coredumps with refs (with patch)

substr() in lvalue context interacts in buggy fashion with SVs that
are !SvOK.  This manifests itself with lexicals that have a REFCNT of
1, since these are merely "cleared in place" by setting SvOK_off.

substr() coredumps with a target that is a ref, when it is used in
an lvalue context.
The patch below corrects the problem by stringifying the reference
first (and emitting a warning when appropriate).

27 years agoFAKE typeglobs seriously busted (with patch)
Perl 5 Porters [Wed, 28 Aug 1996 02:42:55 +0000 (02:42 +0000)]
FAKE typeglobs seriously busted (with patch)

Handling of fake typeglobs (scalars that are really globs
in disguise) is seriously busted since 5.002 (it wasn't
so in 5.001n).

The problem is that mg_get() on a glob calls gv_efullname()
which might coerce its first arg to a string.

27 years agoRe: truncate with file name does not work (with patch)
Perl 5 Porters [Wed, 28 Aug 1996 02:51:28 +0000 (02:51 +0000)]
Re: truncate with file name does not work (with patch)

The prototype for truncate was changed so that perl won't die
with C<use strict;> when the first arg is a bareword (filehandle).
I think it was Tom (as in "tchrist") who brought this up.

Here's a patch that undoes the damage, makes it work with
C<use strict;>, and adds to the testsuite.

The "not implemented" branch is missing a "\n".

27 years agoTrack SVs for destruction when -DPURIFY
Chip Salzenberg [Mon, 2 Sep 1996 00:08:15 +0000 (00:08 +0000)]
Track SVs for destruction when -DPURIFY

This patch removes a few obvious redundancies in the source.

This patch changes neither behavior nor performance.  However, it does
reduce code size and improve maintainability by combining some common
code in gv_fullname() and gv_efullname().

When checking for memory leaks, I compiled Perl with "-DPURIFY".
Although that flag improves the leak checking, it also breaks
destruction of global objects, because SVs aren't kept in captive
arenas any more.

This patch rectifies the problem by providing an alternative
method for keeping track of SVs when Perl is compiled for Purify.
It has no effect on normal operation.

Add comment about assert(len >=0) when len is unsigned anyway.

27 years agoPatch for LONG_MAX & co.
Perl 5 Porters [Sun, 1 Sep 1996 22:00:42 +0000 (22:00 +0000)]
Patch for LONG_MAX & co.

This patch changes neither behavior nor performance.  However, it does
reduce code size and improve maintainability by combining some common
code in gv_fullname() and gv_efullname().

27 years agoPatch for LONG_MAX & co.
Perl 5 Porters [Wed, 28 Aug 1996 03:20:21 +0000 (03:20 +0000)]
Patch for LONG_MAX & co.

substr() in lvalue context interacts in buggy fashion with SVs that
are !SvOK.  This manifests itself with lexicals that have a REFCNT of
1, since these are merely "cleared in place" by setting SvOK_off.

substr() coredumps with a target that is a ref, when it is used in
an lvalue context.
The patch below corrects the problem by stringifying the reference
first (and emitting a warning when appropriate).

27 years agodocument xsubpp SCOPE:
Perl 5 Porters [Thu, 29 Aug 1996 10:21:33 +0000 (10:21 +0000)]
document xsubpp SCOPE:

27 years agolval substr() coredumps with refs (with patch)
Perl 5 Porters [Wed, 28 Aug 1996 02:32:42 +0000 (02:32 +0000)]
lval substr() coredumps with refs (with patch)

substr() coredumps with a target that is a ref, when it is used in
an lvalue context.
The patch below corrects the problem by stringifying the reference
first (and emitting a warning when appropriate).

27 years agoperl 5.003_04: perlio.c
Perl 5 Porters [Thu, 29 Aug 1996 10:27:29 +0000 (10:27 +0000)]
perl 5.003_04: perlio.c

Removes an incorrect prototype for setlinebuf from
perlio.c because it conflicts with the correct declaration in
MachTen's stdio.h (and possibly other stdio's as well).

Secondly, the code in perlio.c is not handling the (!PERLIO_IS_STDIO &
HAS_F[GS]ETPOS) case.  The patch fixes this omission (in a rather lumpen
manner).  I don't think this should affect platforms which try to hack a
different path through the #ifdef forest, but this assertion would benefit
from testing...

Dominic Dunlop

27 years agoperl 5.003_04: os2/os2ish.h
Perl 5 Porters [Thu, 29 Aug 1996 22:24:29 +0000 (22:24 +0000)]
perl 5.003_04: os2/os2ish.h

SH_PATH_INI added (needed to redefine SH_PATH for binary
    distribution).
SH_PATH is redefined.

27 years agoSH_PATH_INI vs. BIN_SH
Perl 5 Porters [Thu, 29 Aug 1996 22:17:56 +0000 (22:17 +0000)]
SH_PATH_INI vs. BIN_SH

27 years agoperllib vs. LIBPERL
Perl 5 Porters [Thu, 29 Aug 1996 22:17:45 +0000 (22:17 +0000)]
perllib vs. LIBPERL

27 years agoRe: truncate with file name does not work (with patch)
Perl 5 Porters [Wed, 28 Aug 1996 02:37:41 +0000 (02:37 +0000)]
Re: truncate with file name does not work (with patch)

The prototype for truncate was changed so that perl won't die
with C<use strict;> when the first arg is a bareword (filehandle).
I think it was Tom (as in "tchrist") who brought this up.

Here's a patch that undoes the damage, makes it work with
C<use strict;>, and adds to the testsuite.

27 years agoUpdated. See opcode.pl.
Perl 5 Porters [Thu, 29 Aug 1996 09:28:26 +0000 (09:28 +0000)]
Updated.  See opcode.pl.

27 years agoUpdate perlio-related variables.
Perl 5 Porters [Thu, 29 Aug 1996 01:58:44 +0000 (01:58 +0000)]
Update perlio-related variables.

27 years agoFAKE typeglobs seriously busted (with patch)
Perl 5 Porters [Sun, 1 Sep 1996 22:02:06 +0000 (22:02 +0000)]
FAKE typeglobs seriously busted (with patch)

Handling of fake typeglobs (scalars that are really globs
in disguise) is seriously busted since 5.002 (it wasn't
so in 5.001n).
The problem is that mg_get() on a glob calls gv_efullname()
which might coerce its first arg to a string.

Sub-critical patch to conceivably fix some %SIG problems. (Shared hash key
weren't being properly detected by some of the sig magic, but as shared
hash keys wouldn't normally be used in %SIG it's unlikely this is a
significant problem.)

This patch changes neither behavior nor performance.  However, it does
reduce code size and improve maintainability by combining some common
code in gv_fullname() and gv_efullname().

27 years agoperl 5.003_04: malloc.c
Perl 5 Porters [Thu, 29 Aug 1996 09:12:59 +0000 (09:12 +0000)]
perl 5.003_04: malloc.c

A patch to perl5.003_02/malloc to give a sensible error abort() message
in ANSI C, and to give it to stderr instead of stdout.

Use config_h's STRINGIFY macro instead of pre-ANSI "p".

27 years agoperl 5.003_04: lib/perl5db.pl
Perl 5 Porters [Wed, 28 Aug 1996 03:19:54 +0000 (03:19 +0000)]
perl 5.003_04: lib/perl5db.pl

Ilya's debugger patch.
Undefined subroutine &Carp::longmess called at
    /opt/perl5.003_03/lib/perl5db.pl line 1423.

Make perl5db compatible with the recent 'strict refs' enforcement
in %SIG.

27 years agoperl 5.003_04: lib/Test/Harness.pm
Perl 5 Porters [Thu, 29 Aug 1996 01:53:45 +0000 (01:53 +0000)]
perl 5.003_04: lib/Test/Harness.pm

Add a return value to runtests - non-zero if all tests ran ok,
zero otherwise.

27 years agoperl 5.003_04: lib/ExtUtils/xsubpp
Perl 5 Porters [Fri, 30 Aug 1996 01:53:30 +0000 (01:53 +0000)]
perl 5.003_04: lib/ExtUtils/xsubpp

Fix SCOPE?  (See pod/perlxs.pod).
Up version number to 1.938.

27 years ago.C$(obj_ext) removed under OS/2 - conflicts with .c$(obj_ext).
Perl 5 Porters [Thu, 29 Aug 1996 22:17:02 +0000 (22:17 +0000)]
.C$(obj_ext) removed under OS/2 - conflicts with .c$(obj_ext).

27 years agoperl 5.003_04: hints/ultrix_4.sh
Perl 5 Porters [Thu, 29 Aug 1996 22:35:13 +0000 (22:35 +0000)]
perl 5.003_04: hints/ultrix_4.sh

Don't call optimize=-g, just call optimize=none.  The -g
pulls in -DDEBUGGING, which might not be wanted.

27 years agoFixes for sh vs. bin_sh + cleanup.
Perl 5 Porters [Thu, 29 Aug 1996 22:16:48 +0000 (22:16 +0000)]
Fixes for sh vs. bin_sh + cleanup.

27 years agoperl 5.003_04: hints/irix_6_2.sh hints/mpeix.sh
Perl 5 Porters [Thu, 29 Aug 1996 22:34:35 +0000 (22:34 +0000)]
perl 5.003_04: hints/irix_6_2.sh hints/mpeix.sh

Change optimize=-g to optimize=none to avoid pulling in -DDEBUGGING,
unless that's what the user really wants.

27 years agoRemove the d_bsdpgrp hint. The defaults should be ok.
Perl 5 Porters [Wed, 28 Aug 1996 01:11:26 +0000 (01:11 +0000)]
Remove the d_bsdpgrp hint.  The defaults should be ok.

27 years agoPatch for LONG_MAX & co.
Perl 5 Porters [Sun, 1 Sep 1996 22:35:00 +0000 (22:35 +0000)]
Patch for LONG_MAX & co.

Sorry about adding yet another #ifdef forest, but hopefully this
should resolve the *_MAX issues permanently. It adds to the
previously defined PERL_LONG_MAX, PERL_LONG_MIN, and PERL_ULONG_MAX
symbols the complete set of
/PERL_U?(CHAR|SHORT|INT|LONG)_(MAX|MIN)/, and installs aliases to
those from /(I|U)(8|16|32|V)_(MAX|MIN)/ so that for any standard
Perl typedef, like I32 or UV, you can reference I32_MAX or UV_MIN,
and get appropriate figures. All references to LONG_(MIN|MAX) are
changed appropriately.

The .c changes have the side effect of making cast_uv properly use quad
limits if quads are in use, but longs aren't 64 bit. Hopefully this all
works, but I don't have any handy Crays to try it out on.

Add notes on perl's internal types, specifically Quad_t and IV.

27 years agoRe: glob in Safe compartment allows shell access
Perl 5 Porters [Wed, 28 Aug 1996 03:23:45 +0000 (03:23 +0000)]
Re: glob in Safe compartment allows shell access

I've moved the glob op into the same opcode tag as backticks and system
and added a comment.

27 years agoperl 5.003_04: ext/IO/lib/IO/File.pm
Perl 5 Porters [Thu, 29 Aug 1996 10:20:23 +0000 (10:20 +0000)]
perl 5.003_04: ext/IO/lib/IO/File.pm

This patch fixes a bug observed by Tom Christiansen: IO::File::new
didn't allow for file permissions after the file mode.  Here's a patch.

This patch documents the behavior of IO::File::{new,open} with
regard to open modes.  It also documents the exportation of Fcntl
constants.

27 years agoperl 5.003_04: ext/FileHandle/FileHandle.pm
Perl 5 Porters [Thu, 29 Aug 1996 02:55:08 +0000 (02:55 +0000)]
perl 5.003_04: ext/FileHandle/FileHandle.pm

This patch documents the behavior of FileHandle::{new,open} with
regard to open modes.  It also documents the exportation of Fcntl
constants.

This patch fixes a bug observed by Tom Christiansen: FileHandle::new
didn't allow for file permissions after the file mode.  Here's a patch.

27 years agoperl 5.003_04: dump.c gv.c op.c pp_ctl.c pp_sys.c proto.h run.c
Perl 5 Porters [Sun, 1 Sep 1996 22:00:43 +0000 (22:00 +0000)]
perl 5.003_04: dump.c gv.c op.c pp_ctl.c pp_sys.c proto.h run.c

This patch changes neither behavior nor performance.  However, it does
reduce code size and improve maintainability by combining some common
code in gv_fullname() and gv_efullname().

27 years agoperl 5.003_04: config_h.SH
Perl 5 Porters [Thu, 29 Aug 1996 22:32:23 +0000 (22:32 +0000)]
perl 5.003_04: config_h.SH

Change /*#define../**/ into /*#define../ **/
to make IBM's xlc compiler shut up about nested comments.
The /*#define FOO /**/ is a perfectly legal un-nested comment, and
I wish IBM would fix it's blasted compiler instead.  In the meantime
we'll take mercy on the poor AIX user and get rid of the screenfulls
of stupid warning messages.  Thanks to Hallvard B Furuseth
<h.b.furuseth@usit.uio.no> for the fix.

27 years agoUpdated. Note new comments to make AIX happy.
Perl 5 Porters [Fri, 30 Aug 1996 03:05:52 +0000 (03:05 +0000)]
Updated.  Note new comments to make AIX happy.

27 years agorandom cleanup
Perl 5 Porters [Wed, 28 Aug 1996 02:44:46 +0000 (02:44 +0000)]
random cleanup

This patch removes a few obvious redundancies in the source.

27 years agoUpdated.
Perl 5 Porters [Fri, 30 Aug 1996 01:51:08 +0000 (01:51 +0000)]
Updated.

27 years agoperl 5.003_04: Makefile.SH
Perl 5 Porters [Thu, 29 Aug 1996 22:17:13 +0000 (22:17 +0000)]
perl 5.003_04: Makefile.SH

For building shared libperl, relocate whole rule to
inside the if test -f $osname/Makefile.SHs case.

27 years agoperl 5.003_04: MANIFEST
Perl 5 Porters [Thu, 29 Aug 1996 22:34:02 +0000 (22:34 +0000)]
perl 5.003_04: MANIFEST

os2/notes removed

obsolete hints/dnix.sh removed.

New typeglob test.

27 years agoperl 5.003_04: INSTALL
Perl 5 Porters [Fri, 30 Aug 1996 01:28:21 +0000 (01:28 +0000)]
perl 5.003_04: INSTALL

Change name of shared perl library to libperl, instead of
libperl5.

Add notes about fragility of shared libperl and the usefulness
of archlib to separate different binaries.

27 years agoperl 5.003_04: Configure
Perl 5 Porters [Thu, 29 Aug 1996 22:32:23 +0000 (22:32 +0000)]
perl 5.003_04: Configure

Change name of shared libperl library back to libperl.so.xxx,
so that a simple -lperl picks up either libperl.a or
libperl.so.xxx.

Check if $sh='' in case we've reloaded an old config.sh

27 years agoUpdated for 5.003_04.
Perl 5 Porters [Mon, 2 Sep 1996 03:16:25 +0000 (03:16 +0000)]
Updated for 5.003_04.

27 years agoSUBVERSION 4.
Perl 5 Porters [Wed, 28 Aug 1996 22:33:44 +0000 (22:33 +0000)]
SUBVERSION 4.

27 years agoperl 5.003_03: [patch introduction and re-organisation] perl-5.003_03
Andy Dougherty [Sun, 25 Aug 1996 01:27:42 +0000 (01:27 +0000)]
perl 5.003_03: [patch introduction and re-organisation]

# This is my patch perl5.003_03.pat to perl5.003_02
# The full description is below.
# Please execute the following commands before applying this patch.
# (You can feed this patch to 'sh' to do so.)
#  Andy Dougherty               <doughera@lafcol.lafayette.edu>

# Absorbed into Changes5.002
rm -f Changes.Conf

# Not needed.
rm -f ext/POSIX/mkposixman.pl

# Moved to README.os2.  I'm not sure why the README files are
# here rather than in the appropriate subdirectories.
rm -f os2/README

# Not needed.
rm -f pod/Makefile.PL

# New test for bit ops
touch t/op/bop.t

# Patches that create new tests don't always make them executable.
chmod +x t/*/*.t

# Create a new directory for Porting and Patching info.
mkdir Porting

exit 0

This is patch perl5.003_03.pat to perl version 5.003_02.
This takes you from 5.003_02 to 5.003_03.

To apply this patch, run the above commands,
cd to your perl source directory and then type

        patch -p1 -N < perl5.003_03.pat

The changes are described after each /^Index/ line below.  This is
designed so you can examine each change with a command such as

        csplit -k perl5.003_03.pat '/^Index:/' '{99}'

Patch and enjoy,

    Andy Dougherty              doughera@lafcol.lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042

27 years agoperl 5.003_03: x2p/str.c
Perl 5 Porters [Fri, 16 Aug 1996 00:27:34 +0000 (00:27 +0000)]
perl 5.003_03: x2p/str.c

Use Configure's FILE_filbuf macro instead of a raw _filbuf.

----------------
Version 5.003_02

27 years agoKeep 5.003's RCS info.
Perl 5 Porters [Fri, 16 Aug 1996 10:46:55 +0000 (10:46 +0000)]
Keep 5.003's RCS info.

27 years agoperl 5.003_03: x2p/Makefile.SH
Perl 5 Porters [Mon, 19 Aug 1996 00:56:38 +0000 (00:56 +0000)]
perl 5.003_03: x2p/Makefile.SH

Use Configure's $sh and $make_set_make.

Remove MAB stuff, since it's now in ccflags.

Keep 5.003's RCS info.

27 years agoperl 5.003_03: writemain.SH
Perl 5 Porters [Fri, 16 Aug 1996 10:45:14 +0000 (10:45 +0000)]
perl 5.003_03: writemain.SH

Remove unnecessary curlies.  (They are a leftover from
an older auto_init mechanism.)

27 years agoperl 5.003_03: utils/h2ph.PL
Perl 5 Porters [Mon, 19 Aug 1996 00:52:35 +0000 (00:52 +0000)]
perl 5.003_03: utils/h2ph.PL

Make h2ph architecture-independent by using Config at run-time
rather than extraction time.