This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate VMS-specific code in PerlIOStdio_fill.
authorCraig A. Berry <craigberry@mac.com>
Sun, 8 Jun 2014 23:14:57 +0000 (18:14 -0500)
committerCraig A. Berry <craigberry@mac.com>
Mon, 9 Jun 2014 01:33:09 +0000 (20:33 -0500)
commit5876737a160ce8f490b3d77eb7edd87391db1968
tree260f71fa72e0a53ca30af22312f8cffd8913fa4e
parentba5248fcde21acfb9d93220ec07256804525c18e
Eliminate VMS-specific code in PerlIOStdio_fill.

The same logic but with more safety checks is already defined for
PerlSIO_ungetc in iperlsys.h, so DRY says we should just use that.

Also, that definition in iperlsys.h really depends on the library
we are using, not the compiler.  And there is only one viable C
library on VMS and it ships with the OS, so it's really just an
OS dependency.

N.B.  While it may be something of a fool's errand to maintain the
stdio layer, deleting redundant code can only be a good thing,
possibly enabling further refactoring and clean-up.
iperlsys.h
perlio.c