summaryrefslogtreecommitdiff
path: root/handy.h
Commit message (Collapse)AuthorAgeFilesLines
* Add a macro MUTABLE_PTR(p), which on (non-pedantic) gcc will not castNicholas Clark2008-10-271-0/+7
| | | | | | | | | | away const, returning a void *. Add MUTABLE_SV(sv) which uses this, and replace all (SV *) casts either with MUTABLE_SV(sv), or (const SV *). This probably still needs some work - assigning to SvPVX() and SvRV() is now likely to generate a casting error. The core doesn't do this. But as-is it's finding bugs that can be fixed. p4raw-id: //depot/perl@34605
* Make sure Perl_mem_log_(?:alloc|realloc|free) have C linkage,Marcus Holland-Moritz2008-10-261-4/+5
| | | | | | | | | | so modules like Digest::MD5, that are including perl.h from within an 'extern "C"' block, will actually see them when building with a C++ compiler. Also make sure that Perl_mem_log_(?:new|del)_sv are only seen by sv.c. p4raw-id: //depot/perl@34598
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Make C++ compilers happy #4: move cast so Newc() andMarcus Holland-Moritz2008-10-241-7/+7
| | | | | Renewc() will return the correct type under PERL_MEM_LOG. p4raw-id: //depot/perl@34577
* Make C++ compilers happy #1: "typename" is a C++ keyword.Marcus Holland-Moritz2008-10-241-2/+2
| | | p4raw-id: //depot/perl@34574
* Add SV allocation tracing to -Dm and PERL_MEM_LOGMarcus Holland-Moritz2008-10-241-1/+6
| | | | | Message-ID: <20081022013731.23b5a2e5@r2d2> p4raw-id: //depot/perl@34568
* Refactor Perl_mem_log_ functionsMarcus Holland-Moritz2008-10-241-2/+12
| | | | | Message-ID: <20081022013721.374a490c@r2d2> p4raw-id: //depot/perl@34567
* Add probes for *time64 () functionsH.Merijn Brand2008-10-031-1/+9
| | | | | Add missing config vars p4raw-id: //depot/perl@34456
* Add probes for LOCALTIME_max and LOCALTIME_min (y2038 project)H.Merijn Brand2008-09-151-1/+1
| | | p4raw-id: //depot/perl@34363
* Probe for timegmH.Merijn Brand2008-07-071-1/+1
| | | p4raw-id: //depot/perl@34107
* Part one of y2038 changes for SchwernH.Merijn Brand2008-07-071-1/+1
| | | p4raw-id: //depot/perl@34105
* If the C library provides malloc_size(), we can use that in the sameNicholas Clark2008-02-261-1/+1
| | | | | | | places as Perl's malloced_size(), except that we need to be careful of any PERL_TRACK_MEMPOOL manipulations in force. Wrap both as Perl_safesysmalloc_size(), to give a consistent name and interface. p4raw-id: //depot/perl@33379
* The return of USE_DTRACEH.Merijn Brand2008-01-231-1/+1
| | | p4raw-id: //depot/perl@33045
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-0/+6
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Add editor blocks to some header files.Marcus Holland-Moritz2008-01-011-0/+9
| | | p4raw-id: //depot/perl@32793
* Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_naNicholas Clark2007-12-221-6/+8
| | | | | | | when PERL_CORE is defined. (Which, "obviously", is only in code within the perl source tree, which we control). Nullop remains, and would be moderately invasive to remove. p4raw-id: //depot/perl@32707
* Fix up copyright years for files modified in 2007.Nicholas Clark2007-11-071-1/+1
| | | p4raw-id: //depot/perl@32237
* Optimise the logic in isPRINT(), possible following Jarkko's bugfixNicholas Clark2007-10-061-1/+1
| | | | | | of change 10855. (to the implementation added in change 18) Nothing that a decent compiler optimiser would have missed. p4raw-id: //depot/perl@32041
* Add a new function Perl_hv_common_key_len(), which contains theNicholas Clark2007-09-201-2/+8
| | | | | | | | manipulations to convert negative lengths to positive length + UTF-8 flag. hv_delete(), hv_exists(), hv_fetch(), hv_store() and hv_store_flags() all become mathoms. The macros hv_fetchs() and hv_stores() call hv_common() directly. p4raw-id: //depot/perl@31931
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-1/+1
| | | p4raw-id: //depot/perl@31112
* stop the cargo cult of (MEM_SIZE)~0Jarkko Hietaniemi2007-03-271-2/+4
| | | | | Message-Id: <200703271207.l2RC7qOC443040@kosh.hut.fi> p4raw-id: //depot/perl@30774
* Move CHECK_WORD in regcomp.c to a more generic memEQs() in handy.hNicholas Clark2007-03-231-0/+4
| | | | | and provide memNEs() too. p4raw-id: //depot/perl@30726
* Introduction of d_pseudoforkH.Merijn Brand2006-12-051-1/+1
| | | p4raw-id: //depot/perl@29467
* Configure patch to add detection for DIR.dd_fd member variableSteve Peters2006-11-081-1/+1
| | | | | | From: "Steve Peters" <steve.peters@gmail.com> Message-ID: <fd7a59d30611042340p5543442ctad306aeb748b6bfe@mail.gmail.com> p4raw-id: //depot/perl@29238
* The non-unix parts for localtime_r_needs_tzsetH.Merijn Brand2006-11-061-1/+1
| | | | | Plus forced Glossary entry. That is a TODO for automation p4raw-id: //depot/perl@29213
* solution(?) to the "warning: comparison is always false dueto limited range ↵Jarkko Hietaniemi2006-08-011-1/+4
| | | | | | | of data type" with New*() Message-ID: <44C9A7FC.1060801@iki.fi> p4raw-id: //depot/perl@28634
* The sv_catpvs() and sv_setpvs() macros also return void.Marcus Holland-Moritz2006-05-241-2/+2
| | | p4raw-id: //depot/perl@28301
* HAS_HAS WAS NOW HASH.Merijn Brand2006-05-231-1/+1
| | | p4raw-id: //depot/perl@28286
* If I needed this now, I'll probably need it next time too :)H.Merijn Brand2006-05-221-1/+1
| | | p4raw-id: //depot/perl@28284
* literal string macrosMarcus Holland-Moritz2006-05-221-0/+40
| | | | | Message-ID: <20060522133933.65ea93ce@r2d2> p4raw-id: //depot/perl@28273
* Document PoisonFree() instead of documenting Poison() twice.Marcus Holland-Moritz2006-05-211-1/+1
| | | p4raw-id: //depot/perl@28265
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-1/+1
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962
* Newxz() can use calloc() rather than malloc(), as the implementationNicholas Clark2006-04-121-2/+1
| | | | | | | of calloc() may know that it has fresh pages from the OS, and so doesn't need to zero them itself. Plus our object code should be slightly smaller. p4raw-id: //depot/perl@27774
* re-[PATCH] Re: [PATCH] Poison now in two different flavours!Jarkko Hietaniemi2006-03-291-3/+18
| | | | | Message-ID: <442680D4.3000809@gmail.com> p4raw-id: //depot/perl@27626
* Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.Nicholas Clark2006-01-281-0/+2
| | | | | Many strlen()s saved. p4raw-id: //depot/perl@26983
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-9/+3
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* More readable MEM_WRAP_CHECK_1() macro.Gisle Aas2006-01-171-1/+1
| | | | | | This form also avoids the "dead part of constant expression is nonconstant" warning from the Sun Studio 10 compiler. p4raw-id: //depot/perl@26871
* s/superceded/superseded/gNicholas Clark2006-01-101-1/+1
| | | p4raw-id: //depot/perl@26774
* hv_fetchs() supportAndy Lester2006-01-061-0/+1
| | | | | Message-ID: <20060106155719.GB9035@petdance.com> p4raw-id: //depot/perl@26676
* More copyright updatesRafael Garcia-Suarez2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26652
* Move all the xxxpvs() macros to handy.h.Gisle Aas2006-01-041-0/+12
| | | | | | This brings them closer to STR_WITH_LEN. Besides only half of them were sv-related after change 26649. p4raw-id: //depot/perl@26650
* Fix typo in comment.Gisle Aas2006-01-041-1/+1
| | | p4raw-id: //depot/perl@26636
* Introduce STR_WITH_LEN macro in the form suggested by Chip.Gisle Aas2006-01-041-0/+3
| | | p4raw-id: //depot/perl@26635
* Add probe for snprintf () and vsnprintf ()Steve Peters2006-01-031-1/+1
| | | | | | Subject: [PATCH] snprintf() and vsnprintf() (was Re: [PATCH] Configure: stdio char (un)signedness) Message-ID: <20060102153727.GA14247@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@26606
* pre-likely cleanupAndy Lester2005-12-271-4/+1
| | | | | | | Message-ID: <20051227203939.GC1781@petdance.com> Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h. p4raw-id: //depot/perl@26505
* Fix breakages that prevended -DPERL_POISON from compiling.Nicholas Clark2005-11-131-1/+1
| | | p4raw-id: //depot/perl@26112
* futimes [PATCH]Gisle Aas2005-10-311-1/+1
| | | | | Message-ID: <lrk6ft8ia6.fsf_-_@caliper.activestate.com> p4raw-id: //depot/perl@25941
* revive probe for futimes ()H.Merijn Brand2005-10-311-1/+1
| | | p4raw-id: //depot/perl@25935
* Add probe for clearenv (), like #25733 for unsetenv ()H.Merijn Brand2005-10-181-1/+1
| | | p4raw-id: //depot/perl@25793
* environ fixupAlan Burlison2005-10-111-1/+1
| | | | | Message-ID: <434BDA72.4090109@sun.com> p4raw-id: //depot/perl@25737