summaryrefslogtreecommitdiff
path: root/av.c
Commit message (Collapse)AuthorAgeFilesLines
* Mention in apidocs that av_push takes ownership of a refcountSteffen Mueller2009-07-311-1/+2
|
* PATCH: Large omnibus patch to clean up the JRRT quotesTom Christiansen2008-11-021-2/+4
| | | | | | Message-ID: <25940.1225611819@chthon> Date: Sun, 02 Nov 2008 01:43:39 -0600 p4raw-id: //depot/perl@34698
* Explicitly specify some printf formats for constant strings.Rafael Garcia-Suarez2008-11-021-7/+7
| | | | | | This is mostly to silence gcc's warning, "format not a string literal and no format arguments". p4raw-id: //depot/perl@34694
* sizeof(const SV *) is the same as sizeof(SV *), except that it doesn'tNicholas Clark2008-10-311-4/+5
| | | | | match my regexp for non-const casts. p4raw-id: //depot/perl@34677
* Eliminate (SV *) casts from the rest of *.c, picking up one (further)Nicholas Clark2008-10-301-39/+43
| | | | | erroneous const in dump.c. p4raw-id: //depot/perl@34675
* Eliminate (AV *) casts in *.c.Nicholas Clark2008-10-291-1/+1
| | | p4raw-id: //depot/perl@34650
* Bugs revealed by replacing (SV *) casts with something that doesn'tNicholas Clark2008-10-271-1/+1
| | | | | | | cast away const - AvFILL() doesn't guarantee that it won't modify the AV * passed to it. So the prototype for Perl_av_len() needs to change, and a const needs to go in Perl_magic_setarraylen(). p4raw-id: //depot/perl@34604
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Two missing 'static's, spotted by Merijn's smoker.Nicholas Clark2008-09-201-1/+1
| | | p4raw-id: //depot/perl@34381
* [DOC PATCH] av.c - clearify that av_shift returns &PL_sv_undef if array is emptyClaes Jacobsson2008-09-071-1/+2
| | | | | Message-Id: <0726E7A8-C29F-409C-81E6-B464EE6A3DDD@surfar.nu> p4raw-id: //depot/perl@34311
* [perl #51636] segmentation fault with array tiesblino@mandriva.com2008-03-121-1/+1
| | | | | | From: blino@mandriva.com (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-25460-1205315984-377.51636-75-0@perl.org> p4raw-id: //depot/perl@33495
* Assert that the av argument to all the av_*() functions is an array.Nicholas Clark2008-03-081-0/+23
| | | p4raw-id: //depot/perl@33452
* Comment on why I don't think changing Perl_safesysmalloc_size() in av.cNicholas Clark2008-02-271-0/+13
| | | | | | | analagous to the change in sv.c is a good idea. [It's not a language design issue, so sadly I can't get a talk out of it. Or is that fortunately? :-)] p4raw-id: //depot/perl@33383
* If the C library provides malloc_size(), we can use that in the sameNicholas Clark2008-02-261-3/+4
| | | | | | | places as Perl's malloced_size(), except that we need to be careful of any PERL_TRACK_MEMPOOL manipulations in force. Wrap both as Perl_safesysmalloc_size(), to give a consistent name and interface. p4raw-id: //depot/perl@33379
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-15/+25
| | | | | | | | | | | | ability to create landmines that will explode under someone in the future when they upgrade their compiler to one with better optimisation. We've already done this at least twice. (Yes, some of the assertions are after code that would already have SEGVd because it already deferences a pointer, but they are put in to make it easier to automate checking that each and every case is covered.) Add a tool, checkARGS_ASSERT.pl, to check that every case is covered. p4raw-id: //depot/perl@33291
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-2/+2
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Needed one more cast after 32760. The VMS compiler complainedCraig A. Berry2007-12-311-1/+1
| | | | | | that a pointer to int and pointer to long are different things even though they both point to a 32-bit signed integer. p4raw-id: //depot/perl@32792
* Change 32760 needed to add a cast to avoid a warning.Nicholas Clark2007-12-291-1/+3
| | | p4raw-id: //depot/perl@32776
* Change Perl_av_iter_p() to return IV* rather than I32* (which meansNicholas Clark2007-12-291-2/+9
| | | | | having to allocate memory where sizeof(IV) > sizeof(I32)). p4raw-id: //depot/perl@32760
* Implement each @array.Nicholas Clark2007-12-201-2/+15
| | | | | | Documentation needed, FIXME for proper 64 bit support of arrays longer than 2**32, re-order the new ops at the end if merging to 5.10.x. p4raw-id: //depot/perl@32680
* Perl_newAV() can become a mathom by making newAV() a wrapper aroundNicholas Clark2007-12-201-19/+0
| | | | | newSV_type() and tweaking Perl_sv_upgrade(). p4raw-id: //depot/perl@32675
* Fix up copyright years for files modified in 2007.Nicholas Clark2007-11-071-1/+1
| | | p4raw-id: //depot/perl@32237
* Re: optimize push @ISA, (was Re: parent.pm at http://corion.net/perl-dev)Brandon Black2007-08-311-4/+12
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60708121336m13dcf9e5uac624fb246f2a79c@mail.gmail.com> p4raw-id: //depot/perl@31770
* Second patch from:Brandon Black2007-06-261-1/+4
| | | | | | | | | Subject: Re: [perl #43357] *DESTROY = sub {} at runtime From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60706260905x2da6eaf1x4bd7d5223951e52@mail.gmail.com> Fix MRO behaviour when one undefs @ISA p4raw-id: //depot/perl@31473
* The revenge of the constsAndy Lester2007-05-031-3/+2
| | | | | Message-ID: <20070503054554.GA30975@petdance.com> p4raw-id: //depot/perl@31123
* Add a new API function newSV_type, to replace the idiom:Nicholas Clark2007-02-181-6/+2
| | | | | | sv = newSV(0); sv_upgrade(sv, type); p4raw-id: //depot/perl@30347
* Add av_create_and_push() and av_create_and_unshift_one() to refactorNicholas Clark2007-01-291-0/+38
| | | | | out two repeated idioms. p4raw-id: //depot/perl@30064
* assert() that SvPV_set() isn't used on arrays.Nicholas Clark2006-11-061-9/+9
| | | p4raw-id: //depot/perl@29221
* Improve documentation of av_len and av_fill.Gisle Aas2006-10-301-3/+9
| | | p4raw-id: //depot/perl@29166
* more accumulated cleanupsAndy Lester2006-06-061-3/+2
| | | | | Message-ID: <20060606052501.GA30469@petdance.com> p4raw-id: //depot/perl@28358
* Refactoring in av.cAndy Lester2006-05-241-41/+38
| | | | | Message-ID: <20060524051640.GA4713@petdance.com> p4raw-id: //depot/perl@28296
* Note in av_store() that S_regclass relies on being able to pass NULL.Nicholas Clark2006-04-171-0/+4
| | | p4raw-id: //depot/perl@27868
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-1/+1
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-5/+5
| | | | | | | | 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-2/+2
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* Update copyright years (including some years where we made changes butNicholas Clark2006-01-081-1/+1
| | | | | did not update) p4raw-id: //depot/perl@26732
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+7
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* av.c cleanup, plus!Andy Lester2005-12-291-3/+3
| | | | | Message-ID: <20051228214414.GD26033@petdance.com> p4raw-id: //depot/perl@26526
* Cleanup; replace a croak("panic: ...") with assert().Gisle Aas2005-12-281-4/+1
| | | p4raw-id: //depot/perl@26514
* assert(av); Cleanup the way that the av_*() functions checkGisle Aas2005-12-281-24/+30
| | | | | | that they are really passed an av argument. Should improve the test coverage a bit. p4raw-id: //depot/perl@26513
* pre-likely cleanupAndy Lester2005-12-271-9/+10
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* Mark all places where perl needs to look at a possibly-freed scalarNicholas Clark2005-11-141-1/+1
| | | | | with a macro SvIS_FREED(sv) p4raw-id: //depot/perl@26132
* Coverage stats say av_fake() is a mathom too.Steve Peters2005-10-291-22/+0
| | | p4raw-id: //depot/perl@25872
* More consting, and DRY leads to shrinking object codeAndy Lester2005-10-191-15/+11
| | | | | Message-ID: <20051018145723.GA4964@petdance.com> p4raw-id: //depot/perl@25803
* an assert in av_undef was leaking memoryDave Mitchell2005-10-161-2/+0
| | | p4raw-id: //depot/perl@25771
* gcc complains when it sees variables declaredSteve Peters2005-10-141-1/+1
| | | | | | | | | const register ... switched them all to register const ... p4raw-id: //depot/perl@25757
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-4/+4
| | | | | | | | Message-ID: <42CC3CE9.5050606@divsol.com> (reverted all dual-lived modules since they must work with older perls too so must wait for a new Devel::PPPort) p4raw-id: //depot/perl@25101
* No need to set flags twice.Nicholas Clark2005-06-211-2/+2
| | | p4raw-id: //depot/perl@24919
* Removing /*SUPPRESS xxx*/Andy Lester2005-06-161-2/+0
| | | | | Message-ID: <20050616141342.GA22188@petdance.com> p4raw-id: //depot/perl@24871
* $r = do {my @a; \$#a}; $$r = 503 # is also naughty and now warnsNicholas Clark2005-06-091-9/+2
| | | p4raw-id: //depot/perl@24784