summaryrefslogtreecommitdiff
path: root/mathoms.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a new API function newSV_type, to replace the idiom:Nicholas Clark2007-02-181-3/+1
| | | | | | sv = newSV(0); sv_upgrade(sv, type); p4raw-id: //depot/perl@30347
* pp_rv2av and pp_rv2hv have a lot of common code, so it's certainly aNicholas Clark2007-01-151-0/+5
| | | | | space saving to merge them. Hopefully this will reduce L2 cache misses. p4raw-id: //depot/perl@29836
* Perl_save_destructor is not a mathomJerry D. Hedden2006-12-071-11/+0
| | | | | | From: "Jerry D. Hedden" <jdhedden@yahoo.com> Message-ID: <20061206191213.35036.qmail@web30206.mail.mud.yahoo.com> p4raw-id: //depot/perl@29482
* save_I8 is not a mathom.Rafael Garcia-Suarez2006-12-061-10/+0
| | | p4raw-id: //depot/perl@29476
* assert() that SvPV_set() isn't used on arrays.Nicholas Clark2006-11-061-1/+1
| | | p4raw-id: //depot/perl@29221
* Re: A large-ish C++ TODO (Re: [PATCH] g++ stage 1 reached)Jarkko Hietaniemi2006-08-171-35/+36
| | | | | Message-ID: <44E49649.9090307@iki.fi> p4raw-id: //depot/perl@28734
* g++ stage 1 reachedJarkko Hietaniemi2006-08-081-2/+2
| | | | | Message-ID: <44D7AA6B.4040802@iki.fi> p4raw-id: //depot/perl@28674
* g++ large patchJarkko Hietaniemi2006-08-071-2/+2
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Clean up mathoms.cAndy Lester2006-07-031-6/+43
| | | | | Message-ID: <20060702172445.GA20521@petdance.com> p4raw-id: //depot/perl@28468
* Perl_pack_cat() is a mathom too!Nicholas Clark2006-04-301-0/+18
| | | p4raw-id: //depot/perl@28031
* Perl_unpack_str() is a mathom!Nicholas Clark2006-04-241-0/+20
| | | p4raw-id: //depot/perl@27956
* Calling cv_undef() on the CV created by newCONSTSUB() would leak likeNicholas Clark2006-04-191-0/+5
| | | | | | | | | | a Jumblie's preferred maritime craft. To free CvFILE for this case, take advantage of the 0 length prototype that will also be there, and hang it from the prototype. To do this properly means changing code to actually pay attention to SvCUR() on prototypes. It turns out that we always know the length of the prototype string, so this may be faster. Certainly, it's a memory saving (even ignoring the leak). p4raw-id: //depot/perl@27896
* Merge sv_usepvn and sv_usepvn_mg into sv_usepvn_flags. "Promote" theNicholas Clark2006-04-161-0/+31
| | | | | other two to mathoms.c p4raw-id: //depot/perl@27840
* unused context warningsAndy Lester2006-02-241-0/+2
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* Merging pp_bit_or and pp_bit_xor shrinks the object code by about .7K.Nicholas Clark2006-02-071-0/+5
| | | | | The overloading tests are not free. p4raw-id: //depot/perl@27126
* All the trancendental unary operators can be merged into PP_sinNicholas Clark2006-02-071-0/+20
| | | | | (cos, exp, log, sqrt) p4raw-id: //depot/perl@27124
* pp_pop can be implemented by pp_shift.Nicholas Clark2006-02-071-0/+5
| | | p4raw-id: //depot/perl@27121
* pp_hex can be implemented trivially by pp_oct, making pp_hex a mathom.Nicholas Clark2006-02-071-0/+5
| | | p4raw-id: //depot/perl@27119
* Merge pp_index and pp_rindex - we have another mathom.Nicholas Clark2006-02-071-0/+5
| | | p4raw-id: //depot/perl@27118
* Move Perl_save_long, Perl_save_I16, Perl_save_I8, Perl_save_iv,Nicholas Clark2006-02-061-0/+75
| | | | | | Perl_save_nogv, Perl_save_list, Perl_save_destructor to mathoms.c Perl_save_svref can't actually move because it calls a static function. p4raw-id: //depot/perl@27106
* Silence a warning about "statement not reached" from the Sun C compiler.Nicholas Clark2006-02-031-2/+3
| | | | | It was accurate - the conditional code used to give 2 return statements. p4raw-id: //depot/perl@27071
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | 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-2/+2
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* Avoid using space to create 2 functions just to force mathoms to beNicholas Clark2006-01-291-2/+0
| | | | | | linked. Instead, force the link via the perl interpreter structure via a function pointer that gets replaced at run time anyway. p4raw-id: //depot/perl@26990
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-1/+1
| | | | | | | | 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
* 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/+5
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* mathoms prototypes aren't prototypesAndy Lester2005-11-121-1/+1
| | | | | Message-ID: <20051111232030.GA882@petdance.com> p4raw-id: //depot/perl@26099
* Merge pp_slt, pp_sgt and pp_sge into pp_sle. (The most commonly usedNicholas Clark2005-11-071-0/+15
| | | | | of the 4. Not that any are that popular.) p4raw-id: //depot/perl@26039
* The rarely used lcfirst and ucfirst share almost all their code.Nicholas Clark2005-11-071-0/+5
| | | | | Merge the two as pp_ucfirst. p4raw-id: //depot/perl@26035
* Merge pp_andassign, pp_orassign, and pp_dorassign into pp_and,Steve Peters2005-11-051-0/+15
| | | | | pp_or, and pp_defined, respectively. p4raw-id: //depot/perl@26007
* s/pp_dor/pp_defined/Steve Peters2005-11-041-1/+1
| | | p4raw-id: //depot/perl@26005
* I barely knew ya pp_dor. Merged into pp_defined from whence you came.Steve Peters2005-11-041-0/+5
| | | | | | This change has also caused pp_defined to be promoted to being a hot op. p4raw-id: //depot/perl@26004
* pp_semop can fit within Perl_pp_shmwrite().Nicholas Clark2005-11-041-0/+5
| | | p4raw-id: //depot/perl@26000
* The remaining special logic in pp_syswrite can be moved into pp_send,Nicholas Clark2005-11-041-0/+5
| | | | | which is actually already 50% syswrite. p4raw-id: //depot/perl@25999
* Re: Configure -Dno_mathomsGisle Aas2005-11-041-0/+6
| | | | | Message-ID: <lrslug7glm.fsf@caliper.activestate.com> p4raw-id: //depot/perl@25991
* Merge msgsnd, msgrcv with Perl_pp_shmwrite().Nicholas Clark2005-11-041-0/+10
| | | | | | "Perfection is achieved not when there's nothing more to add, but when there's nothing left to remove" (Antoine de Saint-Exupéry) p4raw-id: //depot/perl@25990
* ftrwrite, ftrexec, fteread, ftewrite and fteexec can all be mergedNicholas Clark2005-11-041-0/+25
| | | | | with Perl_pp_ftrread(). p4raw-id: //depot/perl@25986
* Perl_pp_symlink and Perl_pp_link can be merged. The diff looks evil,Nicholas Clark2005-11-031-0/+5
| | | | | but the actual finished code is not as bad as it seems. p4raw-id: //depot/perl@25972
* unlink chmod utime kill can be merged into Perl_pp_chown().Nicholas Clark2005-11-021-0/+20
| | | p4raw-id: //depot/perl@25964
* Move ftsuid ftsgid ftsvtx into Perl_pp_ftrowned.Nicholas Clark2005-11-021-0/+15
| | | p4raw-id: //depot/perl@25962
* Merge ftzero ftsock ftchr ftblk ftfile ftdir ftpipe intoNicholas Clark2005-11-021-0/+35
| | | | | Perl_pp_ftrowned p4raw-id: //depot/perl@25961
* Correct error in 25958 for threaded builds.Nicholas Clark2005-11-021-4/+4
| | | p4raw-id: //depot/perl@25959
* Merge ftsize ftmtime ftatime ftctime into Perl_pp_ftisNicholas Clark2005-11-021-0/+20
| | | p4raw-id: //depot/perl@25958
* All the ops that are simply C<return some_other_op();> can be bypassedNicholas Clark2005-10-311-0/+184
| | | | | in the op dispatch table, and the bodies retired. p4raw-id: //depot/perl@25940
* uvchr_to_utf8() and utf8n_to_uvchr() are mathoms on ASCII basedNicholas Clark2005-10-311-52/+0
| | | | | | systems, and not on EBCDIC, so some more thinking is going to be needed here. p4raw-id: //depot/perl@25921
* perlsio_binmode() is pretty much a mathom on UNIX platforms, but it isSteve Peters2005-10-311-63/+0
| | | | | used on Cygwin, at least. p4raw-id: //depot/perl@25911
* Given that sv_nosharing performs the same function as sv_nolockingNicholas Clark2005-10-301-0/+37
| | | | | | | and sv_unnolocking (ie sweet FA), we might as well use the 1 function to initialise all 3 variables, and elimiate the other two. For some reason all 3 are listed as being in the public API. Daft. p4raw-id: //depot/perl@25906
* Replace uvuni_to_utf8() with a macro that passes the extra 0 argumentNicholas Clark2005-10-301-0/+6
| | | | | to uvuni_to_utf8_flags(). Move the old body to mathoms.c p4raw-id: //depot/perl@25905
* Replace is_utf8_string_loc() with a macro that passes the extra 0Nicholas Clark2005-10-301-0/+6
| | | | | | argument to is_utf8_string_loc(). Correct the description of its parameters in its POD. p4raw-id: //depot/perl@25903