summaryrefslogtreecommitdiff
path: root/scope.h
Commit message (Collapse)AuthorAgeFilesLines
* Sprinkle some copyrights (use the oldest timestamp toJarkko Hietaniemi2002-01-241-0/+9
| | | | | | be found in the repository, which is most often not right, but at least consistent) p4raw-id: //depot/perl@14400
* Use PerlMemShared for CopSTASHPV and CopFILE. MUCH harder than it sounds!Nick Ing-Simmons2002-01-141-2/+4
| | | | | | | | | | | | 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-0/+2
| | | p4raw-id: //depot/perl@14041
* Integrate changes #9584,9587 from maintperl into mainline.Jarkko Hietaniemi2001-04-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | keep eval"" CVs alive until the end of the statement in which they're called add README.macos (from Chris Nandor) tyop in change#9555 p4raw-link: @9587 on //depot/maint-5.6/perl: d72c2fc956b5cb46ede17d06f89a463c78f1cf5f p4raw-link: @9584 on //depot/maint-5.6/perl: e6fbcc36a54a8afd8dbcdcb9a8d8e178df530b97 p4raw-link: @9555 on //depot/perl: 6a0af2f17bcde4767b90a72eff7083c5effff21d p4raw-id: //depot/perl@9588 p4raw-branched: from //depot/maint-5.6/perl@9583 'branch in' README.macos p4raw-integrated: from //depot/maint-5.6/perl@9583 'copy in' pod/perlfaq9.pod (@9585..) 'merge in' scope.h (@8568..) pod/perl.pod (@8986..) MANIFEST (@9227..) win32/Makefile (@9286..) pp_ctl.c scope.c (@9288..) global.sym (@9289..) embed.h embed.pl objXSUB.h perlapi.c proto.h (@9292..) pod/buildtoc.PL (@9312..) win32/makefile.mk (@9495..) sv.c (@9496..) pod/perlguts.pod (@9514..)
* Catch die in %SIG handler and unblock the signal before re-dying.Nick Ing-Simmons2001-01-111-1/+1
| | | | | | | | This make Linux work _without_ sigsetjmp(). Turn off sigsetjmp() to see what else it does. May need Configure probe for sigprocmask() if anything has sigaction() but not sigprocmask(). p4raw-id: //depot/perlio@8407
* Allow control of 2nd arg to segsetjmp() via -DSCOPE_SAVES_SIGNAL_MASK.Nick Ing-Simmons2001-01-101-2/+6
| | | | | | | | | (So Alan and Ilya can try setting via hints.) Verified Linux "works" with it true and fails to re-enable SIGINT if false. Restoring sigmask in Perl_sighandler() if handler dies is not equivalent; doing the save everywhere seems to restart read() correctly, but just doing it once "round" the handler does not. p4raw-id: //depot/perlio@8401
* C<foreach my $x ...> in pseudo-fork()ed process may diddleGurusamy Sarathy2000-11-251-0/+2
| | | | | | | | | | parent's memory; fix it by keeping track of the actual pad offset rather than a raw pointer (this change is probably also relevant to non-ithreads case to avoid fallout from reallocs of the pad array, but is currently only enabled for the ithreads case in the interests of minimal disruption to existing "well tested" code) p4raw-id: //depot/perl@7858
* Integrate scope.h@7790 from perlio, works better with multiplicity.Jarkko Hietaniemi2000-11-211-5/+5
| | | | | | p4raw-link: @7790 on //depot/perlio: efeab7a8047d7136a0235c1cc7329f57d6a8bfdd p4raw-id: //depot/perl@7792 p4raw-integrated: from //depot/perlio@7791 'copy in' scope.h (@7789..)
* The first step in removing recursion from the REx engineIlya Zakharevich2000-11-201-3/+6
| | | | | Message-ID: <20001119223026.A5165@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@7760
* fix small eval"" memory leaks under USE_ITHREADSGurusamy Sarathy2000-06-021-5/+11
| | | p4raw-id: //depot/perl@6194
* make change#3386 a build-time option (avoids problems due toGurusamy Sarathy2000-02-201-19/+58
| | | | | | | perl_run() longjmping out) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@5162
* fix pad_alloc panic from C<my $w; sub { my($i) = @_; sub { $w } }>Gurusamy Sarathy2000-02-041-0/+14
| | | p4raw-id: //depot/perl@4970
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+18
| | | | | | | 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
* introduce save_I8() for saving byte valuesGurusamy Sarathy1999-12-081-0/+2
| | | p4raw-id: //depot/perl@4665
* avoid PTR->IV cast warningsGurusamy Sarathy1999-12-011-1/+1
| | | p4raw-id: //depot/perl@4605
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-0/+2
| | | p4raw-id: //depot/perl@4602
* avoid stash pointers in optree under USE_ITHREADSGurusamy Sarathy1999-11-111-0/+2
| | | p4raw-id: //depot/perl@4546
* another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-0/+8
| | | | | | | | | 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
* avoid inefficiency in change#3386 (every longjmp() was followedGurusamy Sarathy1999-10-141-29/+37
| | | | | | | by an avoidable call to setjmp()) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@4372
* revert SAVEDESTRUCTOR() to accepting void(*)(void*) for sourceGurusamy Sarathy1999-10-101-2/+7
| | | | | | compatibility; introduce SAVEDESTRUCTOR_X() that accepts void(*)(pTHX_ void*) p4raw-id: //depot/perl@4339
* make die/warn and other diagnostics go to wherever STDERR happensGurusamy Sarathy1999-10-061-1/+1
| | | | | | to point at; change places that meant Perl_debug_log rather than PerlIO_stderr() p4raw-id: //depot/perl@4302
* fixups for sundry warnings about function pointersGurusamy Sarathy1999-07-121-2/+1
| | | p4raw-id: //depot/perl@3669
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-4/+0
| | | p4raw-id: //depot/perl@3660
* somewhat untested PERL_OBJECT cleanups (C++isms mostlyGurusamy Sarathy1999-06-271-1/+1
| | | | | | | | | gone from the public API); PERL_OBJECT builds again on windows TODO: namespace-clean the typedefs in iperlsys.h and elsewhere; remove C++ remnants from public headers p4raw-id: //depot/perl@3553
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-6/+6
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-7/+4
| | | | | | | | | | | | 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
* remove _() non-ansismGurusamy Sarathy1999-06-021-3/+3
| | | p4raw-id: //depot/perl@3518
* fixing eval in the compilerVishal Bhatia1999-05-281-10/+22
| | | | | | To: perl5-porters@perl.org Message-ID: <JDIKFDKKLGHHBAAA@my-deja.com> p4raw-id: //depot/cfgperl@3491
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-3/+2
| | | | | | | | | | needed to open myconfig.SH rather than myconfig; sundry adjustments to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it work under win32; getenv_sv() changed to getenv_len() since SVs aren't visible in the lower echelons; remove bogus exports from config.sym; PERL_OBJECT-ness for C++ exception support; null out IoDIRP in filter_del() or sv_free() will attempt to close it p4raw-id: //depot/perl@3387
* gutsupport for C++ exceptionsChip Salzenberg1999-05-111-12/+92
| | | | | | Message-ID: <19990309115157.E7911@perlsupport.com> Subject: [PATCH 5.005] Flexible Exceptions p4raw-id: //depot/perl@3386
* properly restore PL_rsfp_filters after requireGurusamy Sarathy1998-10-251-30/+32
| | | p4raw-id: //depot/perl@2051
* SSNEW() API for allocating memory on the savestackAlbert Dvornik1998-09-231-0/+18
| | | | | | Message-Id: <tqemtae338.fsf@puma.genscan.com> Subject: [PATCH 5.005_51] (was: why SAVEDESTRUCTOR()...) p4raw-id: //depot/perl@1852
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-2/+2
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* PL_ prefix to all perlvars, part1Nick Ing-Simmons1998-07-181-26/+26
| | | | | Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT p4raw-id: //depot/ansiperl@1532
* tweaks to overloaded constants (change#1259)Gurusamy Sarathy1998-06-301-15/+20
| | | | | p4raw-link: @1259 on //depot/perl: b3ac6de7f0c7a63b73f1cf3ea9e371470f7d1cb0 p4raw-id: //depot/perl@1265
* add missing SSCHECK() to rectify faulty SSPUSH*() logic in change#1259Gurusamy Sarathy1998-06-291-0/+2
| | | | | p4raw-link: @1259 on //depot/perl: b3ac6de7f0c7a63b73f1cf3ea9e371470f7d1cb0 p4raw-id: //depot/perl@1261
* added patch for overloading constants, made PERL_OBJECT-awareIlya Zakharevich1998-06-291-1/+9
| | | | | Message-Id: <199806270328.XAA21088@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1259
* back out previous change (it breaks PERL_OBJECT)Gurusamy Sarathy1998-06-151-110/+27
| | | p4raw-id: //depot/perl@1136
* added patch, fixed typo, reworked documentationJoshua Pritikin1998-06-151-27/+110
| | | | | | Message-Id: <H00000e500071aa3@MHS> Subject: [PATCH 5.004_66] JMPENV! p4raw-id: //depot/perl@1135
* [asperl] various changes to get asperl working under BorlandGurusamy Sarathy1998-03-161-2/+4
| | | | | (passes all tests when built under PERL_OBJECT) p4raw-id: //depot/asperl@809
* [win32] integrate mainline changesGurusamy Sarathy1998-03-071-1/+3
|\ | | | | p4raw-id: //depot/asperl@799
| * [win32] fix misapplied hunks in change#614Gurusamy Sarathy1998-03-021-1/+1
| | | | | | | | | | p4raw-link: @614 on //depot/win32/perl: 161b7d1635bc830b9c733355ab423626eadf9ae9 p4raw-id: //depot/win32/perl@616
| * [win32] this one with adjusted test numbersStephen McCamant1998-03-021-0/+2
| | | | | | | | | | | | Message-Id: <m0xjWFq-000EZeC@alias-2.pr.mcs.net> Subject: [PERL] [PATCH] Fix local $a[0] and local $h{a} p4raw-id: //depot/win32/perl@614
* | [asperl] bring ASPerl uptodate with mainline changesGurusamy Sarathy1998-02-141-0/+15
|\ \ | |/ | | p4raw-id: //depot/asperl@524
| * Missing WITH_THR from new deb() in ENTER/LEAVE caused buildsMalcolm Beattie1998-02-121-4/+4
| | | | | | | | | | with -DUSE_THREADS -DDEBUGGING to fail. p4raw-id: //depot/perl@512
| * [win32] fix extra LEAVE when require failsGurusamy Sarathy1998-02-121-0/+15
| | | | | | | | | | | | Message-Id: <199802102321.SAA15346@aatma.engin.umich.edu> Subject: Re: evals and requires make seg-fault with bad require file p4raw-id: //depot/win32/perl@498
| * [win32] foo() -> PerlGroup_foo() patch from ActiveStateGurusamy Sarathy1998-01-191-4/+4
| | | | | | p4raw-id: //depot/win32/perl@433
* | [asperl] added AS patch#3Douglas Lankshear1998-02-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Message-Id: <01BD2EF2.53433A40.dougl@ActiveState.com> To: "'Gurusamy Sarathy'" <gsar@umich.edu> Here's an additional diff against //depot/asperl The field name mg_length was changed back to mg_len The function name mg_len was change to mg_length The need for sort_mutex removed thanks to the code derived from Tom Horsley's work. -- Doug p4raw-id: //depot/asperl@451
* | [asperl] added AS patch#2Gurusamy Sarathy1998-01-301-0/+5
| | | | | | p4raw-id: //depot/asperl@443
* | [asperl] Created new branch from win32@396, added AS patch#1Gurusamy Sarathy1998-01-301-4/+4
|/ | | | | p4raw-link: @396 on //depot/win32/perl: e7152ba2733b9227708ca768b222144415c13c66 p4raw-id: //depot/asperl@441