summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove all #ifdef MACOS_TRADITIONAL code in core and non-dual-life XS code.Nicholas Clark2009-04-271-26/+5
| | | | | | | | (MacOS support was removed from MakeMaker in 6.22, and merged to blead on 15th December 2004 with 5dca256ec738057dc331fb644a93eca44ad5fa14. After this point MacOS wouldn't even have been able to build the perl binary, because it would not have been able to build DynaLoader. If anyone wishes to resurrect MacOS, start by reversing this commit and the relevant part of that commit.)
* Make util.c compile on systems without getcwd()Rafael Garcia-Suarez2009-03-021-2/+3
|
* Rename ext/Time/HiRes to ext/Time-HiResNicholas Clark2009-02-091-1/+1
|
* Update the documentation of get_sv() to note that it calls Perl_gv_fetchpv(),Nicholas Clark2009-01-211-1/+1
| | | | | and hence the 'create' argument is actually 'flags'. Fix core code and documentation that used TRUE or FALSE to use 0 or GV_ADD.
* about warnings if forks fail in Perl_my_popenSlaven Rezic2009-01-191-1/+5
|
* Re: [PATCH] standardize save/restore of errno & vaxc$errnoChip Salzenberg2008-12-091-2/+2
| | | | | Message-ID: <20081205213219.GH16081@tytlal.topaz.cx> p4raw-id: //depot/perl@35059
* standardize save/restore of errno & vaxc$errnoChip Salzenberg2008-12-051-17/+10
| | | | | Message-ID: <20081127070141.GD17663@tytlal.topaz.cx> p4raw-id: //depot/perl@35018
* Eliminate setenv_getix()Jerry D. Hedden2008-12-011-25/+8
| | | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510812010947p7df19438kc19c279bcffe4b83@mail.gmail.com> Date: Mon, 1 Dec 2008 12:47:35 -0500 p4raw-id: //depot/perl@34971
* setenv_getix() is not used anywhere other than util.c (and the "specialNicholas Clark2008-11-261-2/+2
| | | | | | biologist word for stable" Msql-Mysql-modules-1.2219) so make it static. p4raw-id: //depot/perl@34940
* Just s/Perl_/S_/ isn't good enough - you also need to add the C<static>Nicholas Clark2008-11-261-1/+1
| | | p4raw-id: //depot/perl@34934
* pidgone() is only used in util.c, so it can be static.Nicholas Clark2008-11-261-1/+1
| | | p4raw-id: //depot/perl@34932
* vdie() isn't used anywhere aside from util.c, so it can be static.Nicholas Clark2008-11-261-1/+1
| | | p4raw-id: //depot/perl@34923
* 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
* Explicitly specify some printf formats for constant strings.Rafael Garcia-Suarez2008-11-021-2/+2
| | | | | | This is mostly to silence gcc's warning, "format not a string literal and no format arguments". p4raw-id: //depot/perl@34694
* Add MUTABLE_GV(), and eliminate (V *) casts in *.c.Nicholas Clark2008-10-311-1/+2
| | | | | | Can't easily do gv.h, as GvGP() (at least) needs to split into two macros - one const for reading, one non-const for writing. p4raw-id: //depot/perl@34679
* Eliminate (SV *) casts from sv.c and [tu]*.c, except for the cast inNicholas Clark2008-10-301-7/+7
| | | | | Perl_sv_magicext(), which is documented. p4raw-id: //depot/perl@34671
* Use pvs macros instead of pvn where possible.Marcus Holland-Moritz2008-10-291-3/+3
| | | p4raw-id: //depot/perl@34653
* Eliminate (AV *) casts in *.c.Nicholas Clark2008-10-291-6/+6
| | | p4raw-id: //depot/perl@34650
* Eliminate (HV *) casts in u*.c.Nicholas Clark2008-10-281-35/+35
| | | p4raw-id: //depot/perl@34624
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Make C++ compilers happy #1: "typename" is a C++ keyword.Marcus Holland-Moritz2008-10-241-7/+7
| | | p4raw-id: //depot/perl@34574
* Add PERL_ARGS_ASSERT_MEM_LOG_COMMON to S_mem_log_common().Marcus Holland-Moritz2008-10-241-0/+3
| | | p4raw-id: //depot/perl@34570
* Add SV allocation tracing to -Dm and PERL_MEM_LOGMarcus Holland-Moritz2008-10-241-8/+42
| | | | | Message-ID: <20081022013731.23b5a2e5@r2d2> p4raw-id: //depot/perl@34568
* Refactor Perl_mem_log_ functionsMarcus Holland-Moritz2008-10-241-97/+66
| | | | | Message-ID: <20081022013721.374a490c@r2d2> p4raw-id: //depot/perl@34567
* Upgrade to version 0.76 by John PeacockRafael Garcia-Suarez2008-07-151-8/+15
| | | | | | Fix segfault in serialized version objects (bug #56606) p4raw-id: //depot/perl@34142
* [perl #53746] bug with index() matching beyond end of stringDave Mitchell2008-05-301-2/+2
| | | | | | | | An off-by-one error meant that index($str,...) was effectively being executed as index("$str\0", ...). Probably introduced by change #26511. p4raw-link: @26511 on //depot/perl: 4c8626beeba549aaf3f327729c56a599716ee8b7 p4raw-id: //depot/perl@33952
* Perl_croak_nocontext() is called with NULL indirectly from Steve Peters2008-03-081-1/+0
| | | | | some XS-based modules. p4raw-id: //depot/perl@33453
* Re: interrupting system() with signal depends on signal handlerSteffen Ullrich2008-03-021-0/+1
| | | | | Message-ID: <47C45DB4.9060306@gmx.net> p4raw-id: //depot/perl@33408
* Do the memory debug header fixup earlier to avoid valgrind screamingNicholas Clark2008-02-271-4/+14
| | | | | | | under -Dm. Also, temporarily disable memory logging during thread memory freeing, as otherwise we try to log using memory we already freed. p4raw-id: //depot/perl@33388
* Chainsaw DEBUG_S out, as suggested by Vincent Pit.Rafael Garcia-Suarez2008-02-261-10/+0
| | | p4raw-id: //depot/perl@33376
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-1/+120
| | | | | | | | | | | | 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
* util.c: some constingSteven Schubiger2008-01-281-3/+3
| | | | | Message-ID: <20080125001052.GA29980@refcnt.homeunix.org> p4raw-id: //depot/perl@33083
* Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).Nicholas Clark2008-01-051-1/+1
| | | p4raw-id: //depot/perl@32861
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-1/+1
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-1/+1
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set inNicholas Clark2008-01-031-1/+1
| | | | | | the flags. Move its implementation just ahead of sv_2mortal()'s for CPU cache locality. Refactor all code that can be to use this. p4raw-id: //depot/perl@32818
* Add a new function newSVpvn_flags(), which takes a third parameter ofNicholas Clark2008-01-021-2/+1
| | | | | | | | | | flag bits. Right now the only flag bit is SVf_UTF8, which will call SvUTF8_on() on the new SV for you. Provide a wrapper newSVpvn_utf8(), which takes a boolean, and passes in SVf_UTF8 if that is true. Refactor the core to use it where possible. It makes the source code clearer and smaller, but seems to be swings and roundabouts on object code size. p4raw-id: //depot/perl@32807
* Make struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,Nicholas Clark2008-01-021-1/+1
| | | | | | and regexp reference counting is via the regular SV reference counting. This was not as easy at it looks. p4raw-id: //depot/perl@32804
* First class regexps.Nicholas Clark2007-12-281-4/+2
| | | p4raw-id: //depot/perl@32751
* Regexps are now orange.Nicholas Clark2007-12-271-1/+1
| | | | | (Correct a comparison of $] with 5.011 in B.pm) p4raw-id: //depot/perl@32740
* Nullch and others were still alive and well in some of the operatingSteve Peters2007-12-231-1/+1
| | | | | | system specific directories. I think I've chainsawed all of them now, but I can't guarantee that it compiles anywhere from win32. p4raw-id: //depot/perl@32713
* With change 32676 moving the HvSHAREKEYS_on() into Perl_sv_upgrade()Nicholas Clark2007-12-201-7/+0
| | | | | calls to it can be eliminated from the version code. p4raw-id: //depot/perl@32678
* Bug fix for storing shared objects in shared structuresJerry D. Hedden2007-11-081-0/+20
| | | | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510711061136t52a1fe62waf384c4551612181@mail.gmail.com> (core patch only) p4raw-id: //depot/perl@32241
* Bring version.pm core into compliance with CPAN releaseJohn Peacock2007-10-251-2/+2
| | | | | Message-ID: <471FF9BD.40204@havurah-software.org> p4raw-id: //depot/perl@32189
* In Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't useNicholas Clark2007-10-171-1/+2
| | | | | | | strlcpy() to forcibly truncate a string to a known length, when memcpy() and a write of '\0' will not only make the intent clear, but also do that exact job more efficiently. p4raw-id: //depot/perl@32125
* hv_stores() on a literal string is now fractionally more efficient thanNicholas Clark2007-09-211-13/+13
| | | | | hv_store(). p4raw-id: //depot/perl@31938
* Silence a load of "value computed is not used" warningsRafael Garcia-Suarez2007-09-211-13/+13
| | | p4raw-id: //depot/perl@31936
* version-0.73 (was Re: Change 31920: Don't use ~0 as a versionJohn Peacock2007-09-211-9/+35
| | | | | Message-ID: <46F31B47.6030601@cpan.org> p4raw-id: //depot/perl@31934
* SvRX() and SvRXOK() macrosÆvar Arnfjörð Bjarmason2007-06-181-0/+20
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706172033h1908aa0ge15698204e0b79ed@mail.gmail.com> p4raw-id: //depot/perl@31409
* Patches to compile perl on Cray XT4 Catamount/Qk, by JarkkoRafael Garcia-Suarez2007-06-171-4/+20
| | | p4raw-id: //depot/perl@31404