summaryrefslogtreecommitdiff
path: root/caretx.c
Commit message (Collapse)AuthorAgeFilesLines
* RT#133573: $^X fallback when platform-specific technique failsAaron Crane2018-10-091-12/+16
|
* caretx.c: simplify cpp conditionalsAaron Crane2017-10-211-6/+5
|
* move Win32's $^X code to where all other OSes' $^X code livesDaniel Dragan2015-12-021-0/+8
| | | | | | | | | | | | | | | | | | | | | Back when the code in perllib.c was first added in 1999, in commit 80252599d4 the large define tree function that today in 2015 is Perl_set_caret_X was an unremarkable single statement http://perl5.git.perl.org/perl.git/blob/80252599d4b7fb26eec4e3a0f451b4387c5dcc19:/perl.c#l2658 Over the years Perl_set_caret_X grew and grew with OS specific code. Move the Win32 $^X code to match how all the other OSes do it. Fix a problem where full perl's $^X is always absolute because perl5**.dll uses GetModuleFileNameW in perllib.c, but miniperl's $^X is always a relative path because it's coming from libc/command prompt/make tool/make_ext.pl. Win32 miniperl's $^X being relative causes inefficiencies in EUMM as a relative $^X is wrong the moment chdir executes in any perl process. EUMM contains code to search PATH and some other places to guess/figure out the absolute patch to the current perl to write the absolute perl path into the makefile. By making $^X absolute on all Win32 perl build variants, this find absolute perl path code won't execute in EUMM. It also harmonizes behavior with other OSes and between Win32 mini and full perl. See details in RT ticket for this patch.
* Perl_set_caret_X gv_fetch with GV_ADD can't return NULLDaniel Dragan2015-12-021-66/+64
| | | | | The GV will be created if it doesn't exist. Remove the branch for smaller code size.
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-221-6/+0
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* spell "SSize_t" correctlyTony Cook2014-07-281-1/+1
| | | | the same as the other place in that patch
* readlink() result buffer is not zero-terminated.Jarkko Hietaniemi2014-07-271-1/+7
| | | | | | | Therefore, as an extra paranoia step, zero-terminate the readlink result buffer even before the result SV is created. Also, readlink returns SSize_t, not int.
* Remove or downgrade unnecessary dVAR.Jarkko Hietaniemi2014-06-251-1/+0
| | | | | | | | You need to configure with g++ *and* -Accflags=-DPERL_GLOBAL_STRUCT or -Accflags=-DPERL_GLOBAL_STRUCT_PRIVATE to see any difference. (g++ does not do the "post-annotation" form of "unused".) The version code has some of these issues, reported upstream.
* Page number for caretx.c Tolkien quoteFather Chrysostomos2013-12-011-1/+1
| | | | Tom Christiansen kindly provided it in <30867.1385946564@chthon>.
* caretx.c: Add LOTR quoteFather Chrysostomos2013-11-041-1/+7
| | | | | I don’t have the right edition, so could someone else please supply the page number?
* caretx.c: Add bool warning commentFather Chrysostomos2013-11-041-0/+6
| | | | It is for this reason that this file exists.
* Move the function to set $^X to its own filePeter Martini2013-11-041-0/+128
This also moves the indirect dependency on stdbool.h to its own file, rather than being pulled in for all of perl.c, for those cases where one may want to test using other definitions of bool.