summaryrefslogtreecommitdiff
path: root/sv.h
Commit message (Collapse)AuthorAgeFilesLines
* Indent some of the #ifdef/#define/#endif to make the nesting clearer.Nicholas Clark2005-06-231-54/+53
| | | | | Simplify SvPV_free slightly. p4raw-id: //depot/perl@24958
* assert that you aren't assigning to the NVX of an AV or HVNicholas Clark2005-06-151-0/+1
| | | p4raw-id: //depot/perl@24857
* Make SvUPGRADE always have the value '1'Rafael Garcia-Suarez2005-06-131-1/+1
| | | | | Make sv_upgrade a void function p4raw-id: //depot/perl@24817
* This isn't an LVALUE, so make the compiler enforce that.Nicholas Clark2005-06-111-1/+1
| | | p4raw-id: //depot/perl@24804
* Shrink shared hash scalars from PVIV to PVNicholas Clark2005-06-111-1/+3
| | | p4raw-id: //depot/perl@24802
* Add SvGROW_mutableNicholas Clark2005-06-101-0/+2
| | | p4raw-id: //depot/perl@24796
* Add SvPV_mutable for use by the old COW code.Nicholas Clark2005-06-081-0/+5
| | | p4raw-id: //depot/perl@24767
* Allow a null length pointer to sv_pvn_force_flags.Nicholas Clark2005-06-081-0/+4
| | | | | Add SvPV_force_nolen and use it to remove some C<n_a>s p4raw-id: //depot/perl@24759
* s/PERL_COPY_ON_WRITE/PERL_OLD_COPY_ON_WRITE/gNicholas Clark2005-06-081-2/+2
| | | p4raw-id: //depot/perl@24755
* Don't test the core XS code yet with PERL_DEBUG_COW > 1Nicholas Clark2005-06-081-1/+2
| | | p4raw-id: //depot/perl@24751
* Add SvPVx_nolen and SvPVbytex_nolenNicholas Clark2005-06-081-0/+4
| | | p4raw-id: //depot/perl@24747
* The definition of SvPVx_nolen_const is missing for non GNU-C compilersRafael Garcia-Suarez2005-06-071-0/+1
| | | p4raw-id: //depot/perl@24741
* Add SvPV_nolen_const and SvPV_nomg_constNicholas Clark2005-06-071-0/+6
| | | p4raw-id: //depot/perl@24739
* Simplify the implementation of SvPV*nolen functionsNicholas Clark2005-06-071-3/+3
| | | p4raw-id: //depot/perl@24733
* Ensure string table counts are balanced. (Was not true in op/pack.t)Nicholas Clark2005-06-071-4/+3
| | | p4raw-id: //depot/perl@24732
* Need const versions of SvPV(), so that its callers can indicateNicholas Clark2005-06-071-3/+23
| | | | | | | | | | | | | whether they are read/write or read only Also provide a mutable version, for the internals to use where it needs a non-const pointer, but will be writing. Callers of this are assumed to be aware of how copy on write is working, and to keep track of core changes. For now check that SVs are not READONLY when const versions are used. (with DEBUG_COW > 1). COW is going to have to be orthogonal to Perl's READONLY flag, but for now it provides a good test indicator. p4raw-id: //depot/perl@24721
* Unvoid SvUPGRADEAndy Lester2005-06-071-1/+1
| | | | | Message-ID: <20050607040850.GA7033@petdance.com> p4raw-id: //depot/perl@24717
* Abstract all access to the shared hash value through SvSHARED_HASH()Nicholas Clark2005-06-061-0/+2
| | | p4raw-id: //depot/perl@24716
* Store the xhv_aux structure after the main array.Nicholas Clark2005-06-011-1/+4
| | | | | | | This reduces the size of HV bodies from 24 to 20 bytes on a 32 bit build. It has the side effect of defined %symbol_table:: now always being true. defined %hash is already deprecated. p4raw-id: //depot/perl@24660
* Change the IV to a union.Nicholas Clark2005-05-291-75/+66
| | | | | | | | Revert the NV union back to a plain NV Transpose the positions of IV and NV (NV is now first) Don't allocate the NV for PV,PVIV,PVAV and PVHV (last 2 non-allocations currently disabled by default) p4raw-id: //depot/perl@24617
* Documentation nits and fixes for Sv*_set() macrosSteve Peters2005-05-271-9/+13
| | | | | Message-ID: <20050526195850.GA1308@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24592
* Rename the members of the SV head union to avoid pre-processorNicholas Clark2005-05-261-51/+51
| | | | | arguments with embed.h p4raw-id: //depot/perl@24590
* Reorder the union to cause Win32 compilers to use void * alignment forNicholas Clark2005-05-241-7/+7
| | | | | it. p4raw-id: //depot/perl@24569
* Don't allocate an IV slot where the type doesn't use the IV slot.Nicholas Clark2005-05-231-0/+7
| | | p4raw-id: //depot/perl@24557
* create an "allocated" structure for PVs, PVAVs and PVHVsNicholas Clark2005-05-231-0/+2
| | | p4raw-id: //depot/perl@24544
* Re-order IVX slot in SV bodiesNicholas Clark2005-05-221-9/+20
| | | p4raw-id: //depot/perl@24542
* Add a union in place of xnv_nv, which allows AVs and HVs to re-useNicholas Clark2005-05-211-7/+72
| | | | | | | the memory to store pointers and integers. (Part 1 - will be reworked to be more efficient when IV or void* is 64 bit soon) p4raw-id: //depot/perl@24538
* Move the xpv_pv/xrv_rv member into the SV head, in a union withNicholas Clark2005-05-211-35/+63
| | | | | IV and UV. Avoid allocating a body for IVs and RVs. p4raw-id: //depot/perl@24531
* Goodbye AvFLAGSNicholas Clark2005-05-201-0/+3
| | | p4raw-id: //depot/perl@24518
* consting-eleventy.patch: More consts, plus actual bug fixAndy Lester2005-05-161-2/+2
| | | | | Message-ID: <20050516151353.GA25387@petdance.com> p4raw-id: //depot/perl@24489
* Sv_*set() doc's and extra const's for the SvPVX_const() tasksSteve Peters2005-05-091-1/+27
| | | | | Message-ID: <20050509014917.GA24132@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24422
* 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