summaryrefslogtreecommitdiff
path: root/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* 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/+6
| | | | | | 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/+5
| | | | | | | | | | | 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
* Split out S_refcounted_he_new_common() fromNicholas Clark2008-04-071-0/+13
| | | | | | | | | 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/+1
| | | | | | 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/+2
| | | | | Perl_sv_insert() to mathoms.c p4raw-id: //depot/perl@33627
* Double magic with substrVincent Pit2008-03-311-0/+6
| | | | | 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/+9
| | | | | 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-13/+13
| | | | | Message-ID: <20080312113846.GB31102@refcnt.homeunix.org> p4raw-id: //depot/perl@33507
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-121-14/+14
| | | | | Message-ID: <20080311185937.GA18713@refcnt.homeunix.org> p4raw-id: //depot/perl@33489
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-111-12/+12
| | | | | Message-ID: <20080311104929.GA4950@refcnt.homeunix.org> p4raw-id: //depot/perl@33473
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-111-18/+18
| | | | | 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-4/+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-11/+11
| | | | | | | 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-10/+10
| | | | | Message-ID: <20080302164743.GB10705@refcnt.homeunix.org> p4raw-id: //depot/perl@33409
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-021-11/+11
| | | | | Message-ID: <20080301182953.GB16742@refcnt.homeunix.org> p4raw-id: //depot/perl@33406
* Re: [PATCH] sv.c: constingSteven Schubiger2008-03-011-9/+9
| | | | | | 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/+10
| | | | | | 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/+3
| | | | | | 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-2/+2
| | | 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-6/+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-2/+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-2/+2
| | | | | 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-2/+2
| | | | | (Fixes my DEBUGGING builds on Win32) p4raw-id: //depot/perl@33298
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-0/+1866
| | | | | | | | | | | | 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
* 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-159/+159
| | | | | actual function declaration. p4raw-id: //depot/perl@33289
* In Perl_load_module_nocontext(), ver can actually be NULL.Nicholas Clark2008-02-121-22/+9
| | | | | | | | | | | 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-21/+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-4/+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-14/+8
| | | | | | | | 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-3/+4
| | | | | 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-3/+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/+3
| | | p4raw-id: //depot/perl@33273
* vcroak()'s pattern is actually NULLOK.Nicholas Clark2008-02-101-2/+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
* sv.c: constingSteven Schubiger2008-02-041-5/+5
| | | | | Message-ID: <20080203185315.GA20276@refcnt.homeunix.org> p4raw-id: //depot/perl@33231
* taint.c: constingSteven Schubiger2008-02-031-1/+1
| | | | | | Message-ID: <20080129124723.GA13056@refcnt.homeunix.org> Date: Tue, 29 Jan 2008 13:47:23 +0100 p4raw-id: //depot/perl@33228
* Fix compiler warning introduced in DEBUGGING builds by #33103Steve Hay2008-01-311-1/+1
| | | p4raw-id: //depot/perl@33142
* Fix Win32 compiler warnings introduced by #33081 and #33085Steve Hay2008-01-291-1/+1
| | | p4raw-id: //depot/perl@33106
* toke.c/universal.c: constingSteven Schubiger2008-01-291-11/+11
| | | | | Message-ID: <20080128125741.GA27390@refcnt.homeunix.org> p4raw-id: //depot/perl@33103