summaryrefslogtreecommitdiff
path: root/globals.c
Commit message (Collapse)AuthorAgeFilesLines
* If we have thread local storage, use it instead of posix_getspecific().Nicholas Clark2021-09-071-0/+8
| | | | | | | | | | | | Declare and use a variable PL_current_context to store a pointer to the thread's interpreter struct. Use this to implement implicit context undef ITHREADS, instead of a call to posix_getspecific(). For normal threaded code, this will eliminate function calls. For threaded code in shared objects (the typical configuration for Linux distribution builds) there still needs to be a function call to get the pointer to thread local variables, but there will only be one per function, not one per read of the variable.
* globals.c: Fix typo in commentKarl Williamson2020-12-211-1/+1
|
* Remove PERL_GLOBAL_STRUCTDagfinn Ilmari Mannsåker2020-07-201-9/+0
| | | | | | | | This was originally added for MinGW, which no longer needs it, and only still used by Symbian, which is now removed. This also leaves perlapi.[ch] empty, but we keep the header for CPAN backwards compatibility.
* regcomp.c: don't include INTERN.hDavid Mitchell2019-02-191-0/+7
| | | | | | | | | | | This file only needs including by globals.c; it was being included in regcomp.c too as the declarations in regcomp.h aren't included by perl.h and thus don't get pulled into globals.c. This was a confusing and hacky workaround. Instead, this commit causes globals.c to #include regcomp.h directly After this commit, only globals.c #includes INTERN.h
* Replace common Emacs file-local variables with dir-localsDagfinn Ilmari Mannsåker2015-03-221-6/+0
| | | | | | | | | | | | | | | | An empty cpan/.dir-locals.el stops Emacs using the core defaults for code imported from CPAN. Committer's work: To keep t/porting/cmp_version.t and t/porting/utils.t happy, $VERSION needed to be incremented in many files, including throughout dist/PathTools. perldelta entry for module updates. Add two Emacs control files to MANIFEST; re-sort MANIFEST. For: RT #124119.
* update the editor hints for spaces, not tabsRicardo Signes2012-05-291-2/+2
| | | | | This updates the editor hints in our files for Emacs and vim to request that tabs be inserted as spaces.
* Bump several file copyright datesSteffen Schwigon2012-01-191-1/+1
| | | | | | | Sync copyright dates with actual changes according to git history. [Plus run regen_perly.h to update the SHA-256 checksums, and regen/regcharclass.pl to update regcharclass.h]
* PATCH: Large omnibus patch to clean up the JRRT quotesTom Christiansen2008-11-021-2/+4
| | | | | | Message-ID: <25940.1225611819@chthon> Date: Sun, 02 Nov 2008 01:43:39 -0600 p4raw-id: //depot/perl@34698
* Add a new file, mathoms.c, to hold old code kept around for binarySteve Peters2005-10-281-23/+0
| | | | | | | compatability with previous versions of Perl. Change also includes various Makefile changes to compile the new file and link it into libperl. p4raw-id: //depot/perl@25866
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-2/+2
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* Add editor boilerplates to all C filesRafael Garcia-Suarez2005-05-101-0/+10
| | | | | (except the generated ones) p4raw-id: //depot/perl@24440
* Comment describing purpose.Nick Ing-Simmons2004-08-041-0/+18
| | | p4raw-id: //depot/perl@23195
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+1
| | | | | | | (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
* Reverse copyright update (#18801) for files not changed in 2003.Hugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18807
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* Add missing Tolkien quotes to *.cAudrey Tang2002-02-201-0/+5
| | | | | Message-Id: <20020220231312.GA775@not.autrijus.org> p4raw-id: //depot/perl@14802
* 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
* Add at least the "important" PerlIO_xxxx functions to embed.plNick Ing-Simmons2001-12-221-1/+1
| | | | | so that they get implicit pTHX_ and we can avoid slow dTHX. p4raw-id: //depot/perlio@13852
* remove deprecated PERL_OBJECT cruft, it has long since stoppedGurusamy Sarathy2001-08-311-68/+0
| | | | | working in 5.7.x p4raw-id: //depot/perl@11803
* As suggested in Gurusamy Sarathy2001-06-121-0/+2
| | | | | | Subject: Re: ext/ + -Wall Message-Id: <200106120634.f5C6YVM07246@smtp3.ActiveState.com> p4raw-id: //depot/perl@10535
* ext/ + -WallDoug MacEachern2001-06-121-2/+0
| | | | | Message-ID: <Pine.LNX.4.21.0106112212261.24181-100000@mako.covalent.net> p4raw-id: //depot/perl@10534
* Integrate change #9154 from maintperl to mainline.Jarkko Hietaniemi2001-03-141-0/+9
| | | | | | | | | | | | PerlIO_stdoutf() wasn't properly supported under PERL_IMPLICIT_SYS (caused Storable 1.0.10 to break on windows) p4raw-link: @9154 on //depot/maint-5.6/perl: 241ea079897f140daac27d059c9935e78ec152ec p4raw-id: //depot/perl@9156 p4raw-integrated: from //depot/maint-5.6/perl@9155 'copy in' globals.c (@5902..) 'merge in' global.sym (@8599..) iperlsys.h (@8800..) objXSUB.h perlapi.c (@8993..) embed.h embed.pl proto.h (@9108..)
* force linkage of the function wrappers for globals in change#4878Gurusamy Sarathy2000-01-241-0/+2
| | | | | p4raw-link: @4878 on //depot/perl: 6f4183fe04888927cb36b966262c959c5166404b p4raw-id: //depot/perl@4879
* missing files in previous submitGurusamy Sarathy1999-12-311-0/+2
| | | p4raw-id: //depot/perl@4744
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-9/+6
| | | p4raw-id: //depot/perl@4602
* more GCC v2.95 induced adjustmentsGurusamy Sarathy1999-10-271-1/+3
| | | p4raw-id: //depot/perl@4462
* misc PERL_OBJECT tweaks; perlcore.dll is now perl56.dllGurusamy Sarathy1999-07-281-1/+8
| | | p4raw-id: //depot/perl@3819
* yet more cleanups of the PERL_OBJECT, MULTIPLICITY and USE_THREADSGurusamy Sarathy1999-07-121-8/+9
| | | | | | | | | | | | | | | | builds; passing the implicit context is unified among the three flavors; PERL_IMPLICIT_CONTEXT is auto-enabled under all three flavors (see the top of perl.h) for testing; all varargs functions foo() have a va_list-taking variant vfoo() for generating the context-free versions; the PERL_OBJECT build should now be hyper-compatible with CPAN extensions (C++ is totally out of the picture) result has only been tested on Windows TODO: write docs on the THX rationale and idiomatic usage of the Perl API p4raw-id: //depot/perl@3667
* more PERL_OBJECT cleanups (changes still untested on Unix!)Gurusamy Sarathy1999-07-081-13/+9
| | | p4raw-id: //depot/perl@3660
* somewhat untested PERL_OBJECT cleanups (C++isms mostlyGurusamy Sarathy1999-06-271-2/+24
| | | | | | | | | 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
* win32 build fixesGurusamy Sarathy1999-06-101-14/+0
| | | p4raw-id: //depot/perl@3525
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | 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-11/+5
| | | | | | | | | | | | 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
* phase 1 of somewhat major rearrangement of PERL_OBJECT stuffGurusamy Sarathy1998-10-301-1406/+8
| | | | | | | | | | (objpp.h is gone, embed.pl now does some of that); objXSUB.h should soon be automated also; the global variables that escaped the PL_foo conversion are now reined in; renamed MAGIC in regcomp.h to REG_MAGIC to avoid collision with the type of same name; duplicated lists of pp_things in various places is now gone; result has only been tested on win32 p4raw-id: //depot/perl@2133
* part 1 of PERL_OBJECT fixes for new var namesGurusamy Sarathy1998-07-211-9/+9
| | | p4raw-id: //depot/perl@1607
* added patch, tweaked PERL_OBJECT thingsGraham Barr1998-07-131-0/+4
| | | | | | Message-Id: <19980712195747.C493@pobox.com> Subject: [ PATCH perl5.004_72] patch to add qr// p4raw-id: //depot/perl@1461
* various tweaks for PERL_OBJECT build & testGurusamy Sarathy1998-07-121-0/+2
| | | p4raw-id: //depot/perl@1450
* add patch, along with all the missing bits, and doc tweaksIlya Zakharevich1998-07-111-0/+2
| | | | | | Message-Id: <199807092247.SAA06314@monk.mps.ohio-state.edu> Subject: Re: [PATCH 5.004_71] Secure RE update p4raw-id: //depot/perl@1444
* undo ck_sysread() changes#1319,1337 in preparation for a muchGurusamy Sarathy1998-07-061-3/+3
| | | | | | | | simpler fix p4raw-link: @1337 on //depot/perl: 77808da1249dc49b6d1ea4171ebce9989b18ea3f p4raw-link: @1319 on //depot/perl: 5081475eefaf24307ce7eaf4c87aafd588b37e98 p4raw-id: //depot/perl@1345
* add ck_sysread() for better sysread/read/recv sanityGurusamy Sarathy1998-07-051-3/+3
| | | p4raw-id: //depot/perl@1319
* [win32] add AS patch#24, remove one other instance of error_noGurusamy Sarathy1998-06-031-1/+1
| | | | | that was missed (patch#23 was intentionally skipped) p4raw-id: //depot/win32/perl@1071
* [asperl] fix various shenanigans with C<environ>, BC and VC builds now passGurusamy Sarathy1998-05-291-5/+1
| | | | | all tests p4raw-id: //depot/asperl@1049
* [asperl] more changes to satisfy non-debug VC build (C-API doesn'tGurusamy Sarathy1998-05-261-10/+0
| | | | | build, and the testsuite still won't run) p4raw-id: //depot/asperl@1035
* [asperl] add AS patch#20 (exposes more global constants)Gurusamy Sarathy1998-05-011-0/+10
| | | p4raw-id: //depot/asperl@908
* [asperl] add AS patch#16Gurusamy Sarathy1998-04-201-44/+12
| | | p4raw-id: //depot/asperl@892
* [asperl] various changes to get asperl working under BorlandGurusamy Sarathy1998-03-161-1/+1
| | | | | (passes all tests when built under PERL_OBJECT) p4raw-id: //depot/asperl@809
* [asperl] added AS patch#9Gurusamy Sarathy1998-02-261-47/+37
| | | p4raw-id: //depot/asperl@591
* [asperl] added AS patch#5 (patch #4 was intentionally skipped afterGurusamy Sarathy1998-02-141-0/+1
| | | | | discussion) p4raw-id: //depot/asperl@521
* [asperl] added AS patch#3Douglas Lankshear1998-02-011-4/+10
| | | | | | | | | | | | | | | | 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/+1500
| | | p4raw-id: //depot/asperl@443