summaryrefslogtreecommitdiff
path: root/mg.c
Commit message (Collapse)AuthorAgeFilesLines
* Re: [PATCH] add pTHX_ parameter to new_warnings_bitfield()Steve Hay2006-04-131-1/+1
| | | | | | Message-ID: <443E1998.9090909@uk.radan.com> Date: Thu, 13 Apr 2006 10:27:52 +0100 p4raw-id: //depot/perl@27784
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-6/+12
| | | | | | | directly (shared) malloc()ed buffer holding the warnings bitmask. This avoids bugs/crashes when the interpreter that created an optree is freed but the optree remains in use by other interpreters. p4raw-id: //depot/perl@27779
* Rename variables in some mg_* funcsAndy Lester2006-04-091-11/+15
| | | | | Message-ID: <20060409052012.GA15887@petdance.com> p4raw-id: //depot/perl@27749
* Re: Smoke [5.9.4] 27728 FAIL(F) MSWin32 WinXP/.Net SP2 (x86/2 cpu)Rafael Garcia-Suarez2006-04-061-1/+1
| | | | | Message-ID: <20060406143250.5a7de4b8@grubert.mandriva.com> p4raw-id: //depot/perl@27731
* Assigning undef to an entry in %ENV shouldn't produce warnings, evenRafael Garcia-Suarez2006-04-051-2/+2
| | | | | though it's silently converted to "" p4raw-id: //depot/perl@27725
* 'SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv)' is 'SvIV(sv)' so write it as such.Nicholas Clark2006-04-021-21/+21
| | | p4raw-id: //depot/perl@27676
* Abstract all the accesses to cop_arybase (apart from ByteLoader)Nicholas Clark2006-04-021-6/+6
| | | p4raw-id: //depot/perl@27671
* Automatically set HINT_LOCALIZE_HH whenever %^H is modified.Nicholas Clark2006-04-011-0/+5
| | | p4raw-id: //depot/perl@27666
* Note future possible flexibility for Perl_magic_sethint().Nicholas Clark2006-03-311-0/+5
| | | p4raw-id: //depot/perl@27647
* Serialise changes to %^H onto the current COP. Return the compile timeNicholas Clark2006-03-311-0/+40
| | | | | | state of %^H as an eleventh value from caller. This allows users to write pragmas. p4raw-id: //depot/perl@27643
* Random accumulated patchesAndy Lester2006-03-311-3/+4
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* sv_find() returning false, followed by sv_magic() to add the magic,Nicholas Clark2006-03-171-2/+6
| | | | | | followed immediately by sv_find() to find it, is somewhat wasteful. So use sv_magicext(). (All cases are also correct w.r.t. SvREADONLY()) p4raw-id: //depot/perl@27533
* Add a new per-interpeter variable PL_utf8cache, which will be used toNicholas Clark2006-03-161-1/+8
| | | | | | control the UTF-8 offset caching code. Make this visible as ${^UTF8CACHE} p4raw-id: //depot/perl@27525
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-8/+8
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* unused context warningsAndy Lester2006-02-241-0/+6
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* Remove get magic from typeglobs. This means that PVGVs holdingNicholas Clark2006-02-231-15/+6
| | | | | | | | | | | typeglobs never need to use SvPVX. This comes at price - typeglobs were using magic get for their stringificiation, and to pass SvOK(), so need to make typeglobs SvOK by default (by sucking SVp_SCREAM into SVf_OK - it's the only flag left), tweak SvSCREAM() to also check SVp_POK, and teach sv_2[inpu]v how to convert globs. However, it should free up SvPVX for the next part of the plan to pointer indirections, and therefore CPU cache pressure. p4raw-id: //depot/perl@27278
* Can merge the two arms of Perl_magic_getglob to save space.Nicholas Clark2006-02-211-7/+8
| | | p4raw-id: //depot/perl@27265
* 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