summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Un-const magic virtual tables; this consting breaks the nastyRafael Garcia-Suarez2006-01-231-2/+2
| | | | | things done by Swig, as noticed by Audrey. p4raw-id: //depot/perl@26924
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-7/+14
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* It's the Barbie bus patchAndy Lester2006-01-101-11/+11
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* blead: format warningsJarkko Hietaniemi2006-01-081-1/+2
| | | | | Message-ID: <43C01990.6020207@gmail.com> p4raw-id: //depot/perl@26708
* Upgrade to version-0.52Steve Peters2006-01-061-0/+5
| | | p4raw-id: //depot/perl@26685
* sprinkle dVARJarkko Hietaniemi2006-01-061-1/+71
| | | | | 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
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-4/+4
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* If NV_ZERO_IS_ALLBITS_ZERO is not true, then it's important to inialiseNicholas Clark2006-01-031-2/+5
| | | | | the NV only if the new body has an NV. (D'oh!) p4raw-id: //depot/perl@26623
* ithreads: SVs that were only on the tmps stack leakedDave Mitchell2006-01-031-0/+14
| | | p4raw-id: //depot/perl@26591
* stop DEBUG_LEAKING_SCALARS producing spurious memory pool errorsDave Mitchell2006-01-021-4/+0
| | | | | | (change #25775 wasn't complete) p4raw-link: @25775 on //depot/perl: 22162ca81623f0ce6683af5e97b91bf10ad89079 p4raw-id: //depot/perl@26587
* [patch] comment grammar and indentation, spurious tabJim Cromie2006-01-021-5/+5
| | | | | Message-ID: <43B61B13.3050704@gmail.com> p4raw-id: //depot/perl@26564
* 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-8/+6
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* tidy index arrangements in new MY_CXT codeDave Mitchell2005-12-311-1/+1
| | | p4raw-id: //depot/perl@26554
* Document why it's a bad plan to move the backreferences array fromNicholas Clark2005-12-301-0/+4
| | | | | | the magic structure to the hv_aux structure during backreference deletion. Add an optimisation for an empty backreference array. p4raw-id: //depot/perl@26542
* Now that the backreference array has no NULL entries, and is correctlyNicholas Clark2005-12-301-10/+3
| | | | | | marked as AvREAL_off(), there's no reason not to use sv_dup to clone it. p4raw-id: //depot/perl@26541
* fix errors in new MY_CTX codeDave Mitchell2005-12-301-1/+1
| | | p4raw-id: //depot/perl@26535
* RMAGIC on symbol tables is bad, m'kay.Nicholas Clark2005-12-301-17/+105
| | | | | | | | 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
* Actual real consting of parmsAndy Lester2005-12-291-8/+7
| | | | | Message-ID: <20051229071509.GA32653@petdance.com> p4raw-id: //depot/perl@26527
* av.c cleanup, plus!Andy Lester2005-12-291-12/+12
| | | | | Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
* re-implement MY_CXT API more efficiently, and add explicitDave Mitchell2005-12-291-0/+8
| | | | | interpeter arg variant p4raw-id: //depot/perl@26523
* As the backreferences AV doesn't hold references on its contents,Nicholas Clark2005-12-281-0/+2
| | | | | surely it should have AvREAL turned off? p4raw-id: //depot/perl@26517
* pre-likely cleanupAndy Lester2005-12-271-6/+7
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* Now that proxy subroutines can be unproxied in 2 places withoutNicholas Clark2005-12-231-1/+12
| | | | | | | becoming the same newCONSTSUB, need an explicit check to avoid a warning about subroutines being redefined, as there has never been a warning when you assing the same subroutine to a glob's GvCV() p4raw-id: //depot/perl@26470
* Ho! Ho! Ho! Santa brings consting!Andy Lester2005-12-221-16/+13
| | | | | Message-ID: <20051222165717.GA2874@petdance.com> p4raw-id: //depot/perl@26450
* Add an optimisation to allow proxy constant subroutines to be copiedNicholas Clark2005-12-221-0/+5
| | | | | | | as proxy constant subroutines in a new symbol table where possible. (Rather than converting them to full blown constant subroutines and instantiating 2 typeglobs) p4raw-id: //depot/perl@26446
* Avoid negating an unsigned value. (The offset in the SV body table)Nicholas Clark2005-12-211-8/+8
| | | p4raw-id: //depot/perl@26439
* For consistency sv_2cv should not leave the stash pointer uninitialisedNicholas Clark2005-12-211-2/+5
| | | | | | for some cases. Although it seems that only pp_sort pays any attention to it, of all the code on CPAN. p4raw-id: //depot/perl@26438
* The lref argument of sv_2cv is actually passed onwards to gv_fetchsv,Nicholas Clark2005-12-211-0/+1
| | | | | so it is a bitmap of flag bits rather than simple TRUE/FALSE. p4raw-id: //depot/perl@26434
* Feature bundle is now :5.10, and add -E switchRobin Houston2005-12-211-0/+1
| | | | | Message-ID: <20051221110008.GB25877@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26432
* gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, ratherNicholas Clark2005-12-201-1/+1
| | | | | than a simple boolean, so passing FALSE or TRUE is bogus. p4raw-id: //depot/perl@26415
* Pull the definition of olderrno in sv_2pv_flags into the block whereNicholas Clark2005-12-171-2/+2
| | | | | it's used. p4raw-id: //depot/perl@26390
* The IV/UV choice can be made inside uiv_2buf rather than sv_2pv_flags.Nicholas Clark2005-12-171-4/+1
| | | p4raw-id: //depot/perl@26386
* The THINKFIRST check after the GMAGICAL check in sv_2iv_flags andNicholas Clark2005-12-171-4/+2
| | | | | sv_2uv_flags should have been else if. p4raw-id: //depot/perl@26385
* s/Nullhv/NULL/g;Nicholas Clark2005-12-161-2/+2
| | | | | # Although I see that Robin is proposing to add some :-) p4raw-id: //depot/perl@26381
* s/Nullav/NULL/gNicholas Clark2005-12-161-2/+2
| | | p4raw-id: //depot/perl@26380
* Perl_sv_dup should be allocating bodies based on *size*, not theNicholas Clark2005-12-161-2/+2
| | | | | length to copy. p4raw-id: //depot/perl@26378
* Re: [perl #37897] sprintf of version objectsJohn Peacock2005-12-151-14/+16
| | | | | | | Message-ID: <43A03678.2060700@rowman.com> (with some formatting tweaks and extra test cases) p4raw-id: //depot/perl@26365
* Duplicate the AMAGIC temporary variable consting from sv_2iv_flags intoNicholas Clark2005-12-141-33/+39
| | | | | sv_2uv_flags, sv_2nv and sv_2pv_flags. p4raw-id: //depot/perl@26355
* Simplify the SvGMAGIC code in sv_[ipu]v_flags.Nicholas Clark2005-12-141-29/+18
| | | p4raw-id: //depot/perl@26354
* Simplify the SvGMAGIC code in sv_2nv, removing duplicated checks toNicholas Clark2005-12-141-12/+9
| | | | | warn for uninitialized values. p4raw-id: //depot/perl@26353
* The logic to use SVt_NV or SVt_PVNV is in sv_upgrade, so no need toNicholas Clark2005-12-141-9/+6
| | | | | dupliate it in sv_2nv. Also, the final sv_upgrade is never called. p4raw-id: //depot/perl@26352
* Inline asIV and asUV, as each is only used once, and it distracts fromNicholas Clark2005-12-131-53/+47
| | | | | | | the patterns of repeated code in sv_2iv_flags, sv_2uv_flags, sv_2nv and sv_2pv_flags. Add a comment noting the return path from the end of the SvGMAGICAL case to all 4. p4raw-id: //depot/perl@26345
* Add overflow check to EXPECT_NUMBER() used by sv_vcatpvfn().Gisle Aas2005-12-131-2/+7
| | | | | | sprintf() or printf() will now croak if any of the indexes and widths specified in the format string are too large. p4raw-id: //depot/perl@26339
* Drop "v" prefix from sprintf("%vd", $^V).Gisle Aas2005-12-121-0/+4
| | | | | | | | | The sprintf documentation has this example: printf "version is v%vd\n", $^V; and it printed 'version is vv5.9.3\n'. p4raw-id: //depot/perl@26326
* Fix *printf %*vd with mixed Latin 1/UTF-8. (Fixes bug 37889)Nicholas Clark2005-12-111-0/+8
| | | p4raw-id: //depot/perl@26325
* Disallow sprintf's vector handling for non-integer formats.Gisle Aas2005-12-111-10/+17
| | | | | Avoids core dump for printf("%vs") and similar. p4raw-id: //depot/perl@26321
* Quench the other 2 ways obscure ways of abusing positional parametersNicholas Clark2005-12-111-4/+7
| | | | | | to generate bogus array indexes. These two are inside the vector formatting code. p4raw-id: //depot/perl@26320