summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Etta James presents: More constingAndy Lester2005-10-311-3/+3
| | | | | Message-ID: <20051031054413.GA10767@petdance.com> p4raw-id: //depot/perl@25915
* Replace the body of the rarely used sv_setpviv_mg with a call toNicholas Clark2005-10-291-5/+1
| | | | | sv_setpviv followed by SvSETMAGIC. p4raw-id: //depot/perl@25886
* Replace sv_catsv_mg and sv_catpvn_mg, and move the obsolete bodies toNicholas Clark2005-10-291-28/+0
| | | | | mathoms.c p4raw-id: //depot/perl@25885
* Add a new SMAGIC flag, to signal a call to SvSETMAGIC. Add it toNicholas Clark2005-10-291-27/+29
| | | | | | | sv_catpvn_flags and sv_catsv_flags, and then re-implement sv_catpvn_mg and sv_catsv_mg as calls to sv_catpvn_flags and sv_catsv_flags respectively. p4raw-id: //depot/perl@25884
* sv_2pv_nolen, sv_2pvbyte_nolen and sv_2pvutf8_nolen can all be replacedNicholas Clark2005-10-291-48/+0
| | | | | with terse macros, and the function bodies retired. p4raw-id: //depot/perl@25883
* All the private implementations of @foo for compilers that can't doNicholas Clark2005-10-291-139/+2
| | | | | | complex macro expansions became dead wood sometime around 5.7.3 (Don't tell Otava this) p4raw-id: //depot/perl@25882
* sv_utf8_upgrade declares itself to be a mathom, so off it goes.Nicholas Clark2005-10-291-21/+0
| | | | | Remove duplicate declaration of Perl_sv_2uv p4raw-id: //depot/perl@25880
* Replace sv_force_normal with a macro that calls sv_force_normal_flags.Nicholas Clark2005-10-291-16/+0
| | | p4raw-id: //depot/perl@25879
* Replace sv_unref with a macro that calls sv_unref_flagsNicholas Clark2005-10-291-17/+0
| | | p4raw-id: //depot/perl@25878
* sv_taint() can easily be replaced by a macro.Nicholas Clark2005-10-291-13/+0
| | | p4raw-id: //depot/perl@25876
* A terser implementation of S_varname, by using and post-processingNicholas Clark2005-10-291-21/+13
| | | | | gv_fullname4 p4raw-id: //depot/perl@25874
* Add a new file, mathoms.c, to hold old code kept around for binarySteve Peters2005-10-281-106/+12
| | | | | | | compatability with previous versions of Perl. Change also includes various Makefile changes to compile the new file and link it into libperl. p4raw-id: //depot/perl@25866
* Use the return value from sprintf and avoid a call to strlenNicholas Clark2005-10-281-7/+8
| | | p4raw-id: //depot/perl@25862
* Most platforms don't actually need PL_pidstatus, or the associatedNicholas Clark2005-10-261-0/+2
| | | | | .5K of code. p4raw-id: //depot/perl@25850
* More consting, and DRY leads to shrinking object codeAndy Lester2005-10-191-20/+21
| | | | | Message-ID: <20051018145723.GA4964@petdance.com> p4raw-id: //depot/perl@25803
* DEBUG_LEAKING_SCALARS doesn't need shared memory to store filenamesDave Mitchell2005-10-161-9/+1
| | | p4raw-id: //depot/perl@25775
* gcc complains when it sees variables declaredSteve Peters2005-10-141-2/+2
| | | | | | | | | const register ... switched them all to register const ... p4raw-id: //depot/perl@25757
* Stas' croak patch and then someAndy Lester2005-10-131-8/+9
| | | | | Message-ID: <20051013214212.GA1122@petdance.com> p4raw-id: //depot/perl@25754
* SvPVutf8_nolen crashes [PATCH]Gisle Aas2005-10-131-1/+1
| | | | | Message-ID: <lrslv56072.fsf@caliper.activestate.com> p4raw-id: //depot/perl@25751
* Re: [PATCH] Random constings and printf cleanupAndy Lester2005-10-051-6/+6
| | | | | Message-ID: <20051004201605.GA31682@petdance.com> p4raw-id: //depot/perl@25693
* Clone PL_statusvalue_posix [PATCH]Gisle Aas2005-10-031-0/+2
| | | | | Message-ID: <lr3bni8ska.fsf_-_@caliper.activestate.com> p4raw-id: //depot/perl@25687
* The second argument to Move() is the destination, so cannot possiblyNicholas Clark2005-09-191-3/+3
| | | | | be const. Pesky casting in handy.h. Getting in the way of correctness. p4raw-id: //depot/perl@25502
* First argument to he_dup is actually a const HE *Nicholas Clark2005-09-191-1/+1
| | | p4raw-id: //depot/perl@25497
* Revert 25331 (except for the typo fix).Nicholas Clark2005-08-251-4/+0
| | | p4raw-id: //depot/perl@25332
* To make the current implementation of sv_replace sane, we shouldNicholas Clark2005-08-251-1/+5
| | | | | | | assert that the reference count of the target is also 1. (Given that we're splatting an SV with a reference count of 1 onto the target) p4raw-id: //depot/perl@25331
* Promote the warning about reference miscount in sv_replace to a panic.Nicholas Clark2005-08-251-2/+4
| | | | | TODO - document the panics p4raw-id: //depot/perl@25330
* Use SvGETMAGIC more oftenRick Delaney2005-08-231-12/+6
| | | | | Message-ID: <20050822170033.GH7674@localhost.localdomain> p4raw-id: //depot/perl@25322
* More embed.fnc goodnessAndy Lester2005-07-291-10/+10
| | | | | Message-ID: <20050728190956.GB607@petdance.com> p4raw-id: //depot/perl@25243
* RE: blead: no longer supports %vd formatRobin Barker2005-07-181-29/+70
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C730@hotel.npl.co.uk> p4raw-id: //depot/perl@25171
* more embed cleanupAndy Lester2005-07-151-7/+8
| | | | | | | Message-ID: <20050715155115.GC29983@petdance.com> (and run regen.pl) p4raw-id: //depot/perl@25156
* Error in earlier patch in sv.cRobin Barker2005-07-131-0/+2
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90849C72B@hotel.npl.co.uk> p4raw-id: //depot/perl@25137
* make the expensive ckWARN() be called as late as possibleDave Mitchell2005-07-131-13/+14
| | | | | | | | reorganise if (ckWARN(FOO) && should_not_happen_condition) to if (should_not_happen_condition && ckWARN(FOO)) p4raw-id: //depot/perl@25129
* Re: Scalar leaked in 'local $0' under ithreads + taint modeSteve Hay2005-07-121-2/+4
| | | | | Message-ID: <42D26631.1070500@uk.radan.com> p4raw-id: //depot/perl@25123
* Change New*() to Newx*() in various comments and documentationSteve Hay2005-07-121-1/+1
| | | p4raw-id: //depot/perl@25116
* [patch: sv.c] reuse new_body_inline in Perl_new_bodyJim Cromie2005-07-111-12/+11
| | | | | Message-ID: <42D19A42.8040409@divsol.com> p4raw-id: //depot/perl@25113
* sv_dec is supposed to go *down*, m'kay.Nicholas Clark2005-07-091-1/+1
| | | p4raw-id: //depot/perl@25102
* Re: janitorial work ? [patch]Jim Cromie2005-07-081-34/+33
| | | | | | | | 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
* Provide a macro version of S_new_body to inline it within the hot code.Nicholas Clark2005-07-041-16/+26
| | | p4raw-id: //depot/perl@25069
* Post-YAPC consting, now with an attachment!Andy Lester2005-07-041-17/+15
| | | | | Message-ID: <20050703233156.GA20967@petdance.com> p4raw-id: //depot/perl@25067
* sv_setuv_mg is so rarely called that the IV optimisation test is notNicholas Clark2005-07-041-15/+3
| | | | | needed. p4raw-id: //depot/perl@25064
* Copying the first parameter in the macro del_body seems to reduceNicholas Clark2005-07-021-2/+3
| | | | | code size. Presumably an expression is no longer evaluated twice. p4raw-id: //depot/perl@25053
* Unwrap the del_Xfoo() macros by explicitly noting the arena to freeNicholas Clark2005-07-021-57/+45
| | | | | the body to. This comletely eliminates the second switch statement. p4raw-id: //depot/perl@25051
* Given that the GV no longer owns a reference on the symbol table, weNicholas Clark2005-07-021-16/+9
| | | | | dont need the deferred SvREFCNT_dec games. p4raw-id: //depot/perl@25049
* Passing gvtype as char rather than char * to S_varname generatesNicholas Clark2005-07-021-17/+17
| | | | | smaller code. p4raw-id: //depot/perl@25048
* Don't inline offer_nice_chunk, as it's rarely called.Nicholas Clark2005-07-021-0/+21
| | | p4raw-id: //depot/perl@25047
* Don't check the pointer is non-NULL before calling Safefree() inNicholas Clark2005-07-021-2/+1
| | | | | | | | | little used code, code used only once per run (such as interpreter construction and destruction), and cases where the pointer nearly never is NULL. Safefree does its own non-NULL check, and even that isn't strictly necessary as all conformant free()s accept a NULL pointer. p4raw-id: //depot/perl@25045
* [perl #36434] assigning shared consts (eg __PACKAGE__) to magic varsDave Mitchell2005-06-301-1/+6
| | | p4raw-id: //depot/perl@25032
* Replace newSVpv(...,0) with newSVpvn where we know the length.Nicholas Clark2005-06-301-2/+2
| | | p4raw-id: //depot/perl@25022
* If gp_flags is unused, why are we even allocating it?Nicholas Clark2005-06-301-1/+0
| | | p4raw-id: //depot/perl@25019
* Fixes to -DPERL_DONT_CREATE_GVSV to make more tests passNicholas Clark2005-06-291-11/+15
| | | p4raw-id: //depot/perl@25010