summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* SCALAR/FIRSTKEY for tied hashes in scalar contextTassilo von Parseval2003-12-061-0/+41
| | | | | Message-id: <20031206105059.GA13989@ethan> p4raw-id: //depot/perl@21855
* $^P, eval and callerPaul Johnson2003-12-051-1/+2
| | | | | Message-ID: <20031204235721.GJ26355@pjcj.net> p4raw-id: //depot/perl@21842
* setting $0 still brokenJan Dubois2003-12-021-3/+3
| | | | | Message-ID: <f3mdsv8dcv4asle0kbhiijk0adu1l25sr3@4ax.com> p4raw-id: //depot/perl@21833
* restore_magic needs to undo COWNicholas Clark2003-11-221-0/+7
| | | | | | | (while magic was off, sv_setsv is likely to have seen this SV as a good source for COW) Should fix the smoke failures on lib/locale.t p4raw-id: //depot/perl@21774
* Restore errno after having read $^E (like for $!)Rafael Garcia-Suarez2003-11-191-2/+6
| | | | | to preserve errno from unfortunate side-effects. p4raw-id: //depot/perl@21743
* Will the real off by one please stand up?Abhijit Menon-Sen2003-10-271-4/+5
| | | p4raw-id: //depot/perl@21546
* Fix off-by-one in $0 set magic. (From Autrijus.)Abhijit Menon-Sen2003-10-261-1/+1
| | | | | The whole PL_origalen thing in perl.c looks very hokey. p4raw-id: //depot/perl@21538
* [perl #24122] setreuid and friends borked on darwin/osx pxm@nubz.org2003-10-121-2/+7
| | | | | | From: "pxm@nubz.org (via RT)" <perlbug-followup@perl.org> Message-ID: <rt-24122-65678.14.2411168523081@rt.perl.org> p4raw-id: //depot/perl@21440
* [perl #24032] Perl 5.8.1-RC5 build problems on LynxOS Olli Savia2003-09-241-0/+8
| | | | | | From: Olli Savia (via RT) <perlbug-followup@perl.org> Message-ID: <rt-24032-65280.10.6144413163834@rt.perl.org> p4raw-id: //depot/perl@21360
* The change #20809 opened up a code path that might leave s unset.Jarkko Hietaniemi2003-08-221-1/+1
| | | | | p4raw-link: @20809 on //depot/perl: 0daa599b568c3d2373a59e6063e86a6f865719a8 p4raw-id: //depot/perl@20829
* The magic variables that alter STDOUT have a tendancy to segfaultRafael Garcia-Suarez2003-08-211-6/+12
| | | | | when accessed if STDOUT is undefined. Protect them. p4raw-id: //depot/perl@20809
* Re: untieing your victim during the actDave Mitchell2003-08-211-1/+5
| | | | | Message-ID: <20030820194453.GD27719@fdgroup.com> p4raw-id: //depot/perl@20793
* If we are void we cannot return a value.Jarkko Hietaniemi2003-08-121-1/+1
| | | p4raw-id: //depot/perl@20648
* Apply much of Ilya's microperl patch, but instead ofJarkko Hietaniemi2003-08-121-2/+4
| | | | | | | | | implementing the opendir()/readdir()/closedir() using external commands give up "ANSI-pureness" and define them in uconfig.sh, also define other stuff like rename() and putenv(). Leave out the $| emulation in my_fork() since we are not supposed to have fork() under microperl. p4raw-id: //depot/perl@20646
* Move the csighandler to be a data variable so thatJarkko Hietaniemi2003-08-081-8/+8
| | | | | | | | things like DLL trampolines can't mess up the code variables the Perl_csighandler (seen in Cygwin: Perl_csighandler in POSIX extension was different than in main executable). p4raw-id: //depot/perl@20565
* warnings, line numbers & windowsMarcus Holland-Moritz2003-07-081-1/+1
| | | | | Message-ID: <12022.1057655645@www59.gmx.net> p4raw-id: //depot/perl@20068
* Re: ext/List/Util/t/weak.t panicDave Mitchell2003-07-031-0/+1
| | | | | Message-ID: <20030703003211.GB3747@fdgroup.com> p4raw-id: //depot/perl@19943
* The 'contiguous' test for argv[], envp[] was bogusJarkko Hietaniemi2003-06-301-8/+2
| | | | | | | | | since those need not be in memory end-to-end, e.g. in Tru64 they are aligned by eight. Loosen the test so that 'contiguousness' is fulfilled if the elements are within PTRSIZE alignment. This makes Tru64 to pass the join.t, too. p4raw-id: //depot/perl@19889
* The joy of $0. Undoing the #16399 makes Andreas'Jarkko Hietaniemi2003-06-291-50/+22
| | | | | | | | | | | | | | tests (see [perl #22811]) pass (yes, padding with space instead of nul makes no sense, but that seems to work, maybe Linux does some deep magic in ps(1)?); moving the PL_origalen computation earlier makes also the threaded-first case fully pass. But in general modifying the argv[] is very non-portable. (e.g. in Tru64 it seems to be limited to the size of the original argv[0] since the argv[] are not contiguous?) Everybody should just have setproctitle(). p4raw-id: //depot/perl@19884
* Two debugging patches.Dave Mitchell2003-06-281-1/+6
| | | | | | | | | | | | | | | | The first allows to hold symbolic switches in $^D and more generally fixes assignment to $^D. The second one improves the information given by -Dl. Subject: [PATCH] allow $^D = "flags" Date: Fri, 27 Jun 2003 22:26:24 +0100 Message-ID: <20030627212624.GB12887@fdgroup.com> Subject: [PATCH] make -Dl show more scope info From: Dave Mitchell <davem@fdgroup.com> Date: Fri, 27 Jun 2003 23:00:36 +0100 Message-ID: <20030627220036.GC12887@fdgroup.com> p4raw-id: //depot/perl@19870
* Remove the deprecated $* variable.Rafael Garcia-Suarez2003-06-131-6/+0
| | | | | | | Incidentally, this fixes bug #22354, about unwanted action-at-distance of the /m regexp modifier. Add a new warning to advertise this fact. p4raw-id: //depot/perl@19769
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* whichsig() really does return -1 for unknown signals.Jarkko Hietaniemi2003-03-141-1/+1
| | | p4raw-id: //depot/perl@18979
* Make whichsig() to work also if some system definesJarkko Hietaniemi2003-03-141-4/+4
| | | | | | | | zero signals (now -1 is the "not found"). Note that in couple of mg.c spots only whichsig() > 0 branches are taken because signal handlers et al don't make much sense for the zero signal. p4raw-id: //depot/perl@18975
* Re: odd (or not so odd?) segmentation fault in 5.8.0Yitzchak Scott-Thoennes2003-03-101-0/+6
| | | | | Message-ID: <RtQa+gzkg2kF092yn@efn.org> p4raw-id: //depot/perl@18889
* mg.c needs Perl_csighandler prototypeCraig A. Berry2003-03-061-0/+2
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <3E677A5D.10805@mac.com> p4raw-id: //depot/perl@18839
* Patch by Salvador FandiƱo to read the warning maskRafael Garcia-Suarez2003-03-041-1/+10
| | | | | | | | returned by caller() and ${^WARNING_BITS} from $warnings::Bits{all} and not from the hardcoded core constant. (This mask could have been extended by warnings::register.) Plus tests. p4raw-id: //depot/perl@18829
* RE: [perl #20613] Perl_magic_setsig/clearsig problems (patch included)Anders Johnson2003-03-021-20/+105
| | | | | | From: "Anders Johnson" <ajohnson@wischip.com> Message-ID: <000e01c2d151$2228ca90$9800a8c0@wis.com> p4raw-id: //depot/perl@18803
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* Re: [perl #20683] [fix] Better PatchAdrian M. Enache2003-02-261-0/+7
| | | | | Message-ID: <20030223181639.GA18713@ratsnest.hole> p4raw-id: //depot/perl@18782
* Cleanup #18770 as suggested by Rafael.Jarkko Hietaniemi2003-02-251-15/+0
| | | p4raw-id: //depot/perl@18771
* A new try at #18765 (for [perl #20920]).Jarkko Hietaniemi2003-02-251-1/+19
| | | p4raw-id: //depot/perl@18770
* Retract change #18765: makes HiRes.t hang after subtest #11.Jarkko Hietaniemi2003-02-251-20/+2
| | | | | p4raw-link: @18765 on //depot/perl: 2fb44b4522b8956ab337b2f83a5fe619b0773788 p4raw-id: //depot/perl@18769
* PERL_SIGNALS=unsafe enables the old unsafe/immediate signals.Jarkko Hietaniemi2003-02-241-8/+7
| | | p4raw-id: //depot/perl@18766
* Re: [perl #20920] Segmentation fault ("Safe Signal" queue problem?)Slaven Rezic2003-02-241-2/+20
| | | | | | | Message-ID: <878ywji8nw.fsf@vran.herceg.de> (with slight tweaks) p4raw-id: //depot/perl@18765
* The new(er) way of controlling Unicode I/O (and other) features;Jarkko Hietaniemi2003-02-151-9/+3
| | | | | -C (or PERL_UNICODE). See perlrun/-C for more details. p4raw-id: //depot/perl@18715
* [perl #18232] [PATCH] store PL_reg_match_utf8 in reganchRafael Garcia-Suarez2003-02-021-3/+3
| | | | | Message-Id: <20030122223556.57d597a3.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18633
* OPf_SPECIAL on OP_DBSTATE now indicates a breakpoint.Dave Mitchell2003-01-261-2/+7
| | | | | | Subject: Re: [PATCH] Re: change #9754: 5 x slowdown for perl -d Message-ID: <20030124184419.F11179@fdgroup.com> p4raw-id: //depot/perl@18589
* integrate (by hand) #18353 and #18359 from maint-5.8:Hugo van der Sanden2003-01-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a cache for UTF-8 data: length and byte<->char offset mapping are stored in a new type of magic. Speeds up length(), substr(), index(), rindex(), pos(), and some parts of s///. The speedup varies a lot (on the usual suspects: what is the access pattern of the data, compiler, CPU), but should be at least one order of magnitude, and getting to the same magnitude as byte string speeds, and in some cases (length on unchanged data) even reaching the byte string speed. On the other hand, in some cases (index) the byte speed is still faster by a factor of five or so, but the bottleneck there does not seem to be any more the byte<->char offset mapping (instead, the fbm_instr() speed). There is one cache slot for the length, and only two for the byte<->char offset mapping (the first one for the start->offset, and the second for the offset->offset+length, when talking in substr() terms). Code this hairy is bound to have hairy trolls hiding under it. [...] A small tweak on top of #18353: don't display mg_len bytes of mg_ptr for PERL_MAGIC_utf8 because that's not what's there. p4raw-id: //depot/perl@18530
* Make the locale-induced UTF-8-ification of STD fhsJarkko Hietaniemi2003-01-161-6/+12
| | | | | | and the default file open layer explicit (either -C or PERL_UTF8_LOCALE), instead of implicit (and unasked-for). p4raw-id: //depot/perl@18490
* Change the value of ${^TAINT} : 0 without taint checks,Rafael Garcia-Suarez2003-01-061-1/+3
| | | | | 1 with -T, and -1 with -t or -TU. p4raw-id: //depot/perl@18453
* Re: [perl #19330] Uneffective increment of $\Rafael Garcia-Suarez2002-12-301-1/+1
| | | | | Message-Id: <20021227161424.17234e3c.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18371
* $0 modifying part II (HP-UX only)Jarkko Hietaniemi2002-12-021-0/+12
| | | | | | Subject: [PATCH] $0 modifying Message-ID: <20021130181651.GA5876@kosh.hut.fi> p4raw-id: //depot/perl@18230
* $0 mofifying part IJarkko Hietaniemi2002-12-021-0/+2
| | | | | | Subject: [PATCH] $0 modifying Message-ID: <20021130181651.GA5876@kosh.hut.fi> p4raw-id: //depot/perl@18229
* The Inaba patch for tr/// vs. use encodingDan Kogai2002-10-241-14/+19
| | | | | Message-Id: <218B4434-E4D0-11D6-A668-0003939A104C@dan.co.jp> p4raw-id: //depot/perl@18058
* Happy chainsaw stories; The removal of the 5005 threadsH.Merijn Brand2002-10-191-25/+0
| | | | | Still imcomplete. Configure will follow p4raw-id: //depot/perl@18030
* enable -ansi -pedanticJarkko Hietaniemi2002-09-261-1/+8
| | | | | Message-ID: <20020917221925.GF85044@lyta.hut.fi> p4raw-id: //depot/perl@17925
* Copy On WriteNicholas Clark2002-08-171-0/+5
| | | | | | Message-id: <20020815001035.A69079@plum.flirble.org> specify "-Accflags='-DPERL_COPY_ON_WRITE'" to use p4raw-id: //depot/perl@17728
* Remove pseudo-hashes (complete)Michael G. Schwern2002-08-171-20/+6
| | | | | Message-id: <20020806200510.GC31473@ool-18b93024.dyn.optonline.net> p4raw-id: //depot/perl@17725
* [ID 20020704.001] again: #17678 caused test failures in pod2html,Hugo van der Sanden2002-08-041-13/+14
| | | | | in which $1 could leak from previous regexp p4raw-id: //depot/perl@17679