summaryrefslogtreecommitdiff
path: root/universal.c
Commit message (Collapse)AuthorAgeFilesLines
* Abolish the warning "Can't locate package %"SVf" for the parents of %s"Nicholas Clark2008-09-111-8/+0
| | | | | | | which doesn't tell you anything you won't discover soon enough when you try to call a method. (Or haven't already been warned about when @ISA was linearised) p4raw-id: //depot/perl@34353
* As stash can't be NULL, no need to check name_stash is not NULL beforeNicholas Clark2008-09-111-1/+1
| | | | | comparing the two, as a NULL == NULL comparison can't happen. p4raw-id: //depot/perl@34352
* Use 1 line of code in place of 6 in Perl_sv_derived_from().Nicholas Clark2008-09-111-6/+1
| | | p4raw-id: //depot/perl@34350
* S_isa_lookup() no longer recurses (as of Brandon's MRO changes), so weNicholas Clark2008-09-111-3/+3
| | | | | don't need to pass in name_stash as a parameter. p4raw-id: //depot/perl@34349
* No, I didn't mean to commit the version *with* the abort(). It wasNicholas Clark2008-08-221-1/+0
| | | | | | meant to be removed once I'd proved it by running the tests without aborting. Oops. use more 'coffee'; p4raw-id: //depot/perl@34217
* Note that we have no test coverage for this particular warning.Nicholas Clark2008-08-221-0/+2
| | | p4raw-id: //depot/perl@34216
* Welcome to refcount hell. Fix the leaks reported by #57024Marcus Holland-Moritz2008-07-181-13/+10
| | | | | along with a bunch other named capture related leaks. p4raw-id: //depot/perl@34151
* Silence build warnings in universal.cJerry D. Hedden2008-05-231-1/+2
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510805211015m5c59bbf5wf3a992e776b1c4c4@mail.gmail.com> p4raw-id: //depot/perl@33910
* Make the worst case error message for Perl_croak_xs_usage() consistentNicholas Clark2008-05-211-1/+1
| | | | | with stringifying a code reference. p4raw-id: //depot/perl@33902
* Add Perl_croak_xs_usage(), which reduces a lot of explicit calls ofNicholas Clark2008-05-211-70/+71
| | | | | | | the form Perl_croak(aTHX_ "Usage %s::%s(%s)", "ouch" "awk", "eee_yow"); down to croak_xs_usage(cv, "eee_yow"); and refactor all the core XS code to use it. This adds () to the error messages for attributes::* p4raw-id: //depot/perl@33901
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-1/+7
| | | | | | | | | | | | 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
* In XS_PerlIO_get_layers() take advantage of the implementation ofNicholas Clark2008-02-021-8/+13
| | | | | | PerlIO_get_layers(), by co-opting the new SVs it creates, rather than copying them. p4raw-id: //depot/perl@33182
* In XS_re_regexp_pattern(), use newSVpvn_flags() to avoid calls toNicholas Clark2008-02-021-7/+5
| | | | | sv_2mortal(). p4raw-id: //depot/perl@33181
* toke.c/universal.c: constingSteven Schubiger2008-01-291-2/+2
| | | | | Message-ID: <20080128125741.GA27390@refcnt.homeunix.org> p4raw-id: //depot/perl@33103
* Move re::regexp_pattern to universal.cJerry D. Hedden2008-01-091-0/+95
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510801081201q5c36f055re6165ebfe8876c2e@mail.gmail.com> p4raw-id: //depot/perl@32911
* Post change 32880, restore the dummy sub Regexp::DESTROY {}Nicholas Clark2008-01-071-0/+8
| | | p4raw-id: //depot/perl@32896
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-10/+10
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-2/+2
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Forgot to remove dTARGET with change #32816.Marcus Holland-Moritz2008-01-031-1/+0
| | | | | p4raw-link: @32816 on //depot/perl: 1eb9e81d303aab0f6c2386f44bc76241948fce0f p4raw-id: //depot/perl@32817
* Fix memory leaks in XS_PerlIO_get_layers() by mortalizingMarcus Holland-Moritz2008-01-031-8/+8
| | | | | | all variables pushed on the stack. Also make sure the loop is using mXPUSHi() and not XPUSHi(). p4raw-id: //depot/perl@32816
* First class regexps.Nicholas Clark2007-12-281-8/+0
| | | p4raw-id: //depot/perl@32751
* use newSVpvs() on the constant string "isa", rather than newSVpv().Nicholas Clark2007-10-181-1/+1
| | | p4raw-id: //depot/perl@32134
* Rename various regex defined so that they have distinct prefixes based on ↵Yves Orton2007-06-281-8/+8
| | | | | | | | | | | | | | their usage. RXf_ => flags used in pm_flags argument to regcomp and stored in the regex via rx->extflags PREGf_ => flags stored in rx->intflags RXapif_ => argument flags for regex named capture api RX_BUFF_IDX_ => special indexes to represent $` $' $& used in the numeric capture buffer api PREGf is untouched by this change, but RXf_ is split into RXapif and RX_BUFF_IDX_. p4raw-id: //depot/perl@31497
* SvRX() and SvRXOK() macrosÆvar Arnfjörð Bjarmason2007-06-181-33/+8
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706172033h1908aa0ge15698204e0b79ed@mail.gmail.com> p4raw-id: //depot/perl@31409
* Make symbols short enough for VMS after #31341.Craig A. Berry2007-06-081-6/+6
| | | p4raw-id: //depot/perl@31358
* Silence compiler warningsJerry D. Hedden2007-06-071-0/+12
| | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510706061145r540c7f02kba96c04bc9dcf8b0@mail.gmail.com> p4raw-id: //depot/perl@31348
* Re: [PATCH] Callbacks for named captures (%+ and %-)Ævar Arnfjörð Bjarmason2007-06-061-160/+332
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706031324y5618d519p460da27a2e7fe712@mail.gmail.com> p4raw-id: //depot/perl@31341
* Remove unused parms in S_isa_lookupAndy Lester2007-05-091-6/+3
| | | | | Message-Id: <1CBA316A-EC1D-4E8F-8DEE-35322F390358@petdance.com> p4raw-id: //depot/perl@31185
* FETCH/STORE/LENGTH callbacks for numbered capture variablesÆvar Arnfjörð Bjarmason2007-05-031-1/+1
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80705011658g1156e14cw4d2b21a8d772ed41@mail.gmail.com> p4raw-id: //depot/perl@31130
* Re: mro status, etcBrandon Black2007-04-301-1/+1
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60704291527y1b39be37l221ef66e4c828f66@mail.gmail.com> p4raw-id: //depot/perl@31107
* Eliminate Internals::inc_sub_generation, which nothing now calls.Nicholas Clark2007-04-211-14/+0
| | | p4raw-id: //depot/perl@31012
* Upgrade to version-0.7203.Rafael Garcia-Suarez2007-04-211-3/+3
| | | | | Plus a change in Module::Build::Version, specific to bleadperl. p4raw-id: //depot/perl@31005
* Nit to S_isa_lookup by Brandon BlackRafael Garcia-Suarez2007-04-201-1/+1
| | | p4raw-id: //depot/perl@30996
* Put the "Can't locate package..." warnings in the "syntax"Rafael Garcia-Suarez2007-04-191-1/+1
| | | | | category, as documented p4raw-id: //depot/perl@30982
* Re: new C3 MRO patchBrandon Black2007-04-191-71/+19
| | | | | | From: "Brandon Black" <blblack@gmail.com> Message-ID: <84621a60704171114k29b0460el5b08ce5185d55ed5@mail.gmail.com> p4raw-id: //depot/perl@30980
* Typo in croak messageH.Merijn Brand2007-04-141-1/+1
| | | p4raw-id: //depot/perl@30951
* Fix the error message "Can't call method "DOES" on unblessedRafael Garcia-Suarez2007-03-311-1/+7
| | | | | reference". p4raw-id: //depot/perl@30806
* In struct regexp replace the two arrays of I32s accessed via startpNicholas Clark2007-03-261-4/+4
| | | | | | | | | | and endp with a single array of struct regexp_paren_pair, which has 2 I32 members. PL_regstartp and PL_regendp are replaced with a pointer to regexp_paren_pair. The regexp swap structure now only has one member, so abolish it and store the pointer to the swap array directly. Hopefully keeping the corresponding start and end adjacent in memory will help with cache coherency. p4raw-id: //depot/perl@30769
* Don't use PL_na.Rafael Garcia-Suarez2007-03-231-1/+1
| | | p4raw-id: //depot/perl@30730
* Fix error message for re::regnames_iterinit()Rafael Garcia-Suarez2007-03-221-2/+2
| | | p4raw-id: //depot/perl@30679
* Resolve PL_curpm issues with (??{}) and fix corruption of match results when ↵Yves Orton2007-03-221-98/+56
| | | | | | | | | pattern is a qr. Message-ID: <9b18b3110703210239x540f5ad9mdb41c2ea6229ac31@mail.gmail.com> plus two follow-up patches (minor tweaks) p4raw-id: //depot/perl@30678
* Upgrade to version.pm 0.71, by John PeacockRafael Garcia-Suarez2007-03-191-33/+18
| | | p4raw-id: //depot/perl@30629
* Re: [PATCH] Tweaks so that miniperl.exe doesnt croak while building perl.exeYves Orton2007-03-081-0/+297
| | | | | Message-ID: <9b18b3110703071144t787e028s8a79fa1986624b54@mail.gmail.com> p4raw-id: //depot/perl@30517
* Compilation warnings fixes by Jerry D. HeddenRafael Garcia-Suarez2007-03-031-0/+26
| | | p4raw-id: //depot/perl@30447
* More assertion failures, found by auditing the code.Nicholas Clark2007-03-021-2/+2
| | | p4raw-id: //depot/perl@30443
* The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmaskNicholas Clark2007-01-251-6/+6
| | | | | of flags, not a boolean, so correct the documenation and callers. p4raw-id: //depot/perl@29977
* 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-8/+8
| | | | | | | | | 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
* Re: [perl #37714] XSUB.h version check may fail due to localeJohn Peacock2006-09-181-1/+2
| | | | | Message-ID: <450DB712.4040703@rowman.com> p4raw-id: //depot/perl@28864
* A better version of change #28847Rafael Garcia-Suarez2006-09-171-0/+6
| | | | | p4raw-link: @28847 on //depot/perl: e24f8a798207476769992a3387804af506c43eab p4raw-id: //depot/perl@28861