summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Encourage compilers to tail call optimise in sv_savepv, sv_savepvnNicholas Clark2004-07-161-20/+20
| | | | | | and sv_savesharedpv. Need to create non-void returning versions of Copy and Zero, as the existing macros deliberately cast to (void) p4raw-id: //depot/perl@23126
* Some calls to PerlMemShared_alloc() aren't checking the return value.Nicholas Clark2004-07-161-0/+5
| | | | | Bug spotted by Nigel Sandever p4raw-id: //depot/perl@23121
* Work around evil compiler bug on OS X. (Sucks all memory)Nicholas Clark2004-07-131-2/+10
| | | p4raw-id: //depot/perl@23101
* was Re: UNIVERSAL::VERSION causing "Use of uninitialized value..." warningJohn Peacock2004-07-131-1/+1
| | | | | Message-ID: <40F35423.5080304@rowman.com> p4raw-id: //depot/perl@23088
* byte-order modifiers for (un)pack templatesMarcus Holland-Moritz2004-04-231-11/+202
| | | | | Message-Id: <20040421210920.3c467772@r2d2> p4raw-id: //depot/perl@22734
* 's to bring bleadperl up to version-0.39John Peacock2004-04-141-6/+18
| | | | | Message-ID: <407C8B13.9020104@rowman.com> p4raw-id: //depot/perl@22692
* Remove two unused variables that gcc used to warn about.Marcus Holland-Moritz2004-04-101-1/+1
| | | p4raw-id: //depot/perl@22685
* Bleadperl to version 0.37John Peacock2004-04-071-3/+33
| | | | | Message-ID: <40735FC3.5010305@rowman.com> p4raw-id: //depot/perl@22668
* format/casting/warning RE: perl 5.9.1Robin Barker2004-03-171-2/+2
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90404682E@hotel.npl.co.uk> p4raw-id: //depot/perl@22521
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* Improved perlapi documentation for croakMark Fowler2004-02-261-5/+5
| | | | | | | Message-ID: <Pine.LNX.4.55.0402252242510.32152@gan.twoshortplanks.com> (and regenerate perlapi.pod.) p4raw-id: //depot/perl@22380
* was Re: [Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.36.tar.gz]John Peacock2004-02-031-36/+70
| | | | | Message-ID: <401DB17F.5060808@rowman.com> p4raw-id: //depot/perl@22264
* Perl core dumps when running out of memory [PATCH]Gisle Aas2004-01-171-3/+9
| | | | | | | | Message-Id: <lrsmiebqvu.fsf@caliper.activestate.com> Display 'out of memeory' errors using low-level I/O to avoid recursive failure and so coredumps. p4raw-id: //depot/perl@22169
* Remove incorrect guards around inclusion of <signal.h>Alan Burlison2003-12-151-3/+0
| | | | | | | | | | | Causes problems with UNIX03/SUSv3 Part 2 of change 21916 - oops! See: Message-Id: <3FDD06A5.8010004@sun.com> Subject: Re: UNIX03 & C99 issue with 5.8.2 Date: Mon, 15 Dec 2003 00:56:05 +0000 p4raw-id: //depot/perl@21917
* Modify the common guard for the signal.h header, becauseAlan Burlison2003-12-121-1/+1
| | | | | | | | | C99 compilers don't like it.o see : Subject: UNIX03 & C99 issue with 5.8.2 Message-ID: <3FDA4994.6050209@sun.com> p4raw-id: //depot/perl@21883
* s/new_hash/rehash/g (Stas suggested a better name)Nicholas Clark2003-11-031-1/+1
| | | p4raw-id: //depot/perl@21638
* Plan C for foiling the algorithmic complexity attackNicholas Clark2003-10-161-1/+1
| | | | | | | | | | | (based on Chip's plan A (binary compatibility with 5.8.0 and 5.8.1), Chip's plan B (do something new inside the hv functions) and introspective sort) Provides infrastructure for hashes to change their hash function if necessary, and code in hsplit to detect pathalogical data and instigate a random rehashing. Needs refinement. Let's see how much smoke it creates. p4raw-id: //depot/perl@21471
* Re: 5.8.1 and srandBrendan O'Dea2003-10-021-1/+0
| | | | | Message-Id: <20031002003036.GA9198@londo.c47.org> p4raw-id: //depot/perl@21397
* Slightly more intelligent paranoia.Jarkko Hietaniemi2003-09-081-2/+5
| | | p4raw-id: //depot/perl@21093
* Superparanoia.Jarkko Hietaniemi2003-09-081-0/+2
| | | p4raw-id: //depot/perl@21085
* [PATCH] Re: [BUG] string loses its utf8 flag on dieAdrian M. Enache2003-08-171-0/+16
| | | | | | | | | | | Date: Sat, 16 Aug 2003 16:03:16 +0300 Message-ID: <20030816130316.GA1654@ratsnest.hole> Subject: Re: [PATCH] Re: [BUG] string loses its utf8 flag on die From: Enache Adrian <enache@rdslink.ro> Date: Sun, 17 Aug 2003 04:42:22 +0300 Message-ID: <20030817014222.GA1287@ratsnest.hole> p4raw-id: //depot/perl@20747
* Retract #20644 and #20643; on non-microperl non-fcntlJarkko Hietaniemi2003-08-121-4/+0
| | | | | | | systems Wrong Thing would be done. (And as Sarathy points out, closing both ends of a pipe is rather identical to never opening it...) p4raw-id: //depot/perl@20653
* Apply much of Ilya's microperl patch, but instead ofJarkko Hietaniemi2003-08-121-0/+2
| | | | | | | | | implementing the opendir()/readdir()/closedir() using external commands give up "ANSI-pureness" and define them in uconfig.sh, also define other stuff like rename() and putenv(). Leave out the $| emulation in my_fork() since we are not supposed to have fork() under microperl. p4raw-id: //depot/perl@20646
* More microperlish faking in case no fcntl F_SETFD for pipes.Jarkko Hietaniemi2003-08-121-0/+4
| | | p4raw-id: //depot/perl@20644
* Rename get_seed() to get_hash_seed(), as suggested byRafael Garcia-Suarez2003-07-181-1/+1
| | | | | Eric J Kidder, to solve a name conflict on HP_UX 11.00. p4raw-id: //depot/perl@20170
* pTHX.Jarkko Hietaniemi2003-07-111-1/+1
| | | p4raw-id: //depot/perl@20143
* Chicken out: the hash randomisation is not on by default.Jarkko Hietaniemi2003-07-111-0/+32
| | | | | | | | | | We switch over to the explicit mode: in other words, if the $ENV{PERL_HASH_SEED} is on, we randomise. Also, we randomise only if PL_hash_seed_set is FALSE (this means one can use PERL_HASH() before perl_run.) Also, since now PERL_HASH_SEED is okay even under -T, all should be fine. (Ha!) p4raw-id: //depot/perl@20135
* Re: [REPATCH] was Re: [perl #16010] v-strings left of a => don't get quoted.John Peacock2003-07-091-79/+0
| | | | | Message-ID: <3F0BCCD2.1020009@rowman.com> p4raw-id: //depot/perl@20084
* Move the (pseudo)seed functio for (pseudo)random numbers to util.c.Jarkko Hietaniemi2003-06-221-0/+81
| | | p4raw-id: //depot/perl@19843
* Re: [perl #17934] tied STDERR and internal warningsSteve Grazzini2003-06-191-44/+50
| | | | | Message-ID: <20030618234237.GA6267@grazzini.net> p4raw-id: //depot/perl@19819
* Illegal cpp.Jarkko Hietaniemi2003-06-141-1/+1
| | | p4raw-id: //depot/perl@19772
* Re: [perl #18849] fork/system bug on FreeBSDAlan Ferrency2003-06-131-2/+2
| | | | | | | Message-ID: <Pine.BSF.4.30.0306111348450.32145-100000@smx.pair.com> (the first alternative) p4raw-id: //depot/perl@19765
* z/OS: changes for building threaded from "Brian De Pradine"Jarkko Hietaniemi2003-04-221-1/+1
| | | | | <PRADINE@uk.ibm.com>. p4raw-id: //depot/perl@19306
* Fix another segfault case (warn called from UNIVERSAL::DESTROY).Adrian M. Enache2003-04-211-1/+1
| | | | | | | | | | Subject: Re: [perl #21347] segfault in UNIVERSAL::AUTOLOAD Date: Sun, 20 Apr 2003 02:45:48 +0300 Message-ID: <20030419234548.GA849@ratsnest.hole> and Date: Wed, 2 Apr 2003 07:52:28 +0300 Message-ID: <20030402045227.GA1023@ratsnest.hole> p4raw-id: //depot/perl@19300
* Fix up Larry's copyright statements to my best knowledge.Jarkko Hietaniemi2003-04-161-1/+2
| | | | | | | (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
* A -C parsed from the #! line can still have line endings in it.Jarkko Hietaniemi2003-04-161-3/+4
| | | p4raw-id: //depot/perl@19238
* From Inaba Hiroto: the UTF-8 length cache wasn'tJarkko Hietaniemi2003-03-091-1/+5
| | | | | updated when fbm_compile() appended a "\n". p4raw-id: //depot/perl@18857
* Use a macro for abs() to avoid the possible truncation to an int;Jarkko Hietaniemi2003-03-031-6/+6
| | | | | also make an explicit (double)cast for the arguments to fabs(). p4raw-id: //depot/perl@18813
* Update all copyrights to 2003, from JarkkoHugo van der Sanden2003-03-021-1/+1
| | | p4raw-id: //depot/perl@18801
* The -CI cannot be easily tested under UTF-8 locale withJarkko Hietaniemi2003-03-021-1/+1
| | | | | | the t/test.pl (the 'stdin' data gets doubly UTF-8-ied). Also other small tweaks in the -C neighbourhood. p4raw-id: //depot/perl@18799
* PERL_SIGNALS=unsafe enables the old unsafe/immediate signals.Jarkko Hietaniemi2003-02-241-6/+4
| | | p4raw-id: //depot/perl@18766
* Format nit.Jarkko Hietaniemi2003-02-181-1/+1
| | | p4raw-id: //depot/perl@18741
* Doc tweaks (and one code tweak) based on Philip Newton's comments.Jarkko Hietaniemi2003-02-171-1/+1
| | | p4raw-id: //depot/perl@18731
* The new(er) way of controlling Unicode I/O (and other) features;Jarkko Hietaniemi2003-02-151-0/+53
| | | | | -C (or PERL_UNICODE). See perlrun/-C for more details. p4raw-id: //depot/perl@18715
* to silence compiler warningRobin Barker2003-02-121-3/+3
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D9040462CC@hotel.npl.co.uk> p4raw-id: //depot/perl@18697
* version objects final(?) patchJohn Peacock2003-02-101-25/+46
| | | | | Message-ID: <3E18E9D9.2040908@rowman.com> p4raw-id: //depot/perl@18682
* integrate (by hand) #18353 and #18359 from maint-5.8:Hugo van der Sanden2003-01-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a cache for UTF-8 data: length and byte<->char offset mapping are stored in a new type of magic. Speeds up length(), substr(), index(), rindex(), pos(), and some parts of s///. The speedup varies a lot (on the usual suspects: what is the access pattern of the data, compiler, CPU), but should be at least one order of magnitude, and getting to the same magnitude as byte string speeds, and in some cases (length on unchanged data) even reaching the byte string speed. On the other hand, in some cases (index) the byte speed is still faster by a factor of five or so, but the bottleneck there does not seem to be any more the byte<->char offset mapping (instead, the fbm_instr() speed). There is one cache slot for the length, and only two for the byte<->char offset mapping (the first one for the start->offset, and the second for the offset->offset+length, when talking in substr() terms). Code this hairy is bound to have hairy trolls hiding under it. [...] A small tweak on top of #18353: don't display mg_len bytes of mg_ptr for PERL_MAGIC_utf8 because that's not what's there. p4raw-id: //depot/perl@18530
* my_fflush_all() wasn't doing the right thing under useperlioGurusamy Sarathy2002-12-181-1/+1
| | | | | on many platforms p4raw-id: //depot/perl@18335
* Re: [perl #18238] timezone and gmt offset as output by POSIX::strftime() ↵Slaven Rezic2002-12-091-0/+14
| | | | | | | are sometimes wrong Message-ID: <874raqz8o3.fsf@vran.herceg.de> p4raw-id: //depot/perl@18267
* integrate util.c fragment from #18200 to undef SA_RESTART on MacOSHugo van der Sanden2002-12-021-0/+5
| | | p4raw-id: //depot/perl@18225