summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* For an LVALUE fetch, "hv_fetch()" will recurse into "hv_store()" for aNicholas Clark2007-09-191-7/+22
| | | | | | | | | hash with magic. Field hashes have u magic, so this recursion triggers. However, key conversion replaces the original key with the converted key, so we need to ensure that conversion happens exactly once, else for a non-idempotent key conversion routine (eg ROT13) we will see double conversion in this case. p4raw-id: //depot/perl@31898
* Revert change #31489.Rafael Garcia-Suarez2007-06-291-25/+3
| | | | | | | | | | | That change was adding a hook to cope with the case when one was undef'ining *ISA globs, in order to clean up correctly. However, this broke the case where one was assiging an array ref to @ISA, which is likely to be more common. Conclusion: don't undef *ISA. (or more generally don't undef globs that contain magical variables) p4raw-link: @31489 on //depot/perl: 5be5c7a687aa37f2ea9dec7988eb57cad1f1ec24 p4raw-id: //depot/perl@31502
* Re: [perl #43357] *DESTROY = sub {} at runtimeBrandon Black2007-06-281-3/+25
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60706270807r7af65546x8d959b131ffa28e6@mail.gmail.com> p4raw-id: //depot/perl@31489
* More portability nits by JarkkoRafael Garcia-Suarez2007-06-161-1/+1
| | | p4raw-id: //depot/perl@31396
* more constingAndy Lester2007-05-081-6/+3
| | | | | Message-ID: <20070507163416.GA6187@petdance.com> p4raw-id: //depot/perl@31167
* Re: mro status, etcBrandon Black2007-04-301-2/+7
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60704291527y1b39be37l221ef66e4c828f66@mail.gmail.com> p4raw-id: //depot/perl@31107
* Move hash action constants to hv.hJerry D. Hedden2007-04-251-6/+1
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510704240735t50cfc159g59b55726ac5ac64b@mail.gmail.com> p4raw-id: //depot/perl@31064
* Re: new C3 MRO patchBrandon Black2007-04-191-1/+12
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60704171114k29b0460el5b08ce5185d55ed5@mail.gmail.com> p4raw-id: //depot/perl@30980
* Re-order the flags values for struct refcounted_he to allow theNicholas Clark2007-03-221-17/+12
| | | | | | possibility of storing 2 futher types. Add a void * to the union as it won't increase the size, but may become useful. p4raw-id: //depot/perl@30683
* The bug fixed by change 29610 would have been avoided with thisNicholas Clark2007-03-011-0/+1
| | | | | | | assertion - ensure that the hek argument to Perl_unshare_hek() is not NULL, because if it is, then S_unshare_hek_or_pvn() will merrily unshare the string "" instead. p4raw-id: //depot/perl@30440
* Fix a couple of typos in internal docsRafael Garcia-Suarez2007-02-281-1/+1
| | | p4raw-id: //depot/perl@30421
* Add a new API function newSV_type, to replace the idiom:Nicholas Clark2007-02-181-5/+2
| | | | | | sv = newSV(0); sv_upgrade(sv, type); p4raw-id: //depot/perl@30347
* newHV doesn't need to turn off POK or NOK, as they will default to notNicholas Clark2007-02-181-2/+1
| | | | | being set. p4raw-id: //depot/perl@30345
* Purge all references to 5005 threads variables in the code.Nicholas Clark2007-02-031-4/+0
| | | | | (Retain the aides memoire in makedef.pl) p4raw-id: //depot/perl@30105
* Add a parameter to Perl_get_arena() to pass in the SV type, and recordNicholas Clark2007-01-191-1/+1
| | | | | | | this in the arena description. Change all sizes to unsigned values. Make Perl_sv_free_arenas() loop downwards to free memory, simplifying the logic. Remove my erroneous comment added in change 29881. p4raw-id: //depot/perl@29882
* In S_hfreeentries, orig_array can be const.Nicholas Clark2007-01-131-3/+2
| | | p4raw-id: //depot/perl@29790
* fix typo in hv.cDave Mitchell2007-01-121-1/+1
| | | p4raw-id: //depot/perl@29767
* 4th patch from: Marcus Holland-Moritz2007-01-041-1/+1
| | | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Introduce an SVfARG() macro for %SVf (%-p here) arguments to perl's printf p4raw-id: //depot/perl@29687
* The first three patches from:Marcus Holland-Moritz2007-01-041-4/+4
| | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Adds (void*) casts to %-p and %p printf arguments p4raw-id: //depot/perl@29686
* Re: [PATCH] Change implementation of %+ to use a proper tied hash interface ↵Yves Orton2007-01-041-100/+5
| | | | | | | and add support for %- Message-ID: <9b18b3110612291245q792fe91cu69422d2b81bb4f0b@mail.gmail.com> p4raw-id: //depot/perl@29682
* Welcome to 2007! Time to update copyrights from changes earlierSteve Peters2007-01-011-1/+1
| | | | | today. p4raw-id: //depot/perl@29653
* Symbian port: add Series 90 supportJarkko Hietaniemi2007-01-011-0/+1
| | | | | Message-ID: <4599114F.8020307@iki.fi> p4raw-id: //depot/perl@29650
* (2nd version) small tweaks based on smoke signsJarkko Hietaniemi2006-11-121-1/+1
| | | | | Message-Id: <200611110418.kAB4Ium5350338@kosh.hut.fi> p4raw-id: //depot/perl@29246
* Fix aliasing to an non-existent element of %+Rafael Garcia-Suarez2006-10-111-4/+2
| | | | | (by Yves Orton) p4raw-id: //depot/perl@28995
* Re: [perl #40468] Not OK: perl 5.9.4 +patchaperlup: on i686-linux-64int ↵Yves Orton2006-10-081-105/+106
| | | | | | | 2.6.17-2-k7 (UNINSTALLED) Message-ID: <9b18b3110610081114g11dabafaw860181598ab54bd6@mail.gmail.com> p4raw-id: //depot/perl@28967
* Re: [PATCH] Initial attempt at named captures for perls regexp engineYves Orton2006-10-071-6/+103
| | | | | Message-ID: <9b18b3110610061016x5ddce965u30d9a821f632d450@mail.gmail.com> p4raw-id: //depot/perl@28957
* g++ large patchJarkko Hietaniemi2006-08-071-6/+8
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Clear up most of the VC6 compiler warnings in the following smoke:Steve Hay2006-07-271-1/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/39733 p4raw-id: //depot/perl@28626
* -DPERL_GLOBAL_STRUCT_PRIVATE tweaks (done_sanity_check global? yech!)Jarkko Hietaniemi2006-07-141-0/+2
| | | | | Message-Id: <200607140634.k6E6Y9Ia471707@kosh.hut.fi> p4raw-id: //depot/perl@28570
* Re: [PATCH] Hash::Util::FieldHashAnno Siegel2006-06-231-0/+22
| | | | | Message-Id: <974A5B4B-7614-4F3F-BA7C-828960D82C55@mailbox.tu-berlin.de> p4raw-id: //depot/perl@28419
* Comprehensive regression tests for Perl_refcounted_he_fetch().Nicholas Clark2006-05-291-1/+9
| | | | | | Fix a bug due to the fact that Perl's typedef'd "bool" type isn't actually boolean. p4raw-id: //depot/perl@28335
* Perl_refcounted_he_chain_2hv()'s code to skip duplicate keys was farNicholas Clark2006-05-281-1/+20
| | | | | too lax. p4raw-id: //depot/perl@28320
* clean some lint findingsAndy Lester2006-05-231-4/+0
| | | | | Message-ID: <20060521050240.GA21051@petdance.com> p4raw-id: //depot/perl@28289
* Abolish cop_arybase. Signal a non zero $[ with a hint flag, and storeNicholas Clark2006-05-201-36/+102
| | | | | the value in the hints structure used for %^H. p4raw-id: //depot/perl@28250
* Correct Perl_refcounted_he_chain_2hv() and its caller - it doesn'tNicholas Clark2006-05-191-4/+3
| | | | | store a reference to the value, so don't pass it in a new SV. p4raw-id: //depot/perl@28245
* hv.c: do zeroing via mem wrap checkJarkko Hietaniemi2006-05-031-2/+1
| | | | | Message-Id: <200605021703.k42H31PF216868@kosh.hut.fi> p4raw-id: //depot/perl@28075
* Add a new hash key flag HVhek_UNSHARED, to mark all unshared hash keys.Nicholas Clark2006-05-021-1/+1
| | | | | | Otherwise Perl_newSVhek(), called by Perl_hv_iterkeysv(), naively assumes that it can share any hash key directly. p4raw-id: //depot/perl@28069
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-3/+3
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* dVAR (-DPERL_GLOBAL_STRUCT_PRIVATE) updateJarkko Hietaniemi2006-04-281-0/+2
| | | | | Message-ID: <44510AF6.6040603@gmail.com> p4raw-id: //depot/perl@27990
* use NOOP macroAndy Lester2006-04-251-1/+1
| | | | | Message-ID: <20060424184451.GA1479@petdance.com> p4raw-id: //depot/perl@27958
* Support compiling for RISC OSAlex Waugh2006-04-181-1/+1
| | | | | Message-ID: <2498b2184e.ajw498@caramel.cp15.org> p4raw-id: //depot/perl@27884
* Add assertions to cover cases where the Coverity scanner thinks weNicholas Clark2006-04-171-0/+1
| | | | | | could are deferencing a NULL pointer, but we think it missed something it should have been capable of figuring out. p4raw-id: //depot/perl@27867
* clean up hv_assert()Andy Lester2006-04-161-57/+58
| | | | | Message-ID: <20060416041827.GA3031@petdance.com> p4raw-id: //depot/perl@27835
* D'oh! Don't try to do #ifdefs inside "functions" that are actuallyNicholas Clark2006-04-121-2/+5
| | | | | macros. p4raw-id: //depot/perl@27781
* Add tests for all the other types that %^H serialisation is supposedNicholas Clark2006-04-121-1/+1
| | | | | | to support. In the process, found and corrected a bug. Tests are good, m'kay. p4raw-id: //depot/perl@27780
* Store cop_hints as a shared structure without using any SVs (onNicholas Clark2006-04-121-35/+115
| | | | | ithreads). p4raw-id: //depot/perl@27776
* Remove Perl_refcounted_he_copy and Perl_refcounted_he_dup.Nicholas Clark2006-04-121-68/+0
| | | p4raw-id: //depot/perl@27775
* First stab at using the pad to store the serialised hints data.Nicholas Clark2006-04-111-6/+46
| | | | | | This approach is almost certainly not only wrong, but also doomed. But it's needed to build a correct solution. p4raw-id: //depot/perl@27768
* Need to migrate the refcounted_he structure to be properly shared.Nicholas Clark2006-04-111-27/+20
| | | | | | Add a mutex for manipulated their reference counts. Unwrap the structure, so that for ithreads it can store SVs in pads. p4raw-id: //depot/perl@27764
* Perl_unsharepvn() was no longer being used in core, and changes toNicholas Clark2006-04-101-9/+5
| | | | | S_unshare_hek_or_pvn() had broken it. Now fixed and tested. p4raw-id: //depot/perl@27761