-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blib.pm dont shell out to "cmd.exe" on Win32+Win32.pm
-document Internals::getcwd() enough, with scary warnings, for future core devs, or CPAN devs. A permanent reason for Internals::getcwd() to exist on Win32 full perl was found. See code comments. -optimize a bit the built-in perl core cwd() XSUBs, use TARG, and group stack manipulation together for C compiler variable liveness reasons aka less variables to save in non-vol regs or on C stack around function calls.
- Loading branch information
Showing
8 changed files
with
76 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ Nick Ing-Simmons [email protected] | |
use Cwd; | ||
use File::Spec; | ||
|
||
our $VERSION = '1.07'; | ||
our $VERSION = '1.08'; | ||
our $Verbose = 0; | ||
|
||
sub import | ||
|
@@ -52,7 +52,11 @@ sub import | |
# That means that it would not be possible to run `make test` | ||
# for the Win32 module because blib.pm would always load the | ||
# installed version before @INC gets updated with the blib path. | ||
chomp($dir = `cd`); | ||
if(defined &Internals::getcwd) { | ||
$dir = Internals::getcwd(); | ||
} else { | ||
chomp($dir = `cd`); | ||
} | ||
} | ||
else { | ||
$dir = getcwd; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters