summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Re: [ID 20020704.001] my $foo = $1 won't taint $foo (with use re 'taint')Hugo van der Sanden2002-08-041-7/+13
| | | | | Message-id: <200208041640.g74GeUU25061@crypt.compulink.co.uk> p4raw-id: //depot/perl@17678
* Retract #16820, #16819, #16810, #16669, #16531, #16530, #16501Jarkko Hietaniemi2002-05-281-11/+2
| | | | | to restore some level of sanity in the tied scalars can of worms. p4raw-id: //depot/perl@16845
* A shot in the dark.Jarkko Hietaniemi2002-05-271-3/+3
| | | p4raw-id: //depot/perl@16820
* Fix for the IO::Scalar bug (I think).Nick Ing-Simmons2002-05-271-2/+11
| | | | | | | | | | At tie time break the loop but in a different place: A. Increment REFCNT of the RV involved in the self-tie B. Decrement REFCNT of the thing RV points to (e.g. the GV) At mg_free time Break the connection between the RV and its referent so that we do not try and free it (again). p4raw-id: //depot/perlio@16808
* manual integrate of change#16332 from maint-5.6 branchGurusamy Sarathy2002-05-021-8/+18
| | | | | p4raw-link: @16332 on //depot/maint-5.6/perl: 9bf7742e23b67e3d7c671615795c570c51951513 p4raw-id: //depot/perl@16348
* Integrate #16334 from maint-5.6;Jarkko Hietaniemi2002-05-021-2/+1
| | | | | | | | don't pad $0 with spaces when setting it, use nulls instead (the spaces show up as a very long line in a ps listing) p4raw-id: //depot/perl@16339 p4raw-integrated: from //depot/maint-5.6/perl@16338 'merge in' mg.c (@16332..)
* More VC5-induced casting found by Nikola Knezevic.Jarkko Hietaniemi2002-04-271-1/+1
| | | p4raw-id: //depot/perl@16232
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-10/+10
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* Windows 64-bit support:Gurusamy Sarathy2002-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * support for building it in the regular makefiles * large files support via the _*i64() functions (this should be portable to the 32-bit universe too, but quite untested and and binary-incompatible, therefore not enabled there) * three additional test failures in addition to the t/end.t one (see README.win32) * sprintf() on Windows gets %I{32,64,}[xoud] format that parallel the ones available from the CRT (needed because Perl uses the UVxf macros in both sprintf() *and* in sv_catpvf() et al.) * add a few 64-bit notes to README.win32 The following general problems were also fixed: * s/struct stat/Stat_t/g * Data::Dumper had some naughty 'long' typecasts * Errno_pm.PL didn't work safe when winsock.h was not in the same directory as errno.h * various tell/seek things were incorrectly prototyped * squelch ugly looking noise when running tests * Embed.t wasn't linking in all the libraries * perl57.dll is now perl58.dll (anticipating 5.8.0-RC1) * re-enable all the disabled warnings (additional fixes may be needed for the warnings uncovered by this) p4raw-id: //depot/perl@16033
* Humbly pay homage to the redundancy gods.Abhijit Menon-Sen2002-04-081-0/+1
| | | p4raw-id: //depot/perl@15818
* Remove, eliminate, and destroy multiple, redundant occurences of theAbhijit Menon-Sen2002-04-081-1/+0
| | | | | same line of code. (As suggested by Simon Cozens.) p4raw-id: //depot/perl@15797
* warnings for perlio + othersPaul Marquess2002-03-251-1/+1
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15485
* more warnings tidyupPaul Marquess2002-03-111-2/+2
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* If we get to sighandler by mistake (no perl handler set) thenNick Ing-Simmons2002-01-261-11/+12
| | | | | | | warn() and exit() rather than die() - should never happen but if it does context needed to die is likely to be trashed as well. p4raw-id: //depot/perlio@14427
* Integrate mainlineNick Ing-Simmons2002-01-251-1/+1
| | | | | All but ../lib/Unicode/UCD.t pass. p4raw-id: //depot/perlio@14412