summaryrefslogtreecommitdiff
path: root/cop.h
Commit message (Collapse)AuthorAgeFilesLines
* CopSTASH_eq againAndy Lester2005-06-151-10/+3
| | | | | Message-ID: <20050615044926.GA29087@petdance.com> p4raw-id: //depot/perl@24847
* Replace all uses of HvNAME with the appropriate HvNAME_get orNicholas Clark2005-05-251-5/+5
| | | | | HvNAME_set p4raw-id: //depot/perl@24573
* Goodbye AvFLAGSNicholas Clark2005-05-201-1/+1
| | | p4raw-id: //depot/perl@24518
* Better fix for #8738 (Core dump in 'leavetry')Dave Mitchell2005-05-021-0/+2
| | | | | | | | | | | | | | | | When in an inner runops loop (eg via a tie or sort), an eval needs a new JMPENV pushing by S_docatch. If an exception is raised, control is returned to S_docatch, and it must determine whether the eval that trapped the exception is an inner eval or an outer one. In the former case, restart the loop, in the latter case, rethrow the exception. This is determined by whether we are still at the same PL_curstackinfo level. This fails in the case of SPLICE(), which pushes a new SETJMP and runops level, but not a new stackinfo level. There may be other code which does similar. The solution is to store the current value of PL_top_env in each pushed CxEVAL, and see if it's still the same as PL_top_env when the exception is handled. p4raw-id: //depot/perl@24363
* move the SETJMP exception-handing definitions from scope.h to cop.hDave Mitchell2005-05-021-0/+120
| | | | | so that a JMPENV* entry can be added to struct block_eval p4raw-id: //depot/perl@24361
* Refactoring to Sv*_set() macros - patch #4Steve Peters2005-04-181-1/+1
| | | | | | | Message-ID: <20050416160502.GA26957@mccoy.peters.homeunix.org> plus fix to Perl_rvpv_dup assigning to an RV with SvPVX p4raw-id: //depot/perl@24239
* remove binary compat from #23156 (remove PL_retstack)Dave Mitchell2004-07-231-1/+0
| | | p4raw-id: //depot/perl@23157
* remove the return stack PL_retstack, and store return ops in the CXDave Mitchell2004-07-231-5/+6
| | | | | structure directly instead p4raw-id: //depot/perl@23156
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* second attempt to fix [perl #24914] freeing a CV reference that wasDave Mitchell2004-01-201-2/+11
| | | | | | | | currently being executed caused coredumps. The dounwind called by die unwinds all the contexts on the context stack before unwinding the save stack. To stop premature freeing of the CV, hold references to it on both stacks. p4raw-id: //depot/perl@22182
* Put all pre-processor #s on the first column (some compilers are picky)Nicholas Clark2003-10-091-21/+21
| | | | | [perl #24167] `#' comment signs not at the very beginning of a line p4raw-id: //depot/perl@21433
* Macrofy the compile/runtime test.Jarkko Hietaniemi2003-09-211-0/+4
| | | p4raw-id: //depot/perl@21297
* Two debugging patches.Dave Mitchell2003-06-281-1/+3
| | | | | | | | | | | | | | | | The first allows to hold symbolic switches in $^D and more generally fixes assignment to $^D. The second one improves the information given by -Dl. Subject: [PATCH] allow $^D = "flags" Date: Fri, 27 Jun 2003 22:26:24 +0100 Message-ID: <20030627212624.GB12887@fdgroup.com> Subject: [PATCH] make -Dl show more scope info From: Dave Mitchell <davem@fdgroup.com> Date: Fri, 27 Jun 2003 23:00:36 +0100 Message-ID: <20030627220036.GC12887@fdgroup.com> p4raw-id: //depot/perl@19870
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (Lots of Perl 5 source code archaeology was involved.) Larry didn't make strangled noises when I showed him the patch, either :-) p4raw-id: //depot/perl@19242
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* Detypo.Jarkko Hietaniemi2003-02-031-3/+3
| | | p4raw-id: //depot/perl@18643
* Introduce the PUSHSUB_DB macro, equivalent to PUSHSUB, butDave Mitchell2003-01-271-2/+12
| | | | | | | without the lval context tweak. Used in OP_DBSTATE. Subject: Re: [PATCH] Re: change #9754: 5 x slowdown for perl -d Message-ID: <20030126174242.H16182@fdgroup.com> p4raw-id: //depot/perl@18596
* allow evals to see the full lexical scopeDave Mitchell2002-12-021-0/+5
| | | | | Message-ID: <20021124221906.A25386@fdgroup.com> p4raw-id: //depot/perl@18220
* PL_curpad == AvARRAY(PL_comppad) alwaysDave Mitchell2002-10-221-2/+2
| | | | | Message-ID: <20021018133640.A19172@fdgroup.com> p4raw-id: //depot/perl@18048
* Happy chainsaw stories; The removal of the 5005 threadsH.Merijn Brand2002-10-191-7/+1
| | | | | Still imcomplete. Configure will follow p4raw-id: //depot/perl@18030
* move all pad-related code to its own src fileDave Mitchell2002-10-021-5/+6
| | | | | Message-ID: <20020925234023.A20044@fdgroup.com> p4raw-id: //depot/perl@17953
* fix coredump after 64k-deep recursionHugo van der Sanden2002-09-041-2/+2
| | | | | | Subject: Re: debugging coredump with -DD Message-Id: <200209031334.g83DYLN09709@crypt.compulink.co.uk> p4raw-id: //depot/perl@17835
* Win32 crash in fork.t (perl@16694)Kevin Chase2002-05-211-2/+6
| | | | | | | | | | From: "Kevin Chase" <kevincha99@hotmail.com> Message-ID: <F53z5b6KZmcK8r6beUz000008f7@hotmail.com> It looks that the Poison() found its first target. The suggested patch is fine. p4raw-id: //depot/perl@16724
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-2/+2
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* NetWare tweaks from C Aditya <caditya@novell.com>Jarkko Hietaniemi2002-03-181-4/+25
| | | p4raw-id: //depot/perl@15292
* CopFILE / MacPerl_MPWFileNameChris Nandor2002-02-081-0/+7
| | | | | Message-ID: <pudge-10FC3D.16314108022002@onion.valueclick.com> p4raw-id: //depot/perl@14608
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-2/+7
| | | | | | | | | | | | Need to use CopXXXXX macros everywhere and add CopSTASH_free Add new scope type and add support for it to scope.c and scope stack dup-er in sv.c. Add savesharedpv(). Also zealous version of Win32's vmem.h to catch all the abuses. With this t/op/fork.t passes even with zealous checking and checker is point a finger at various threads/shared issues. PL_curcop->cop_io is still an issue. p4raw-id: //depot/perlio@14259
* Missed the =head1 additions.Jarkko Hietaniemi2002-01-031-1/+3
| | | p4raw-id: //depot/perl@14041
* Silence another ITHREAD 64bit INT/32bit PTR warning.Artur Bergman2001-09-101-1/+1
| | | p4raw-id: //depot/perl@11971
* Changes USE_THREADS to USE_5005THREADS in the entire source.Artur Bergman2001-08-271-4/+4
| | | | | | Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
* Integrate change #10448 from maintperl; lexicalsJarkko Hietaniemi2001-06-061-0/+2
| | | | | | | | | | | outside an eval"" weren't resolved correctly inside a subroutine definition inside the eval"" if they were not already referenced in the toplevel of the eval""-ed code p4raw-link: @10448 on //depot/maint-5.6/perl: 332ba4f98bc63c81fd7ba0d06432a7f903d716cf p4raw-id: //depot/perl@10449 p4raw-integrated: from //depot/maint-5.6/perl@10447 'merge in' cop.h (@9288..) t/op/misc.t (@10394..) op.c pp_ctl.c (@10412..)
* Re: sync sync sync: have I missed any patches?Tim Jenness2001-02-281-1/+1
| | | | | | | | In-Reply-To: <20010227140737.Y10633@chaos.wustl.edu> Message-ID: <Pine.LNX.4.30.0102271322070.8623-100000@lapaki.jach.hawaii.edu> Replace djSP with dSP. p4raw-id: //depot/perl@8963
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Lexical use open ... support:Nick Ing-Simmons2000-11-181-0/+1
| | | | | | | | | | | | add ->cop_io to COP structure in cop.h. Make mg.c and gv.c associate it with ${^OPEN}. Make lib/open.pm set it. Have sv.c, perl.c, pp_ctl.c, op.c manipulate it in a manner manner similar to ->cop_warnings. Have doio.c's do_open9 and pp_sys.c's pp_backticks use it as default and call new PerlIO_apply_layers(). Declare latter in perlio.h and define in perlio.c p4raw-id: //depot/perlio@7740
* Inside require() $^S was always left undefined.Ilya Zakharevich2000-10-031-0/+1
| | | | | | Subject: Re: Tiny 2-byte change to fix debugger's eval bug Message-ID: <20000927185449.A24927@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@7120
* Re: [ID 20000829.020] perl -e 'package; print __PACKAGE__' core dumps Gurusamy Sarathy2000-08-301-2/+2
| | | | | Message-Id: <200008300017.RAA25382@smtp3.ActiveState.com> p4raw-id: //depot/perl@6909
* Do away with array context, from Daniel Chetlin <daniel@chetlin.com>Jarkko Hietaniemi2000-08-081-1/+1
| | | | | | (either perlbug or p5p ate the original), plus regen perlapi and perltoc. p4raw-id: //depot/perl@6553
* dounwind() may cause POPSUB() to diddle the wrong PL_curpadGurusamy Sarathy2000-06-301-1/+2
| | | | | when @_ is modified, causing coredumps p4raw-id: //depot/perl@6291
* be more optimal about clearing @_Gurusamy Sarathy2000-06-081-3/+8
| | | p4raw-id: //depot/perl@6216
* @_ can't have junk in it even in the non-USE_ITHREADS case becauseGurusamy Sarathy2000-06-081-7/+3
| | | | | | caller() wants to populate @DB::args with it (causes a coredump in Carp::confess()) p4raw-id: //depot/perl@6214
* fix small eval"" memory leaks under USE_ITHREADSGurusamy Sarathy2000-06-021-8/+9
| | | p4raw-id: //depot/perl@6194
* call_method(...,G_EVAL) can longjmp() out if the method probingGurusamy Sarathy2000-05-281-0/+1
| | | | | failed (from Gisle Aas) p4raw-id: //depot/perl@6127
* under useithreads, PUSHLOOP must save PL_curpad for looking upGurusamy Sarathy2000-03-211-1/+3
| | | | | iterdata, since dounwind() may defer LEAVEs p4raw-id: //depot/perl@5847
* change#3511 was not defensive enough about try blocks, causingGurusamy Sarathy2000-03-111-0/+3
| | | | | | | bogus attempts to free closures, and thence, segfaults p4raw-link: @3511 on //depot/perl: 067f92a0e46641b4b3e89afcde43bf134105f7b7 p4raw-id: //depot/perl@5658
* fixes for most warnings identified by gcc -WallGurusamy Sarathy2000-03-051-2/+2
| | | p4raw-id: //depot/perl@5540
* more purification (pp_require() could access free memory; vdie()Gurusamy Sarathy2000-02-131-4/+9
| | | | | | | | could think message was random length when passed a null argument; utilize() didn't set up the hash for the method name leading to pp_method_named() accessing random state; PL_curpm wasn't zeroed properly) p4raw-id: //depot/perl@5072
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+30
| | | | | | | Stuhl <sho_pi@hotmail.com>); fix the markup format to be more flexible for better readability; add missing docs in sv.c; regenerate perltoc p4raw-id: //depot/perl@4915
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-13/+57
| | | p4raw-id: //depot/perl@4602