summaryrefslogtreecommitdiff
path: root/cop.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
* cloning the stack (part 1)Gurusamy Sarathy1999-11-151-4/+5
| | | p4raw-id: //depot/perl@4588
* sundry cleanups for cloned interpreters (only known failure modeGurusamy Sarathy1999-11-141-0/+6
| | | | | | is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
* avoid stash pointers in optree under USE_ITHREADSGurusamy Sarathy1999-11-111-5/+7
| | | p4raw-id: //depot/perl@4546
* another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-6/+33
| | | | | | | | | in COP; revert parts of change#4485 and s/xcv_filegv/xcv_file/ (CvFILE() may yet come in handy somewhere); adjust compiler doodads to suit p4raw-link: @4485 on //depot/perl: b195d4879f55e1610299cb9b1b55356940c2a577 p4raw-id: //depot/perl@4545
* macros for COP.cop_filegv accessGurusamy Sarathy1999-11-011-0/+8
| | | p4raw-id: //depot/perl@4505
* fix POPSTACK panics that ensued from bad interaction betweenGurusamy Sarathy1999-10-141-1/+0
| | | | | | | | | runlevels and stack of stacks (change#3988 done right); basically, we pop the runlevel if the stacklevel is not the same one we started the runlevel with p4raw-link: @3988 on //depot/perl: a7c6d24429ab2b6db54575a3bdc62c7ed9f881cf p4raw-id: //depot/perl@4376
* POPSUB() gave up the refcount to the CV before LEAVE had a chance toGurusamy Sarathy1999-10-091-5/+12
| | | | | | | clear entries in the CV's pad, leading to coredumps when CV had no other references to it; this is a slightly edited version of the patch suggested by Russel O'Connor <roconnor@world.std.com> p4raw-id: //depot/perl@4321
* revert POP{SUB,LOOP}{1,2} logic to the simpler pre-5.003_24Gurusamy Sarathy1999-10-081-38/+21
| | | | | | situation (assumptions about cx invalidation are not valid anymore) p4raw-id: //depot/perl@4320
* change#3728 was flawed (loop contexts saw the wrong statementGurusamy Sarathy1999-10-071-2/+2
| | | | | | | | | | | | | info, causing loop control constructs to not find the label); disable OP_SETSTATE entirely and add a fix that is specifically targetted at disabling the OP_LINESEQ optimization in else BLOCK, which was what the original patch was supposed to fix TODO: remove the remainder of the setstate logic if it can't be used anywhere else (it isn't used anywhere now) p4raw-link: @3728 on //depot/perl: 7399586d384137f7ae66bcc82a83b0df7dd429e5 p4raw-id: //depot/perl@4309
* make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-3/+3
| | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* avoid clearing @_ at all for faster subroutine calls; fix bugsGurusamy Sarathy1999-09-191-5/+10
| | | | | | in passing around references to @_, eg C<sub foo { \@_ }>; add tests for the same p4raw-id: //depot/perl@4195
* fix memory leak in C<sub f { @_ = 1 } f() while 1>Gurusamy Sarathy1999-09-081-0/+1
| | | p4raw-id: //depot/perl@4102
* initial implementation of lvalue subroutines (slightly fixedGurusamy Sarathy1999-09-051-1/+4
| | | | | | version of patch suggested by Ilya Zakharevich, which in turn is based on the one suggested by Tuomas J. Lukka <lukka@iki.fi>) p4raw-id: //depot/perl@4081
* New lightweight Carp has a require. If Carp is used in a __DIE__ handlerNick Ing-Simmons1999-08-141-0/+1
| | | | | | | | | | | this causes a POPSTACK panic. The problem seems to be that although die_where() has unwound the tail of perl_vdie() top_env setjmp has been set to resume execution there. Avoiding setting CATCH_SET(TRUE) in call_sv() avoids this. So invent a new G_NOCATCH flag to disable messing with CATCH_SET() in call_sv, use it in perl_vdie(). Add test to op/eval.t which will fail (panic) if bug comes back. >>> I AM NOT CONVINCED THIS IS CORRECT LONG TERM FIX <<< p4raw-id: //depot/perl@3988
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-2/+2
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* name PL_in_eval bitsHugo van der Sanden1999-05-241-0/+6
| | | | | Message-Id: <199905231535.QAA00032@crypt.compulink.co.uk> p4raw-id: //depot/perl@3457
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124