summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* Back out change change 10214 (drop SVp_IOK from >> PRIVSHIFT) as itNicholas Clark2006-02-141-1/+1
| | | | | | | never felt quite correct, and other parts of the SV conversion implementation have improved such that the symptoms 10214 covered over are gone even without it. p4raw-id: //depot/perl@27184
* assert() that we can't reach two unreachable code pathsNicholas Clark2006-02-111-2/+1
| | | | | (in Perl_magic_get and Perl_pp_shift). p4raw-id: //depot/perl@27154
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-1/+1
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-10/+10
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* s/Nullcv/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060202150241.GF12591@accognoscere.homeunix.org> Date: Thu, 2 Feb 2006 16:02:41 +0100 p4raw-id: //depot/perl@27060
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-5/+5
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* Simplify nested '#ifdef' by replacing it with '#elif defined()'Gisle Aas2006-01-271-10/+4
| | | p4raw-id: //depot/perl@26954
* Safer implementation of RTRIM().Gisle Aas2006-01-271-3/+3
| | | | | Don't rely on SvCUR to be sane unless SvPOK. p4raw-id: //depot/perl@26953
* Change 26781/26830 (SvRTRIM should also write a new '\0' at the end) can ↵Philippe M. Chiasson2006-01-261-4/+6
| | | | | | | | | cause segfaults From: "Philippe M. Chiasson" <gozer@ActiveState.com> Message-ID: <43D941AF.1060503@ActiveState.com> Date: Thu, 26 Jan 2006 13:39:59 -0800 p4raw-id: //depot/perl@26952
* SvREADONLY_off inside the magic routines is also dangerous on sharedNicholas Clark2006-01-261-3/+2
| | | | | | hash key scalars, so decompose them to normal scalars if they ever get here. p4raw-id: //depot/perl@26946
* Un-const magic virtual tables; this consting breaks the nastyRafael Garcia-Suarez2006-01-231-1/+1
| | | | | things done by Swig, as noticed by Audrey. p4raw-id: //depot/perl@26924
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-1/+1
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* Make $( and $) list the groups in the order theyGisle Aas2006-01-111-4/+3
| | | | | | | are returned from the OS. Linux seems to return the gids sorted and it seemed wrong for perl to reverse this order. p4raw-id: //depot/perl@26791
* Get rid of the following gcc format warnings by simplifying theGisle Aas2006-01-111-9/+3
| | | | | | | | | | | | | | getgroups implementation: mg.c: In function Perl_magic_get': mg.c:1008: warning: long unsigned int format, gid_t arg (arg 3) mg.c:1014: warning: long unsigned int format, gid_t arg (arg 3) mg.c:1025: warning: long unsigned int format, unsigned int arg (arg 3) Since we already cast the numeric Gid_t values to an IV it should not be too risky to also cast the Group_t values. Converting these values with Gid_t_f wasn't quite right anyway. p4raw-id: //depot/perl@26786
* Gisle notes that SvRTRIM should also write a new '\0' at the end.Nicholas Clark2006-01-111-0/+1
| | | p4raw-id: //depot/perl@26781
* Make setting 'PL_origalen = 1' before perl_parse() disableGisle Aas2006-01-111-2/+2
| | | | | argv[0] munging when $0 is assigned to. p4raw-id: //depot/perl@26779
* It's the Barbie bus patchAndy Lester2006-01-101-6/+6
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* Avoid possible dereference of NULL in the initialization of PL_origalen.Gisle Aas2006-01-101-21/+23
| | | | | | This can only happen when perlparse is called with no argv. Don't try to update PL_origargv unless PL_origalen is at least 2. p4raw-id: //depot/perl@26760
* blead: format warningsJarkko Hietaniemi2006-01-081-3/+3
| | | | | Message-ID: <43C01990.6020207@gmail.com> p4raw-id: //depot/perl@26708
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+29
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Make the new STR_WITH_LEN() affected compile under -Dusethreads.Gisle Aas2006-01-041-1/+1
| | | | | Can't use STR_WITH_LEN() as argument to a macro :-( p4raw-id: //depot/perl@26649
* Get rid of a few more hardcoded string lengths.Gisle Aas2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26645
* add svt_local slot to magic vtable, and fix local $sharedDave Mitchell2006-01-021-7/+4
| | | p4raw-id: //depot/perl@26569
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-1/+1
| | | p4raw-id: //depot/perl@26562
* Making 0 pointers to NULLsAndy Lester2006-01-011-5/+5
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* RMAGIC on symbol tables is bad, m'kay.Nicholas Clark2005-12-301-36/+1
| | | | | | | | Allow hashes (and therefore all symbol tables) to store the backreference array in the hv_aux structure, and thereby undo the performance damage of 24966, which resulted in 60% of all hash lookups trying to mg_find tiehash magic. p4raw-id: //depot/perl@26530
* pre-likely cleanupAndy Lester2005-12-271-10/+6
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* In this, the last tale of the NGROUPS saga, a former pumpking prodsSteve Peters2005-12-261-19/+28
| | | | | | | | | a mere committer to remove the last of the NGROUPS-sized arrays... Perl_magic_set() was using the last of these arrays to do the lvalue work on $). Instead of an array, a pointer is used and re-sized as needed. p4raw-id: //depot/perl@26492
* Re: [perl #37907] Perl_magic_get reqires ridiculous amounts of stackmemoryJim Cromie2005-12-241-4/+8
| | | | | | | Message-ID: <43AC5CFD.3060200@gmail.com> Includes a change in variable names from "j" to "num_groups". p4raw-id: //depot/perl@26480
* The lref argument of sv_2cv is actually passed onwards to gv_fetchsv,Nicholas Clark2005-12-211-1/+1
| | | | | so it is a bitmap of flag bits rather than simple TRUE/FALSE. p4raw-id: //depot/perl@26434
* gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, ratherNicholas Clark2005-12-201-3/+3
| | | | | than a simple boolean, so passing FALSE or TRUE is bogus. p4raw-id: //depot/perl@26415
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-31/+33
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* Cleaning up some warnings generated by "gcc -W"Steve Peters2005-11-191-0/+1
| | | p4raw-id: //depot/perl@26175
* Mark all places where perl needs to look at a possibly-freed scalarNicholas Clark2005-11-141-1/+3
| | | | | with a macro SvIS_FREED(sv) p4raw-id: //depot/perl@26132
* use clearenv if availableAlan Burlison2005-11-041-33/+7
| | | | | Message-ID: <436B8D5A.4010502@sun.com> p4raw-id: //depot/perl@25996
* Reverting the reversion. va_end() goes with va_start().Steve Peters2005-11-031-5/+1
| | | p4raw-id: //depot/perl@25980
* Change #25976 seemed to cause test failures in ext/B/t/f_sort.t. WhatSteve Peters2005-11-031-1/+5
| | | | | was that line about Jenga again? p4raw-id: //depot/perl@25977
* Missing va_end(args) from SA_SIGINFO related code.Steve Peters2005-11-031-0/+2
| | | p4raw-id: //depot/perl@25976
* Avoid corruption when calling mg_get to retrieve the valueRafael Garcia-Suarez2005-10-311-0/+3
| | | | | | | | of a $digit variable. This is done by ensuring it's not tainted. See http://bugs.debian.org/303308 Patch by Chris Heath <chris.heath@autoweb.net> p4raw-id: //depot/perl@25932
* Oops, missed an sv_force_normal()Steve Peters2005-10-291-1/+1
| | | p4raw-id: //depot/perl@25877
* Change to use sv_force_normal_flags() directly, rather than callingSteve Peters2005-10-291-1/+1
| | | | | sv_force_normal() to call sv_force_normal_flags(). p4raw-id: //depot/perl@25875
* [patch@25809]restore documented exit behaviorJohn E. Malmberg2005-10-201-2/+2
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <43581860.3020108@qsl.net> p4raw-id: //depot/perl@25810
* More consting, and DRY leads to shrinking object codeAndy Lester2005-10-191-25/+31
| | | | | Message-ID: <20051018145723.GA4964@petdance.com> p4raw-id: //depot/perl@25803
* another Symbian update: Alan's fault :-)Jarkko Hietaniemi2005-10-171-2/+2
| | | | | Message-ID: <B356D8F434D20B40A8CEDAEC305A1F24E7A611@esebe105.NOE.Nokia.com> p4raw-id: //depot/perl@25778
* Fix by Rick Delaney for [perl #3269] no warnings "bareword" turns offRafael Garcia-Suarez2005-09-271-4/+9
| | | | | too many warnings. p4raw-id: //depot/perl@25619
* Re: Fw: Tied hash numeric values are rounded off under Perl v5.8.6Yitzchak Scott-Thoennes2005-09-061-2/+10
| | | | | Message-ID: <20050902070552.GA3992@efn.org> p4raw-id: //depot/perl@25358
* Various patches by John E. Malmberg to fix dataRafael Garcia-Suarez2005-08-011-1/+4
| | | | | | | corruption issues on VMS. Back out change 25218 and the parts of change 25217 that affect pp_ctl.c and pp_sys.c. p4raw-id: //depot/perl@25257
* RE: [PATCH] Re: [PATCH] support POSIX SA_SIGINFOPaul Green2005-07-281-1/+1
| | | | | | From: "Green, Paul" <Paul.Green@stratus.com> Message-ID: <F5F42E77A43DD944B6D664B00A5401CB8A9F67@EXNA.corp.stratus.com> p4raw-id: //depot/perl@25240
* tidy up DieNull and DIE_NULLRobin Barker2005-07-281-1/+1
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C75C@hotel.npl.co.uk> p4raw-id: //depot/perl@25237
* silence compiler warning in mg.c POSIX.xsRobin Barker2005-07-281-1/+1
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C75B@hotel.npl.co.uk> p4raw-id: //depot/perl@25236