summaryrefslogtreecommitdiff
path: root/mathoms.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the regexp in t/porting/args_assert.t, and add 3 missing macros.Nicholas Clark2010-05-291-0/+1
| | | | Resolves RT #72800.
* add flags arg to sv_2nv (as sv_2nv_flags)David Mitchell2010-05-081-0/+12
|
* On the save stack, store the save type as the bottom 6 bits of a UV.Nicholas Clark2010-05-011-4/+4
| | | | This makes the other 26 (or 58) bits available for save data.
* move JMPENV_JUMP to die_where and mark it as "noreturn"Gerard Goossen2009-11-061-0/+2
|
* Merge gv_IOadd() into gv_add_by_type().Nicholas Clark2009-08-081-6/+6
|
* Perl_newIO() can become a mathom by making newIO() a wrapper around newSV_type()Nicholas Clark2009-08-081-0/+7
| | | | and tweaking Perl_sv_upgrade().
* Merge gv_AVadd(), gv_HVadd() and gv_SVadd() into gv_add_by_type().Nicholas Clark2009-08-081-0/+26
| | | | The "short" names become macro wrappers, and the Perl_* versions become mathoms.
* Avoid warnings from exacting C compilers when -DNO_MATHOMS is in force.Nicholas Clark2008-12-021-1/+7
| | | p4raw-id: //depot/perl@34977
* Convert all the scope save functions of the formNicholas Clark2008-11-301-0/+38
| | | | | | | | | SSCHECK(2); SSPUSHPTR(o); SSPUSHINT(SAVEt_FREEOP); into a single function Perl_save_pushptr(ptr, type), which the others call. Implement the others as macros. This reduces the object code size. p4raw-id: //depot/perl@34956
* av_fake() isn't in the public API, and isn't used anywhere, so it canNicholas Clark2008-11-271-23/+0
| | | | | go. p4raw-id: //depot/perl@34944
* Perl_oopsCV() is not part of the public API, not used anywhere, so canNicholas Clark2008-11-261-11/+0
| | | | | go. p4raw-id: //depot/perl@34937
* Perl_cv_ckproto() is not part of the public API, and not used anywhereNicholas Clark2008-11-261-8/+0
| | | | | in the core. So it can go. p4raw-id: //depot/perl@34922
* PATCH: Large omnibus patch to clean up the JRRT quotesTom Christiansen2008-11-021-4/+6
| | | | | | Message-ID: <25940.1225611819@chthon> Date: Sun, 02 Nov 2008 01:43:39 -0600 p4raw-id: //depot/perl@34698
* Eliminate (SV *) casts from the rest of *.c, picking up one (further)Nicholas Clark2008-10-301-5/+5
| | | | | erroneous const in dump.c. p4raw-id: //depot/perl@34675
* Eliminate (AV *) casts in *.c.Nicholas Clark2008-10-291-2/+2
| | | p4raw-id: //depot/perl@34650
* Every remaining (HV *) cast in *.cNicholas Clark2008-10-281-1/+1
| | | p4raw-id: //depot/perl@34629
* Update copyright years.Nicholas Clark2008-10-251-1/+1
| | | p4raw-id: //depot/perl@34585
* Define sv_insert() as a wrapper to sv_insert_flags(), and moveNicholas Clark2008-04-011-0/+8
| | | | | Perl_sv_insert() to mathoms.c p4raw-id: //depot/perl@33627
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-0/+123
| | | | | | | | | | | | 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
* As Perl_magic_setbm() and Perl_magic_setfm() aren't in the public API,Nicholas Clark2007-12-311-12/+0
| | | | | they can just go. p4raw-id: //depot/perl@32790
* Perl_magic_setbm() and Perl_magic_setfm() are mathoms that can beNicholas Clark2007-12-311-0/+12
| | | | | | | merged with Perl_magic_setregexp(). [Coverage on the testsuite suggests that more than that they're actually dead code, but in theory it should be possible to construct a test case that exercises them.] p4raw-id: //depot/perl@32789
* For 5.12 we can simply exterminate! the private functionNicholas Clark2007-12-211-10/+0
| | | | | Perl_magic_setglob(). p4raw-id: //depot/perl@32684
* Similiarly Perl_newHV() can become a mathom by making newHV() aNicholas Clark2007-12-201-0/+10
| | | | | wrapper around newSV_type() and tweaking Perl_sv_upgrade(). p4raw-id: //depot/perl@32676
* Perl_newAV() can become a mathom by making newAV() a wrapper aroundNicholas Clark2007-12-201-1/+11
| | | | | newSV_type() and tweaking Perl_sv_upgrade(). p4raw-id: //depot/perl@32675
* Perl_magic_setglob() is a mathom.Nicholas Clark2007-12-201-0/+13
| | | p4raw-id: //depot/perl@32672
* Fix up copyright years for files modified in 2007.Nicholas Clark2007-11-071-1/+1
| | | p4raw-id: //depot/perl@32237
* Add a new function Perl_hv_common_key_len(), which contains theNicholas Clark2007-09-201-0/+77
| | | | | | | | manipulations to convert negative lengths to positive length + UTF-8 flag. hv_delete(), hv_exists(), hv_fetch(), hv_store() and hv_store_flags() all become mathoms. The macros hv_fetchs() and hv_stores() call hv_common() directly. p4raw-id: //depot/perl@31931
* Casts needed in mathoms.c to make it compile with g++ after theSteve Peters2007-09-201-2/+2
| | | | | making Perl_hv_common() return void *. p4raw-id: //depot/perl@31927
* Convert hv_delete_ent(), hv_exists_ent(), hv_fetch_ent() andNicholas Clark2007-09-201-0/+28
| | | | | | hv_store_ent() to macros, and consign the function bodies to history. Er, mathoms.c p4raw-id: //depot/perl@31924
* Remove dead functions:Nicholas Clark2007-09-171-59/+0
| | | | | | | Perl_do_pipe, which is unused since 4.036 Perl_save_hints, which would just croak pp_threadsv, which was only used by 5.005 threads p4raw-id: //depot/perl@31889
* Remove dead code surrounded by #if 0 from mathoms.cNicholas Clark2007-09-171-20/+0
| | | p4raw-id: //depot/perl@31888
* Un-mathom Perl_save_I16Jerry D. Hedden2007-04-231-10/+0
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510704230610t13c62378s381eaceae3e7e9b1@mail.gmail.com> p4raw-id: //depot/perl@31033
* 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