summaryrefslogtreecommitdiff
path: root/pp_sort.c
Commit message (Collapse)AuthorAgeFilesLines
* [perl #54758] Perl 5.10 memory corruptionDave Mitchell2008-05-271-2/+3
| | | | | | | When @a = sort @a is pessimised if @a has magic, growing the stack requires various pointers to be reset in case the stack gets reallocated. p4raw-id: //depot/perl@33937
* Silence some warnings on Win32 with VC6Steve Hay2008-03-061-12/+12
| | | | | | | | VC7 onwards didn't seem to mind (perhaps thanks to #33411): http://www.nntp.perl.org/group/perl.daily-build.reports/2008/03/msg54118.html but VC6 wasn't happy: http://www.nntp.perl.org/group/perl.daily-build.reports/2008/03/msg54099.html p4raw-id: //depot/perl@33448
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-2/+31
| | | | | | | | | | | | 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
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29696
* 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
* assert() that SvPV_set() isn't used on arrays.Nicholas Clark2006-11-061-2/+2
| | | p4raw-id: //depot/perl@29221
* A couple const's and a cast to get Sun CC to compile these files.Steve Peters2006-08-091-3/+3
| | | | | Perl, however, still will not build with the Sun CC. p4raw-id: //depot/perl@28686
* Add a macro to remove duplicated codeSADAHIRO Tomoyuki2006-07-101-24/+10
| | | | | | Subject: Re: cut-and-paste findings for blead 28504 Message-Id: <20060709134236.E51A.BQW10602@nifty.com> p4raw-id: //depot/perl@28524
* Static cleanup in pp_sort.cAndy Lester2006-06-121-4/+6
| | | | | Message-ID: <20060612135934.GA2202@petdance.com> p4raw-id: //depot/perl@28385
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-1/+1
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* Prevent "use sort 'stable'" from reversing the orderRobin Houston2006-04-021-1/+1
| | | | | Message-ID: <20060402162024.GA3854@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@27689
* Random accumulated patchesAndy Lester2006-03-311-16/+17
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Speedups and shrinkages of SvREFCNT_incAndy Lester2006-02-271-2/+2
| | | | | Message-ID: <20060224205434.GA17867@petdance.com> p4raw-id: //depot/perl@27334
* Add a new CvISXSUB() macro, for abstracting the test as to whether aNicholas Clark2006-02-201-1/+1
| | | | | PVCV is perl or XS. p4raw-id: //depot/perl@27241
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-1/+1
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-2/+2
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-1/+1
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-2/+2
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053
* Yet more instances of gv_fetchpv... that should be GV_ADD rather thanNicholas Clark2006-02-021-2/+2
| | | | | | TRUE. Convert two gv_fetchpvn_flags to gv_fetchpvs. p4raw-id: //depot/perl@27050
* Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.Nicholas Clark2006-01-281-2/+2
| | | | | Many strlen()s saved. p4raw-id: //depot/perl@26983
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+9
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* 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-1/+1
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* Re: [PATCH] Make the 'sort' pragma lexically scopedRobin Houston2005-12-191-45/+36
| | | | | Message-ID: <20051219174620.GA17940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26402
* s/Nullav/NULL/gNicholas Clark2005-12-161-1/+1
| | | p4raw-id: //depot/perl@26380
* Reverting change #26360 and #26361 since it appears that the bugs ISteve Peters2005-12-151-1/+0
| | | | | | | thought I fixed had been previously fixed with change #25953. p4raw-link: @26360 on //depot/perl: f7ae8051c95a2bdf42aad8ef8cbdb82f5608126f p4raw-link: @25953 on //depot/perl: 9850bf21fc4ed69d8ddb0293df59411f891c62df p4raw-id: //depot/perl@26362
* Again, FREETMPS not SAVETMPS!Steve Peters2005-12-151-1/+1
| | | p4raw-id: //depot/perl@26361
* Add a missing FREETMPS to match up with a SAVETMPS. This changeSteve Peters2005-12-151-0/+1
| | | | | fixes problems with nested sorts. (RTs #7063 and #36430). p4raw-id: //depot/perl@26360
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-1/+1
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* Sort subs now in embed.fncAndy Lester2005-11-171-26/+16
| | | | | Message-ID: <20051117135338.GA31715@petdance.com> p4raw-id: //depot/perl@26147
* Const & local: Special Victims UnitAndy Lester2005-11-111-9/+9
| | | | | Message-ID: <20051111044700.GA24161@petdance.com> p4raw-id: //depot/perl@26082
* Re: A surprising segfaultSADAHIRO Tomoyuki2005-11-051-0/+1
| | | | | Message-Id: <20051105135053.27D7.BQW10602@nifty.com> p4raw-id: //depot/perl@26011
* sort/multicall patchRobin Houston2005-11-021-24/+39
| | | | | Message-ID: <20051029203307.GA8869@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@25953
* Stas' croak patch and then someAndy Lester2005-10-131-6/+9
| | | | | Message-ID: <20051013214212.GA1122@petdance.com> p4raw-id: //depot/perl@25754
* Typo in comment.Abigail2005-10-121-1/+1
| | | | | Message-ID: <20051012232509.GA1018@abigail.nl> p4raw-id: //depot/perl@25743
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-2/+2
| | | | | | | | 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
* the PAD_SET_CUR macro expanded too much for AIX compilersDave Mitchell2005-07-011-1/+2
| | | p4raw-id: //depot/perl@25042
* Re: [perl #36350] unstable sorting for use integer; sort { $b <=> $a } @foo Salvador Fandiño2005-06-231-21/+9
| | | | | Message-ID: <20050621181658.5977.qmail@lists.develooper.com> p4raw-id: //depot/perl@24951
* More random cleanupsAndy Lester2005-06-201-83/+68
| | | | | Message-ID: <20050617145029.GC11769@petdance.com> p4raw-id: //depot/perl@24906
* sort optimizationSalvador Fandiño2005-06-151-5/+12
| | | | | Message-ID: <20050606110425.22941.qmail@lists.develooper.com> p4raw-id: //depot/perl@24853
* More SvPV consting, including some code cleanup and living dangerouslyNicholas Clark2005-06-101-1/+1
| | | | | with socket API calls. p4raw-id: //depot/perl@24799
* More SvPV constingNicholas Clark2005-06-071-4/+3
| | | p4raw-id: //depot/perl@24744
* PATCH for [perl #36043] '@foo = sort { $a <=> $b } @bar' uses too much memorySalvador Fandiño2005-06-051-8/+31
| | | | | Message-ID: <20050605022436.21982.qmail@lists.develooper.com> p4raw-id: //depot/perl@24708
* Quotes fixed, see also perl #36079Andy Lester2005-06-021-5/+5
| | | | | Message-ID: <20050602050238.GA4001@petdance.com> p4raw-id: //depot/perl@24666
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-2/+2
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* Add editor boilerplates to all C filesRafael Garcia-Suarez2005-05-101-1/+1
| | | | | (except the generated ones) p4raw-id: //depot/perl@24440
* printf.patch: Adding printf checking for gccAndy Lester2005-05-021-1/+1
| | | | | Message-ID: <20050501200755.GA30259@petdance.com> p4raw-id: //depot/perl@24365
* Symbian port of PerlJarkko Hietaniemi2005-04-211-2/+4
| | | | | Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D653@esebe105.NOE.Nokia.com> p4raw-id: //depot/perl@24271
* Refactoring to Sv*_set() macros - patch #4Steve Peters2005-04-181-2/+2
| | | | | | | Message-ID: <20050416160502.GA26957@mccoy.peters.homeunix.org> plus fix to Perl_rvpv_dup assigning to an RV with SvPVX p4raw-id: //depot/perl@24239
* Down with C++ reserved namesNicholas Clark2005-04-051-6/+6
| | | | | | (and also function pointer declarations that rely on the C semantics of ()) p4raw-id: //depot/perl@24165