summaryrefslogtreecommitdiff
path: root/embed.fnc
Commit message (Collapse)AuthorAgeFilesLines
* Re: [5.8] Change 33727 (op.c) breaks constant folding in "elsif"Vincent Pit2008-09-131-0/+1
| | | | | Message-ID: <48CAF79A.6000001@profvince.com> p4raw-id: //depot/perl@34358
* Create a direct lookup hash for ->isa() lookup, by retaining theNicholas Clark2008-09-121-0/+1
| | | | | | | | | | | de-duping hash used by S_mro_get_linear_isa_dfs(). Provide a new function Perl_get_isa_hash() to lazily retrieve this. (Which could actually be static if S_isa_lookup() and Perl_sv_derived_from() moved into mro.c.) Make S_isa_lookup() use this lookup hash in place of a linear walk of the linear isa. This should turn isa lookups from O(n) to O(1), which should make heavy users of ->isa() faster. (eg PPI, and hence Perl Critic). p4raw-id: //depot/perl@34354
* The stash argument to S_isa_lookup() actually never is NULL.Nicholas Clark2008-09-111-1/+1
| | | p4raw-id: //depot/perl@34351
* S_isa_lookup() no longer recurses (as of Brandon's MRO changes), so weNicholas Clark2008-09-111-1/+1
| | | | | don't need to pass in name_stash as a parameter. p4raw-id: //depot/perl@34349
* Add Perl_croak_xs_usage(), which reduces a lot of explicit calls ofNicholas Clark2008-05-211-0/+3
| | | | | | | 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
* Double magic/warnings with binmode $fh, undefVincent Pit2008-04-301-1/+1
| | | | | | From: "Vincent Pit" <perl@profvince.com> Message-ID: <63615.92.128.97.94.1209490401.squirrel@92.128.97.94> p4raw-id: //depot/perl@33766
* Perl_gv_fetchmethod{,_autoload,_flags} are actually never* called withNicholas Clark2008-04-171-3/+4
| | | | | | a non-NULL stash. So change the parameter to NN. * Fixed the one really obscure hitherto untested case. p4raw-id: //depot/perl@33706
* /* This code tries to figure out just what went wrong withNicholas Clark2008-04-171-0/+2
| | | | | | | | | | | gv_fetchmethod. It therefore needs to duplicate a lot of the internals of that function. "Duplicate". <snigger>. You said a naughty word. Now sanitised. [All tests pass, but I'm not 100% confident that this code is equivalent in all reachable corner cases, and it may be possible to simplify the error reporting logic now in gv_fetchmethod_flags] p4raw-id: //depot/perl@33702
* Perl_store_cop_label() isn't meant to be part of the public API.Nicholas Clark2008-04-141-1/+1
| | | | | | (global.sym had been inconsistent with embed.fnc, but it turns out that global.sym was actually correct.) p4raw-id: //depot/perl@33677
* Split out S_refcounted_he_new_common() fromNicholas Clark2008-04-071-1/+11
| | | | | | | | | Perl_refcounted_he_new_common(), so that Perl_store_cop_label() can call it without needing to create two temporary SVs. Use it in newSTATEOP() and eliminate the two temporary SVs. Make Perl_fetch_cop_label() more defensive by not assuming that the value for ":" is always a PV. Remove its "compatibility" macro. p4raw-id: //depot/perl@33657
* Eliminate cop_label from struct cop by storing a label as the firstNicholas Clark2008-04-071-1/+2
| | | | | | entry in the hints hash. Most statements don't have labels, so this will save memory. Not sure how much. p4raw-id: //depot/perl@33656
* Define sv_insert() as a wrapper to sv_insert_flags(), and moveNicholas Clark2008-04-011-2/+3
| | | | | Perl_sv_insert() to mathoms.c p4raw-id: //depot/perl@33627
* Double magic with substrVincent Pit2008-03-311-0/+2
| | | | | Message-ID: <47F119E8.5010106@profvince.com> p4raw-id: //depot/perl@33618
* Repeat change 33508 - change 33561 re-instated the mistake in changeNicholas Clark2008-03-251-1/+1
| | | | | 33507. p4raw-id: //depot/perl@33563
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-251-9/+10
| | | | | Message-ID: <20080313165800.GD31102@refcnt.homeunix.org> p4raw-id: //depot/perl@33561
* Change 33507 had a const too far (Perl_mg_dup()'s mg is assigned to).Nicholas Clark2008-03-131-1/+1
| | | p4raw-id: //depot/perl@33508
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-131-17/+19
| | | | | Message-ID: <20080312113846.GB31102@refcnt.homeunix.org> p4raw-id: //depot/perl@33507
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-121-14/+15
| | | | | Message-ID: <20080311185937.GA18713@refcnt.homeunix.org> p4raw-id: //depot/perl@33489
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-111-12/+14
| | | | | Message-ID: <20080311104929.GA4950@refcnt.homeunix.org> p4raw-id: //depot/perl@33473
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-111-18/+19
| | | | | Message-ID: <20080302210951.GD10705@refcnt.homeunix.org> p4raw-id: //depot/perl@33471
* Perl_croak_nocontext() is called with NULL indirectly from Steve Peters2008-03-081-1/+1
| | | | | some XS-based modules. p4raw-id: //depot/perl@33453
* Silence warning introduced by #32703 when building with MYMALLOCSteve Hay2008-03-061-1/+1
| | | p4raw-id: //depot/perl@33450
* Silence some warnings on Win32 with VC6Steve Hay2008-03-061-9/+9
| | | | | | | | 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
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-021-12/+12
| | | | | | | Message-ID: <20080302191029.GC10705@refcnt.homeunix.org> Plus regen and additional tweaks to silence warnings from VC7 in sv.c from this patch and previous patches from same author. p4raw-id: //depot/perl@33411
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-021-11/+11
| | | | | Message-ID: <20080302164743.GB10705@refcnt.homeunix.org> p4raw-id: //depot/perl@33409
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-021-14/+15
| | | | | Message-ID: <20080301182953.GB16742@refcnt.homeunix.org> p4raw-id: //depot/perl@33406
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-011-11/+11
| | | | | | Message-ID: <20080229202939.GA16742@refcnt.homeunix.org> Date: Fri, 29 Feb 2008 21:29:39 +0100 p4raw-id: //depot/perl@33403
* Re: [PATCH] sv.c: constingSteven Schubiger2008-02-291-10/+11
| | | | | | Message-ID: <20080208131350.GB22321@refcnt.homeunix.org> Date: Fri, 8 Feb 2008 14:13:50 +0100 p4raw-id: //depot/perl@33400
* Add Perl_malloc_good_size to malloc.c. (A routine that rounds up the Nicholas Clark2008-02-271-0/+1
| | | | | | passed in request to the size that will actually be allocated. It's the same interface as Darwin already provides with malloc_good_size().) p4raw-id: //depot/perl@33389
* Change variable name to fix debug build with PERL_OLD_COPY_ON_WRITESteve Hay2008-02-271-1/+1
| | | p4raw-id: //depot/perl@33384
* Following 33291, on VMS we need to use the same prototypes other platforms Craig A. Berry2008-02-221-1/+1
| | | | | | use in order to get the do_spawn-related assert macros defined. Based on suggestions by John Malmberg. p4raw-id: //depot/perl@33343
* Eliminate ck_lengthconst.Nicholas Clark2008-02-201-1/+0
| | | p4raw-id: //depot/perl@33338
* use svtypeRobin Barker2008-02-141-6/+6
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <46A0F33545E63740BC7563DE59CA9C6D093A35@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@33304
* pp_system explicitly passes NULL to do_aspawn, so NULL must be "OK"Steve Hay2008-02-131-1/+1
| | | | | *Now* my Win32 DEBUGGING build works :-) p4raw-id: //depot/perl@33300
* Drat. #33298 doesn't fix it: need this too.Steve Hay2008-02-131-6/+11
| | | | | And even then I now get an assertion from win32.c line 628. Sigh... p4raw-id: //depot/perl@33299
* Correct another variable name in embed.fncSteve Hay2008-02-131-1/+1
| | | | | (Fixes my DEBUGGING builds on Win32) p4raw-id: //depot/perl@33298
* Correct the paramter to Perl_op_xmldump(). The one that got away fromNicholas Clark2008-02-121-1/+1
| | | | | change 33289. p4raw-id: //depot/perl@33290
* Correct (some) variable names in embed.fnc where they differ from theNicholas Clark2008-02-121-177/+221
| | | | | actual function declaration. p4raw-id: //depot/perl@33289
* In Perl_load_module_nocontext(), ver can actually be NULL.Nicholas Clark2008-02-121-10/+11
| | | | | | | | | | | In Perl_hv_copy_hints_hv(), ohv can actually be NULL. In Perl_sortsv(), Perl_sortsv_flags() and S_qsortsvu(), array can be NULL (if the number of elements to sort is <= 1). In Perl_save_nogv(), gv can not be NULL. In Perl_sv_cmp() and Perl_sv_cmp_locale(), both SVs can be NULL. In Perl_ptr_table_fetch(), the sv can be NULL. In PerlIO_set_ptrcnt(), ptr can be NULL. p4raw-id: //depot/perl@33287
* Perl_sv_2iv_flags(), Perl_sv_2uv_flags, Perl_sv_2nv andNicholas Clark2008-02-111-7/+7
| | | | | | Perl_sv_2pv_flags() all return 0/0/0.0/"" without warning given a NULL SV pointer so they ought to be marked as NULLOK in embed.fnc. p4raw-id: //depot/perl@33285
* Perl_ck_retarget() doesn't even exist, so little point in mentioning Nicholas Clark2008-02-111-1/+0
| | | | | it. p4raw-id: //depot/perl@33284
* In Perl_sv_catpv(), Perl_sv_catpv_mg() the ptr can be not NULL.Nicholas Clark2008-02-111-7/+7
| | | | | | | | In Perl_sv_inc() and Perl_sv_dec(), the sv can be not NULL. In Perl_parser_dup() the proto parser can be NULL. In Perl_ptr_table_find(), the sought-for pointer can be NULL. In Perl_save_set_svflags(), the saved SV can't be NULL. p4raw-id: //depot/perl@33283
* In Perl_regfree_internal(), rx is actually not NULL.Nicholas Clark2008-02-111-2/+2
| | | | | In Perl_regnext(), p can actually be NULL. p4raw-id: //depot/perl@33279
* The "pointer" argument to S_restore_magic() is not not NULL, becauseNicholas Clark2008-02-111-1/+1
| | | | | | it's actually an integer index wedged into a pointer. (To fit within the existing save stack API.) p4raw-id: //depot/perl@33276
* The sv argument to gv_stashsv() is not NULL.Nicholas Clark2008-02-101-1/+1
| | | p4raw-id: //depot/perl@33273
* vcroak()'s pattern is actually NULLOK.Nicholas Clark2008-02-101-1/+1
| | | p4raw-id: //depot/perl@33272
* Correct some names of parameters in embed.fnc.Nicholas Clark2008-02-101-9/+9
| | | p4raw-id: //depot/perl@33271
* Two parameter names missing in embed.fncNicholas Clark2008-02-101-2/+2
| | | p4raw-id: //depot/perl@33270
* Re: [PATCH] sv.c: constingSteven Schubiger2008-02-081-11/+11
| | | | | Message-ID: <20080207165158.GA22321@refcnt.homeunix.org> p4raw-id: //depot/perl@33249
* Re: [PATCH] sv.c: constingSteven Schubiger2008-02-071-11/+11
| | | | | Message-ID: <20080204144419.GB20276@refcnt.homeunix.org> p4raw-id: //depot/perl@33245