summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* C<undef> doesn't look like a number. See also:Marcus Holland-Moritz2004-04-051-1/+1
| | | | | | Subject: Re: [perl #27606] undef "looks like" a number Message-Id: <20040315221626.48061c67@r2d2> p4raw-id: //depot/perl@22662
* sv_pvutf8n_force and sv_pvbyten_forceSADAHIRO Tomoyuki2004-04-051-2/+6
| | | | | Message-Id: <20040324001126.098F.BQW10602@nifty.com> p4raw-id: //depot/perl@22652
* [perl #27268] Blessed reference to anonymous globDave Mitchell2004-03-261-0/+1
| | | | | Stop *$$x=$x giving "Attempt to free unreferenced scalar" warning p4raw-id: //depot/perl@22591
* Silence a gcc warning.Rafael Garcia-Suarez2004-03-211-1/+1
| | | p4raw-id: //depot/perl@22546
* Re: [perl #27803] perl crashes when utf8::upgrade($offsetOK_scalar) SADAHIRO Tomoyuki2004-03-211-1/+2
| | | | | Message-Id: <20040321151828.DAC6.BQW10602@nifty.com> p4raw-id: //depot/perl@22545
* Update copyright noticesRafael Garcia-Suarez2004-03-161-1/+1
| | | p4raw-id: //depot/perl@22509
* Fix a bug in the cloning of regexpsHugo van der Sanden2004-03-121-2/+2
| | | | | | | Subject: Re: [perl #27530] Regex qr// interpolation fails when chr(0) is used in a thread Message-Id: <200403111621.i2BGLoi20225@zen.crypt.org> (plus another similar fix) p4raw-id: //depot/perl@22490
* croaking for readonly SVs in Perl_sv_utf8_upgrade_flags was a mistakeNicholas Clark2004-03-101-4/+0
| | | | | back this out until we have a tangible policy p4raw-id: //depot/perl@22483
* Fix Dave's original shared hash key corruption bugNicholas Clark2004-03-071-0/+6
| | | p4raw-id: //depot/perl@22465
* Add a readonly check to Perl_sv_utf8_upgrade_flags, a regresion testNicholas Clark2004-03-071-2/+6
| | | | | in utf8.t, and fix 3 bugs it exposed in utfhash.t p4raw-id: //depot/perl@22463
* silence some compiler warningsDave Mitchell2004-03-051-2/+2
| | | p4raw-id: //depot/perl@22440
* ensure utf8::encode() normalises its argDave Mitchell2004-03-041-3/+3
| | | p4raw-id: //depot/perl@22439
* Re: op_seq (was: Freeing code)Paul Johnson2004-02-211-1/+0
| | | | | | | | | | Message-ID: <20040221013147.GB6953@pjcj.net> Rework the OP structure to use less space. Remove op_seq (and simulate it in dump.c), replace it by op_opt and op_static, shrink op_type, remove PL_op_seqmax. p4raw-id: //depot/perl@22353
* Slight update to #22315 ($lval=*FOO); optimise the hot tests,Dave Mitchell2004-02-171-7/+8
| | | | | and fix some incorrect indentation p4raw-id: //depot/perl@22316
* Re: [PATCH] GLOB to LVALUE assignment fixTassilo von Parseval2004-02-171-1/+7
| | | | | | | Message-Id: <20040217163216.GA6805@ethan> Make PVLV a superset of PVGV, so that $lvalue = *FOO works p4raw-id: //depot/perl@22315
* Switch from byacc to bison and simplify the perly.* regenerationDave Mitchell2004-02-141-8/+0
| | | | | process p4raw-id: //depot/perl@22302
* Re: [perl #26073] sprintf miscounts padding when format is utf8 Hugo van der Sanden2004-02-091-1/+3
| | | | | Message-Id: <200402090321.i193LL907950@zen.crypt.org> p4raw-id: //depot/perl@22292
* back out change #22167 "freeing a CV reference that was currentlyDave Mitchell2004-01-171-1/+1
| | | | | | | | being executed caused coredumps". The new test case sometimes locks up linux's malloc, and with Perl's malloc the test code still coredumps :-( p4raw-link: @22167 on //depot/perl: b3a3b3a1da8f5142edf3e194532b08316f895282 p4raw-id: //depot/perl@22172
* [perl #24914] freeing a CV reference that was currently beingDave Mitchell2004-01-171-1/+1
| | | | | executed caused coredumps p4raw-id: //depot/perl@22167
* Re: [perl #24816] Magic vars seem unsure if they are purely numericYitzchak Scott-Thoennes2004-01-161-10/+33
| | | | | | | Message-Id: <20040115221037.GA2392@efn.org> Add sv_2iv_flags() to allow magic to be optionally processed. p4raw-id: //depot/perl@22163
* still problems with backreferences + reverse cloningAdrian M. Enache2004-01-101-1/+1
| | | | | after #21936 - the weak reference may live on the pad. p4raw-id: //depot/perl@22106
* segv in pad.c with threads (was: DBD::Oracle and Perl 5.8.2 threads)Dave Mitchell2004-01-081-1/+4
| | | | | | | | | | Message-ID: <20040107121357.GD82921@dansat.data-plan.com> Returning a closure from a thread (via join) could mess up because pointers to PL_sv_undef weren't rejigged to point at the joiner's version of PL_sv_undef. Also, the closure's CvGV got cloned too but never freed, since CvGV isn't refcounted. p4raw-id: //depot/perl@22102
* Fix bug #24383, where hashes with the :unique attribute weren'tDave Mitchell2004-01-011-1/+1
| | | | | | | | getting made readonly on interpreter clone. Also, remove the :unique attribute from the hashes in warnings.pm, since they may later be modified by warnings::register. Finally, adds tests for the :unique attribute. p4raw-id: //depot/perl@22034
* Remove Win32 compiler warningsMarcus Holland-Moritz2003-12-271-2/+2
| | | | | | From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <018901c3cc97$fa976660$d500a8c0@R2D2> p4raw-id: //depot/perl@21971
* Turn Quad_t to Uquad_t in unsigned branchMarcus Holland-Moritz2003-12-271-1/+1
| | | | | | From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <010001c3cc1b$813763a0$d500a8c0@R2D2> p4raw-id: //depot/perl@21967
* Re: GCC bug breaking Perl_sv_catpvfn()?Marcus Holland-Moritz2003-12-261-14/+14
| | | | | | From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <03ca01c3cb52$2d509b40$5700a8c0@R2D2> p4raw-id: //depot/perl@21962
* [perl #24506] [PATCH] cannot weaken refs to read only valuesFergal Daly2003-12-251-0/+1
| | | | | | | Message-Id: <200312022318.18353.fergal@esatclear.ie> (tweaked so the test is skipped on perls < 5.9.0) p4raw-id: //depot/perl@21955
* fix [perl #24660], [perl #24663].Adrian M. Enache2003-12-201-22/+14
| | | p4raw-id: //depot/perl@21936
* Solaris gconvert() doesn't like ndigits == 0. Currently we have noNicholas Clark2003-12-201-2/+8
| | | | | | Configure test for troublesome gconvert(), so for now simply avoid the optimisation that calls gconvert() in this case. p4raw-id: //depot/perl@21931
* #21866 was wrong. another try to plumb that damn leak.Adrian M. Enache2003-12-111-2/+1
| | | p4raw-id: //depot/perl@21876
* fix bug #24605.Adrian M. Enache2003-12-111-4/+8
| | | | | | substr() wasn't working when used repeatedly on the same utf-8 string. p4raw-id: //depot/perl@21875
* plumb a leak with pos().Adrian M. Enache2003-12-081-1/+2
| | | | | | | | | #! perl while (1) { my $a = "\x{1ff}"; $a =~ /\x{1ff}/g; pos($a); } __END__ p4raw-id: //depot/perl@21866
* Make sv_force_normal_flags cope with shared hash key scalarsNicholas Clark2003-12-061-1/+4
| | | | | | (remember the pointer from SvPVX, reset the flags before SvGROW, avoid crazy loops or read-from-free) p4raw-id: //depot/perl@21854
* Re: XS modules having problems with CLONE and ithreads unless ↵Stas Bekman2003-12-031-3/+4
| | | | | | | PERL_NO_GET_CONTEXT is defined Message-ID: <3FCDAFD6.9050106@stason.org> p4raw-id: //depot/perl@21837
* When Gconvert is a macro around sprintf with a .* format we needNicholas Clark2003-11-291-2/+2
| | | | | | to cast to int (in case STRLEN isn't the same size as int) gcc issues a warning even when it is the same size p4raw-id: //depot/perl@21806
* Gconvert actually takes type NV, while nv may be either doubleNicholas Clark2003-11-291-1/+1
| | | | | | or long double (depending on some conditional code) Rafael and I think that this cast should work. p4raw-id: //depot/perl@21804
* Fix a regression introduced by change #21694 on sprintf()Rafael Garcia-Suarez2003-11-281-2/+4
| | | | | | | | | with long doubles, by disabling the specific optimisation path in this case ; remove a unnecessary cast ; add a new test file for miscellaneous sprintf() test that don't fit in the t/op/sprintf.t framework. p4raw-link: @21694 on //depot/perl: 4151a5feffa8bdd67c09edf6ade78431e8079f67 p4raw-id: //depot/perl@21800
* Don't COW if the destination has magic.Nicholas Clark2003-11-221-2/+5
| | | p4raw-id: //depot/perl@21773
* [PATCH 5.8.2 @21574] sprintf() painfully slowIlya Zakharevich2003-11-091-7/+81
| | | | | | | | | | | Date: Mon, 3 Nov 2003 20:27:39 -0800 Message-ID: <20031104042739.GA1697@math.berkeley.edu> Subject: Re: [PATCH 5.8.2 @21574] sprintf() painfully slow From: Ilya Zakharevich <nospam-abuse@ilyaz.org> Date: Mon, 3 Nov 2003 20:57:48 -0800 Message-ID: <20031104045748.GA1826@math.berkeley.edu> p4raw-id: //depot/perl@21694
* s/new_hash/rehash/g (Stas suggested a better name)Nicholas Clark2003-11-031-1/+1
| | | p4raw-id: //depot/perl@21638
* [5.8.x segfault + patch] chicken&egg segfault in -Dm -MthreadsStas Bekman2003-10-311-0/+3
| | | | | | Message-ID: <3FA04A03.5010603@stason.org> (enclosed in a #ifdef DEBUGGING) p4raw-id: //depot/perl@21589
* embedding perlRadu Greab2003-10-211-0/+13
| | | | | Message-Id: <20030805.205715.113441323.radu@yx.primIT.ro> p4raw-id: //depot/perl@21514
* Plan C for foiling the algorithmic complexity attackNicholas Clark2003-10-161-0/+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
* Minor tweaks to pod/perlsyn.pod (as suggested by Yves Orton),Abhijit Menon-Sen2003-10-071-1/+1
| | | | | sv.c (Tim Bunce), t/op/pow.t (John P. Linderman). p4raw-id: //depot/perl@21420
* [patch sv.c] improve "...free unref scalar" warningStas Bekman2003-10-071-1/+3
| | | | | Message-Id: <3F823EE9.4030103@stason.org> p4raw-id: //depot/perl@21416
* Macrofy the compile/runtime test.Jarkko Hietaniemi2003-09-211-6/+6
| | | p4raw-id: //depot/perl@21297
* It's UTF-8, not UTF8. (Note: not s/UTF-8/UTF8/,Jarkko Hietaniemi2003-09-121-19/+19
| | | | | | since that would break a lot of code.) Also few stray UTF16s, UTF32s, and "encoded in Unicode". p4raw-id: //depot/perl@21198
* Re: [PATCH] add "$lexical not available" warning in C<for my $lex ()>Marcus Holland-Moritz2003-08-311-0/+8
| | | | | | From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <038401c36fc2$d01b1440$9b00a8c0@R2D2> p4raw-id: //depot/perl@20968
* perlapi.pod tweaks, based on :Joe Schaefer2003-08-261-6/+6
| | | | | | Subject: misdocumented return value for sv_setref* Message-ID: <m3adae94gp.fsf@sol.sunstarsys.com> p4raw-id: //depot/perl@20912
* 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