summaryrefslogtreecommitdiff
path: root/sv.h
Commit message (Collapse)AuthorAgeFilesLines
* Add a new macro SvPV_free() which undoes OOK and free()s the PVX(),Nicholas Clark2005-04-281-0/+12
| | | | | | becase there's a lot of code around that calls SvOOK_off(), memmov()s the buffer, then promptly free()s it. So avoid the needless memmov(). p4raw-id: //depot/perl@24348
* bytecode.pl, bytecode.h, and sv.h fixesSteve Peters2005-04-221-5/+13
| | | | | Message-ID: <20050421235547.GA12149@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24277
* Restore SvEND_setNicholas Clark2005-04-191-0/+3
| | | p4raw-id: //depot/perl@24253
* Force RVALUE macros when in PERL_DEBUG_COWNicholas Clark2005-04-191-20/+31
| | | p4raw-id: //depot/perl@24252
* Refactoring to Sv*_set() macros - patch #5Steve Peters2005-04-191-9/+22
| | | | | | Message-ID: <20050419000925.GA21640@mccoy.peters.homeunix.org> Date: Mon, 18 Apr 2005 19:09:25 -0500 p4raw-id: //depot/perl@24248
* Add CLONE_SKIP() class method to allow individual classes to skipDave Mitchell2005-04-191-0/+1
| | | | | cloning objects during thread creation p4raw-id: //depot/perl@24247
* PERL_DEBUG_COW for SvUVX and SvPVXNicholas Clark2005-04-181-3/+4
| | | p4raw-id: //depot/perl@24246
* SvPV_renew also calls SvLEN_setNicholas Clark2005-04-181-2/+10
| | | | | | Add SvPV_shrink_to_cur(sv) to call SvPV_renew with SvCUR(sv)+1. For Ponie this can be a single call into the PMC p4raw-id: //depot/perl@24245
* Replace Renew(SvPVX(...)...) with SvPV_renew, which avoids an LVALUENicholas Clark2005-04-181-0/+4
| | | | | SvPVX p4raw-id: //depot/perl@24244
* Refactoring to Sv*_set() macros - patch #3Steve Peters2005-04-121-0/+3
| | | | | | | Message-ID: <20050411023736.GB9355@mccoy.peters.homeunix.org> (with correction to SvUV_set) p4raw-id: //depot/perl@24229
* Add SvIVX() to PERL_DEBUG_COW, and change pad.c to SvIVset()Nicholas Clark2005-04-081-5/+7
| | | p4raw-id: //depot/perl@24206
* Add a macro PERL_DEBUG_COW, for aggressive compile time tests ofNicholas Clark2005-04-081-6/+11
| | | | | | Copy-On-Write related source changes. Fix the problem this revealed. p4raw-id: //depot/perl@24201
* Update copyrights.Rafael Garcia-Suarez2005-03-301-1/+1
| | | p4raw-id: //depot/perl@24106
* expand -DDEBUG_LEAKING_SCALARS to instrument the creation of each SVDave Mitchell2005-03-281-0/+7
| | | p4raw-id: //depot/perl@24088
* Stage 1 of utf8 support for soft references.Nicholas Clark2005-01-071-0/+3
| | | | | | | | | | Change gv_fetchpv to take a UTF8 flag, as gv_fetchpvn_flags Add gv_fetchsv to look up a GV by SV rather than a char * pointer Provide a backwards compatability gv_fetchpv Migrate from gv_fetchpv to gv_fetchsv where the caller was grabbing the pointer from an SV All tests still pass. p4raw-id: //depot/perl@23766
* Implement sv_svset _nosteal variants by passing a flag intoNicholas Clark2004-10-151-4/+2
| | | | | | sv_set_flags rather than messing with the SvTEMP() flag on either side of the call. p4raw-id: //depot/perl@23373
* SvO?OK_off()'s return valueMarcus Holland-Moritz2004-09-081-5/+5
| | | | | | | Message-Id: <20040801124648.7f9b3cee@r2d2> Move (void) casts into SvOOK_off macro. p4raw-id: //depot/perl@23277
* api doc fix for SvSetMagicSV_nostealStas Bekman2004-08-131-1/+1
| | | | | Message-ID: <411C150C.5020602@stason.org> p4raw-id: //depot/perl@23214
* Document sv_catpvn_nomg, sv_setsv_nomg and sv_catsv_nomg.Marcus Holland-Moritz2004-08-041-0/+9
| | | p4raw-id: //depot/perl@23196
* It seems that our assert() macro wasn't good enough.Nicholas Clark2004-06-151-2/+2
| | | | | | | Changed to one that that is an expression, rather than a statement. Fix new macros definitions in sv.h to be clean enough C to keep the AIX compiler happy. p4raw-id: //depot/perl@22937
* Assert SvTYPE is at least PGMV whenever accessing SvSTASHNicholas Clark2004-06-151-1/+1
| | | p4raw-id: //depot/perl@22935
* Assert that SV type has magic member when reading/writing.Nicholas Clark2004-06-141-0/+6
| | | | | Will catch buggy code. p4raw-id: //depot/perl@22934
* Re: undef loses it magicness when assigned to a variable?Stas Bekman2004-05-281-1/+2
| | | | | Message-ID: <40B63284.5040203@stason.org> p4raw-id: //depot/perl@22853
* Nobody has used SvPVbyte_force?SADAHIRO Tomoyuki2004-03-211-1/+1
| | | | | Message-Id: <20040321213628.2461.BQW10602@nifty.com> p4raw-id: //depot/perl@22548
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* simplify sv.hArtur Bergman2004-03-031-6/+6
| | | | | Message-Id: <4D3C272C-6B03-11D8-B799-000A95A2734C@nanisky.com> p4raw-id: //depot/perl@22428
* Re: [PATCH] GLOB to LVALUE assignment fixTassilo von Parseval2004-02-171-5/+12
| | | | | | | Message-Id: <20040217163216.GA6805@ethan> Make PVLV a superset of PVGV, so that $lvalue = *FOO works p4raw-id: //depot/perl@22315
* Correct some prototypes in perlapi.podSteve Hay2004-02-081-3/+3
| | | | | Message-ID: <40238C15.2090200@uk.radan.com> p4raw-id: //depot/perl@22286
* Re: [perl #24816] Magic vars seem unsure if they are purely numericYitzchak Scott-Thoennes2004-01-161-0/+14
| | | | | | | Message-Id: <20040115221037.GA2392@efn.org> Add sv_2iv_flags() to allow magic to be optionally processed. p4raw-id: //depot/perl@22163
* sanitize some macros - based on Chip Salzenberg suggestions andAdrian M. Enache2003-12-221-17/+17
| | | | | on the way GNU people use the gcc-ish 'blocks in parens' p4raw-id: //depot/perl@21950
* Plan C for foiling the algorithmic complexity attackNicholas Clark2003-10-161-0/+1
| | | | | | | | | | | (based on Chip's plan A (binary compatibility with 5.8.0 and 5.8.1), Chip's plan B (do something new inside the hv functions) and introspective sort) Provides infrastructure for hashes to change their hash function if necessary, and code in hsplit to detect pathalogical data and instigate a random rehashing. Needs refinement. Let's see how much smoke it creates. p4raw-id: //depot/perl@21471
* Re: assert.h breaks perl.hAlexey Tourbin2003-10-161-1/+1
| | | | | Message-Id: <20031016182434.GH1724@julia.office.altlinux.ru> p4raw-id: //depot/perl@21468
* It's UTF-8, not UTF8. (Note: not s/UTF-8/UTF8/,Jarkko Hietaniemi2003-09-121-4/+4
| | | | | | since that would break a lot of code.) Also few stray UTF16s, UTF32s, and "encoded in Unicode". p4raw-id: //depot/perl@21198
* Fewer naked char constants.Jarkko Hietaniemi2003-08-301-8/+10
| | | p4raw-id: //depot/perl@20957
* [patch sv.h api doc] SvTAINTED_on does its craft only under -TStas Bekman2003-08-301-2/+2
| | | | | Message-ID: <3F4FEBBD.8000901@stason.org> p4raw-id: //depot/perl@20941
* gcc -ansi -pedantic cleanup; and a seemingly forgottenJarkko Hietaniemi2003-08-101-3/+3
| | | | | sv_placeholder hunk. p4raw-id: //depot/perl@20605
* allow recursive FETCHesDave Mitchell2003-04-191-1/+2
| | | | | Message-ID: <20030407100041.A1617@fdgroup.com> p4raw-id: //depot/perl@19268
* 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
* Typos fixes by Stas Bekman.Rafael Garcia-Suarez2003-04-081-1/+1
| | | p4raw-id: //depot/perl@19167
* [DOCPATCH] Re: [PATCH] Re: [perl #21614] 5.8.0 Unbalanced string table refcountNicholas Clark2003-03-291-0/+8
| | | | | Message-ID: <20030327223735.GD277@Bagpuss.unfortu.net> p4raw-id: //depot/perl@19079
* The 0, in the assert_not_ROK() makes IRIX cc to worryJarkko Hietaniemi2003-03-111-8/+8
| | | | | | (cc-1171 cc: WARNING ... The indicated expression has no effect.) So make the macro to include the , and the non-gcc case empty. p4raw-id: //depot/perl@18921
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* Patching magic from Inaba-san's keyboard: fix for [perl #8769]:Jarkko Hietaniemi2003-02-241-0/+12
| | | | | | "scalar upgraded to UTF-8 as a side effect of quote-interpolation when 'use encoding' is engaged"-- wasn't actually encoding's fault. p4raw-id: //depot/perl@18764
* COW regexps:Nicholas Clark2003-02-161-0/+6
| | | | | | Subject: [PATCH] Copy on write for $& and $1... Message-ID: <20030209230008.GF299@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18726
* inline SvREFCNT_dec:Nicholas Clark2003-02-161-0/+15
| | | | | | Subject: [PATCH] Copy on write for $& and $1... Message-ID: <20030209230008.GF299@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18725
* More code cleanup.H.Merijn Brand2003-02-111-5/+2
| | | | | | | Subject: Re: New SV Flag From: "H.Merijn Brand" <h.m.brand@hccnet.nl> Message-Id: <20030207095258.6E05.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@18693
* make Copy On Write work once againNicholas Clark2003-01-271-1/+1
| | | | | Message-ID: <20030125002550.GG278@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18595
* assert PV isn't RVNicholas Clark2003-01-221-6/+18
| | | | | Message-ID: <20030117194044.GB297@Bagpuss.unfortu.net> p4raw-id: //depot/perl@18552
* Fix 'use encoding' I/O for code points 0x80..0xFF;Jarkko Hietaniemi2003-01-161-0/+1
| | | | | code changes from Inaba Hiroto; test tweaks by jhi. p4raw-id: //depot/perl@18496
* Fixes bug #15273, the return of the object causedArtur Bergman2003-01-031-0/+1
| | | | | | | | | the stash of the object to be cloned, cloning the entire syntax tree and all lexicals in there creating danglning copies to the object. (Pararell but unlinked STASH tree). This adds a new flag, when set it will use STASHES from the thread we are joining into avoiding the problem. p4raw-id: //depot/perl@18419