summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix change #28533: my_strlcpy does not return the dest str!Steve Hay2006-07-111-1/+2
| | | | | p4raw-link: @28533 on //depot/perl: 6fca0082ec4f3b34a0dabc78331bad8c22489dd2 p4raw-id: //depot/perl@28545
* Convert some low hanging fruit to my_strlcpy/my_strlcat.Steve Peters2006-07-101-5/+4
| | | p4raw-id: //depot/perl@28533
* Change existing uses of strlcpy()/strlcat() to use new my_strlcpy()/Steve Peters2006-07-101-7/+1
| | | | | | my_strlcat() API. Convert ext/File/Glob/bsd_glob.c to use my_strlcat(). Add to the strlcy()/strlcat() todo entry. p4raw-id: //depot/perl@28528
* Add Russ Allbery's public domain implementations of strlcat andSteve Peters2006-07-101-0/+33
| | | | | | strlcpy as Perl_my_strlcat and Perl_my_strlcpy to the Perl core. Thanks Russ! p4raw-id: //depot/perl@28525
* Fix casting warnings related to snprintf/vsnprintfRafael Garcia-Suarez2006-06-301-2/+2
| | | p4raw-id: //depot/perl@28459
* [patch] Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.64.tar.gzJohn Peacock2006-06-091-3/+9
| | | | | Message-ID: <4488CB5C.4070702@rowman.com> p4raw-id: //depot/perl@28375
* more accumulated cleanupsAndy Lester2006-06-061-10/+15
| | | | | Message-ID: <20060606052501.GA30469@petdance.com> p4raw-id: //depot/perl@28358
* Upgrade to version.pm 0.60Rafael Garcia-Suarez2006-05-221-2/+3
| | | p4raw-id: //depot/perl@28276
* Re: [PATCH] Re: Change 28183 has broken 64-bit builds?Jarkko Hietaniemi2006-05-191-2/+4
| | | | | Message-ID: <446CCE8E.8010407@gmail.com> p4raw-id: //depot/perl@28234
* Adjust calling of Perl_va_copy(), noticed by JarkkoRafael Garcia-Suarez2006-05-181-1/+1
| | | p4raw-id: //depot/perl@28222
* Another SvVOK(). I believe that this is the last.Nicholas Clark2006-05-171-1/+1
| | | p4raw-id: //depot/perl@28221
* Oops, missed a SvVOK.Rafael Garcia-Suarez2006-05-171-1/+1
| | | p4raw-id: //depot/perl@28219
* Re: Change 28183 has broken 64-bit builds?Jarkko Hietaniemi2006-05-171-49/+47
| | | | | Message-ID: <446B7757.8030301@gmail.com> p4raw-id: //depot/perl@28216
* Re: [PATCH] my_snprintfJarkko Hietaniemi2006-05-121-83/+101
| | | | | Message-ID: <4464E1F1.9010706@gmail.com> p4raw-id: //depot/perl@28183
* disable WARN and DIE hooks during constant foldingDave Mitchell2006-05-101-1/+1
| | | p4raw-id: //depot/perl@28148
* PERL_MEM_LOG enhancementsJarkko Hietaniemi2006-05-091-22/+186
| | | | | Message-ID: <445C5C6E.6070201@gmail.com> p4raw-id: //depot/perl@28132
* Re: [PATCH] use snprintf/strlcpy/strlcat when usefulJarkko Hietaniemi2006-04-281-1/+9
| | | | | Message-ID: <444E3EFB.8020503@gmail.com> p4raw-id: //depot/perl@27987
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-10/+12
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962
* Localizing varsAndy Lester2006-04-201-9/+9
| | | | | Message-ID: <20060420044401.GA2792@petdance.com> p4raw-id: //depot/perl@27908
* Calling cv_undef() on the CV created by newCONSTSUB() would leak likeNicholas Clark2006-04-191-2/+2
| | | | | | | | | | a Jumblie's preferred maritime craft. To free CvFILE for this case, take advantage of the 0 length prototype that will also be there, and hang it from the prototype. To do this properly means changing code to actually pay attention to SvCUR() on prototypes. It turns out that we always know the length of the prototype string, so this may be faster. Certainly, it's a memory saving (even ignoring the leak). p4raw-id: //depot/perl@27896
* Support compiling for RISC OSAlex Waugh2006-04-181-6/+6
| | | | | Message-ID: <2498b2184e.ajw498@caramel.cp15.org> p4raw-id: //depot/perl@27884
* Turn on UTF8 cache assertions with -CaNicholas Clark2006-04-171-0/+2
| | | p4raw-id: //depot/perl@27875
* Re: [PATCH] add pTHX_ parameter to new_warnings_bitfield()Steve Hay2006-04-131-1/+1
| | | | | | Message-ID: <443E1998.9090909@uk.radan.com> Date: Thu, 13 Apr 2006 10:27:52 +0100 p4raw-id: //depot/perl@27784
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-1/+12
| | | | | | | directly (shared) malloc()ed buffer holding the warnings bitmask. This avoids bugs/crashes when the interpreter that created an optree is freed but the optree remains in use by other interpreters. p4raw-id: //depot/perl@27779
* Try not to use negative values when accessing arrays in C. Yet anotherSteve Peters2006-04-051-0/+1
| | | | | Coverity catch. p4raw-id: //depot/perl@27724
* re-[PATCH] Re: [PATCH] Poison now in two different flavours!Jarkko Hietaniemi2006-03-291-4/+4
| | | | | Message-ID: <442680D4.3000809@gmail.com> p4raw-id: //depot/perl@27626
* unused context warningsAndy Lester2006-02-241-7/+29
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* Remove set magic from typeglobs. Remove typeglob magic entirely.Nicholas Clark2006-02-231-3/+0
| | | | | | Typeglobs now never access the SvPVX, SvIVX or SvNVX when holding a valid GvGP(). p4raw-id: //depot/perl@27289
* More NullXXX macro removal from Andy LesterRafael Garcia-Suarez2006-02-201-10/+10
| | | p4raw-id: //depot/perl@27238
* With PERL_POISON defined, ensure freshly malloc()ed memory isn't zeros,Nicholas Clark2006-02-101-0/+14
| | | | | | and when PERL_TRACK_MEMPOOL is also defined scribble on any extension added by realloc(). p4raw-id: //depot/perl@27151
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-13/+13
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Enhance PERL_TRACK_MEMPOOL so that it also emulates the PerlHostNicholas Clark2006-02-041-30/+63
| | | | | | | | behaviour of freeing up all memory at thread exit. With this and tools such as valgrind you will now get warnings as soon as you read from the deallocated memory, rather than just a warning much later about freeing to the wrong pool. p4raw-id: //depot/perl@27084
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-3/+3
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* Re: [PATCH] s/Null(av|ch)/NULL/gSteven Schubiger2006-02-021-38/+38
| | | | | Message-ID: <20060202093849.GD12591@accognoscere.homeunix.org> p4raw-id: //depot/perl@27054
* gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanningNicholas Clark2006-02-021-1/+1
| | | | | | | loop is iterated over millions of times. Add a flag GV_NOTQUAL purely as an optimisation, when the caller is passing in a string that is known not to contain any package separators. p4raw-id: //depot/perl@27053
* Yet more instances of gv_fetchpv... that should be GV_ADD rather thanNicholas Clark2006-02-021-1/+1
| | | | | | TRUE. Convert two gv_fetchpvn_flags to gv_fetchpvs. p4raw-id: //depot/perl@27050
* Silence a warning from the MS compiler about signed/unsigned mismatch.Nicholas Clark2006-01-311-2/+2
| | | p4raw-id: //depot/perl@27014
* Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.Nicholas Clark2006-01-281-1/+1
| | | | | Many strlen()s saved. p4raw-id: //depot/perl@26983
* By changing SvVOK() from returning 0/1 to 0/pointer-to-magic we canNicholas Clark2006-01-281-11/+15
| | | | | | save duplicating mg_find calls, without changing the semantics in any boolean context. p4raw-id: //depot/perl@26979
* Remove wrong cast to (void *), which fixes a gcc warning, and useMarcus Holland-Moritz2006-01-211-2/+1
| | | | | the return value of upg_version() at least once in the core. p4raw-id: //depot/perl@26918
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-8/+8
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* Refactor S_vdie_common so that Perl_vwarn can use it too.Nicholas Clark2006-01-111-45/+22
| | | p4raw-id: //depot/perl@26787
* Fix the new warning created with version-0.53Steve Peters2006-01-111-3/+5
| | | p4raw-id: //depot/perl@26780
* Upgrade to version-0.53Steve Peters2006-01-111-2/+5
| | | p4raw-id: //depot/perl@26777
* It's the Barbie bus patchAndy Lester2006-01-101-1/+1
| | | | | Message-ID: <20060110054243.GA26165@petdance.com> p4raw-id: //depot/perl@26764
* Upgrade to version-0.52Steve Peters2006-01-061-0/+3
| | | p4raw-id: //depot/perl@26685
* sprinkle dVARJarkko Hietaniemi2006-01-061-2/+23
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-8/+8
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-1/+1
| | | p4raw-id: //depot/perl@26562
* Making 0 pointers to NULLsAndy Lester2006-01-011-2/+0
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558