summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* Subject: [PATCH] Hash::Util & restricted hash touch up, part 1Michael G. Schwern2002-03-111-10/+31
| | | | | | | | | | | | | | | | | | Date: Sun, 10 Mar 2002 13:27:12 -0500 Message-Id: <20020310182712.GC693@blackrider> Subject: [PATCH] Hash::Util part 2 From: Michael G Schwern <schwern@pobox.com> Date: Sun, 10 Mar 2002 15:09:34 -0500 Message-Id: <20020310200934.GB27112@blackrider> Subject: [PATCH] Hash::Util MANIFEST correction From: Michael G Schwern <schwern@pobox.com> Date: Sun, 10 Mar 2002 16:27:07 -0500 Message-Id: <20020310212707.GF27112@blackrider> (Also changes find.t and taint.t, which were looking for access.t) p4raw-id: //depot/perl@15166
* more warnings tidyupPaul Marquess2002-03-111-1/+1
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEEGDPAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15155
* Make shared hash keys to be \0-terminated:Jarkko Hietaniemi2002-02-281-1/+2
| | | | | | | | | | | | | | | | | | one possible resolution for "UTF-8, weird \w behaviour after HASH-KEY-ification" http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-01/msg01327.html The hash keys were shared (the SvLEN(sv) = 0 was the giveaway). The hash keys weren't \0-terminated. This meant that the EOL ($) in regmatch() got the nextchr beyond the last character. Since the keys were UTF-8, the nextchr was \1, not the usual string-terminating \0. Wham, no match. I think another possible resolution could be to stop the nextchr computation in regmatch() from peeking beyond the last character of the string: nextchr = locinput < PL_regeol ? UCHARAT(locinput) : 0; p4raw-id: //depot/perl@14908
* "Attempt to access to key"?Michael G. Schwern2002-02-261-1/+1
| | | | | Message-Id: <20020226060128.GA2439@blackrider> p4raw-id: //depot/perl@14882
* Copyright++. (Not all the toplevel *.h have one, it seems.)Jarkko Hietaniemi2002-01-231-1/+1
| | | p4raw-id: //depot/perl@14391
* Message-Id: <200201031449.OAA26137@tempest.npl.co.uk> Robin Barker2002-01-031-1/+5
| | | | | -Wformat check. p4raw-id: //depot/perl@14039
* [ PATCH ] Smoke 13820 /pro/3gl/CPAN/perl-currentH.Merijn Brand2001-12-211-13/+12
| | | | | Message-Id: <20011221104035.4B4F.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@13829
* Fix READONLY hashes:Nick Ing-Simmons2001-12-191-6/+6
| | | | | | | 1. Discovered need for disabled scope.c part of Jeff's patch. 2. Corrected hv_delete* - entry was being de-linked from chain (patch program not smart enough?) p4raw-id: //depot/perlio@13795
* Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashesNick Ing-Simmons2001-12-181-54/+165
| | | | | | - added delete of READONLY value inhibit & test for same - re-tabbed p4raw-id: //depot/perlio@13760
* Make sharepvn a macro since all it does is a deref.Jarkko Hietaniemi2001-12-031-0/+4
| | | p4raw-id: //depot/perl@13436
* a few typo fixes Jeffrey Friedl2001-11-121-2/+2
| | | | | | | | | | | Message-Id: <200111120515.fAC5FIc74795@ventrue.corp.yahoo.com> Patching README.foo instead of pod/perlfoo.pod, not patching Math::BigInt (Tels will take care of that), dropping broken hv.c and sv.h patches, patching libnetcfg.PL and perldoc.PL instead of libnetcfg and perldoc, patching ext/Digest/MD5/t/files.t since MD5.pm was changed. p4raw-id: //depot/perl@12954
* Keep It Simple and Stupid version of readonly hash support.Nick Ing-Simmons2001-11-061-0/+41
| | | | | | | | | - Test for SvREAONLY(hv) at a few spots in hv.c - add the error message to perldiag.pod - (dubious) add access::readonly() to univeral.c - add test using above - fixup ext/B/t/stash.t to account for access:: existing p4raw-id: //depot/perlio@12874
* Builds under ithreads (but fails all threads tests)Nick Ing-Simmons2001-10-161-1/+1
| | | p4raw-id: //depot/perlio@12456
* Little pointer juggling for HP-UX cc to avoidJarkko Hietaniemi2001-08-051-1/+3
| | | | | | | "warning 524: Cast (non-lvalue) appears on left-hand side of assignment." followed by "error 1549: Modifiable lvalue required for assignment operator." p4raw-id: //depot/perl@11578
* Re: [PATCH hv.c] newHVhv shouldn't reset xhv_max so oftenAbhijit Menon-Sen2001-08-041-1/+1
| | | | | Message-ID: <20010804165635.E526@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11571
* Re: [PATCH hv.c] newHVhv shouldn't reset xhv_max so oftenAbhijit Menon-Sen2001-08-041-17/+51
| | | | | Message-ID: <20010804161603.C526@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11570
* newHVhv shouldn't reset xhv_max so oftenAbhijit Menon-Sen2001-08-031-6/+6
| | | | | Message-ID: <20010803063811.A19266@lustre.dyn.wiw.org> p4raw-id: //depot/perl@11558
* Remove unicode::distinct, as per Inaba Hiroto.Jarkko Hietaniemi2001-07-131-22/+16
| | | p4raw-id: //depot/perl@11342
* win32 fixes: fix various syntax errors ("no preprocessor directivesGurusamy Sarathy2001-07-021-3/+3
| | | | | | within macro arguments") and warnings ("unary minus applied to unsigned type", among others) p4raw-id: //depot/perl@11066
* Fixes case of CvDEPTH for perl_cloneArtur Bergman2001-06-201-4/+4
| | | | | Message-ID: <B7563A14.17D8%artur@contiller.se> p4raw-id: //depot/perl@10757
* Revert #10656 for performance reasons but leave in theJarkko Hietaniemi2001-06-191-106/+156
| | | | | | | use of Hv*() macros -- in comments, so that grepping the source is easier, from Abhijit. (Also add the ENV_HV_NAME speedup suggested by Sarathy, also by Abhijit.) p4raw-id: //depot/perl@10714
* Quench the warnings from Tru64; the HP-UX is stillJarkko Hietaniemi2001-06-171-7/+7
| | | | | | | | | broken because it really, REALLY, doesn't like the HvARRAY() being lvalue: cc: "hv.c", line 192: warning 524: Cast (non-lvalue) appears on left-hand side of assignment. cc: "hv.c", line 192: error 1549: Modifiable lvalue required for assignment operator. p4raw-id: //depot/perl@10669
* [PATCH #1/7] xhv_array (was Re: Using xhv_foo instead of HvFOO)Abhijit Menon-Sen2001-06-171-126/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Date: Sun, 17 Jun 2001 08:02:59 +0530 Message-ID: <20010617080259.A28776@lustre.linux.in> Subject: [PATCH #2/7] xhv_eiter From: Abhijit Menon-Sen <ams@wiw.org> Date: Sun, 17 Jun 2001 08:13:18 +0530 Message-ID: <20010617081318.B28776@lustre.linux.in> Subject: [PATCH #3/7] xhv_fill From: Abhijit Menon-Sen <ams@wiw.org> Date: Sun, 17 Jun 2001 08:25:16 +0530 Message-ID: <20010617082516.C28776@lustre.linux.in> Subject: [PATCH #4/7] xhv_keys From: Abhijit Menon-Sen <ams@wiw.org> Date: Sun, 17 Jun 2001 08:36:17 +0530 Message-ID: <20010617083617.D28776@lustre.linux.in> Subject: [PATCH #5/7] xhv_max From: Abhijit Menon-Sen <ams@wiw.org> Date: Sun, 17 Jun 2001 08:39:48 +0530 Message-ID: <20010617083948.E28776@lustre.linux.in> Subject: [PATCH #6,7/7] xhv_pmroot, xhv_riter From: Abhijit Menon-Sen <ams@wiw.org> Date: Sun, 17 Jun 2001 08:51:11 +0530 Message-ID: <20010617085111.F28776@lustre.linux.in> p4raw-id: //depot/perl@10656
* Re: DYNAMIC_ENV_FETCH HvNAME abuse.Abhijit Menon-Sen2001-06-161-7/+7
| | | | | Message-ID: <20010616074119.A24720@lustre.linux.in> p4raw-id: //depot/perl@10654
* Eliminating trigraphMichael G. Schwern2001-06-011-1/+1
| | | | | Message-ID: <20010601114955.E29027@blackrider.blackstar.co.uk> p4raw-id: //depot/perl@10367
* [LARGE!] symbolic magicDave Mitchell2001-05-201-23/+25
| | | | | Message-Id: <200105191912.UAA23925@gizmo.fdgroup.co.uk> p4raw-id: //depot/perl@10168
* A thinko in #10065.Jarkko Hietaniemi2001-05-101-1/+1
| | | p4raw-id: //depot/perl@10067
* [patch] make hv_fetch{_ent} SvGMAGICAL awareDoug MacEachern2001-05-101-4/+4
| | | | | Message-ID: <Pine.LNX.4.21.0105070947060.23808-100000@mako.covalent.net> p4raw-id: //depot/perl@10065
* PATCH [5.7.1] hv.c unused #defineMark-Jason Dominus2001-04-231-1/+0
| | | | | Message-ID: <20010422181749.26976.qmail@plover.com> p4raw-id: //depot/perl@9788
* Re: [ID 19990808.001] [PATCH] FETCH triggered on exists() Robert Spier2001-03-091-2/+3
| | | | | | | Message-ID: <15016.38044.381174.160189@rls.cx> EXISTS() returning undef mistakenly triggered a FETCH(). p4raw-id: //depot/perl@9090
* Re: I'm losing the war...Vadim Konovalov2001-02-241-2/+2
| | | | | | | Message-ID: <007501c09dde$a9b84420$2f7b55c2@vad> hv_store() not working correctly in ENV_IS_CASELESS case. p4raw-id: //depot/perl@8919
* Don't do casting between pointers pointing to differently sizedJarkko Hietaniemi2001-02-201-12/+37
| | | | | integers. p4raw-id: //depot/perl@8862
* Patch from Inaba Hiroto:Jarkko Hietaniemi2001-01-281-9/+86
| | | | | | | | | | | | | | | | | | | | | | | - canonical UTF-8 hash keys: if a key string for a hash is UTF8-on, try downgrade the string and use it if unicode::distinct is not in effect. For the task, I added a function bytes_from_utf8() to utf8.c. It might resemble utf8_to_bytes() but it is not convenient to the task. Made a test for it and added to t/op/each.t - Changed do_print in doio.c to apply sv_utf8_(downgrade|upgrade) to the mortal copy of the argument SV. And changed t/io/utf8.t test 18 which expects print() to upgrade its argument. - re-implement sv_eq with bytes_from_utf8() - some bug fixes - tr/// does not handle UTF8 range (\x{}-\x{}) - \ before raw UTF8 character produced "Malformed UTF-8 character" warning. - "\x{100}\N{CENT SIGN}" is Malformed. Added tests for these 3. - and one silly bug (by me) with qu operator. p4raw-id: //depot/perl@8583
* Re: [Fwd: Scoping of %^H still broken in both perl@8269 and perl-5.6.1-TRIAL1]Alan Burlison2001-01-051-1/+1
| | | | | Message-ID: <3A5606C4.473D2226@uk.sun.com> p4raw-id: //depot/perl@8336
* Bump up Larry's copyright.Jarkko Hietaniemi2001-01-011-1/+1
| | | p4raw-id: //depot/perl@8289
* Retract #8261.Jarkko Hietaniemi2000-12-301-2/+1
| | | p4raw-id: //depot/perl@8262
* (Retracted by #8261). (Unsuccessful memory access tweaks.)Jarkko Hietaniemi2000-12-301-1/+2
| | | p4raw-id: //depot/perl@8261
* Additional patch for UTF8-keys (Re: perl@8016)Inaba Hiroto2000-12-091-33/+42
| | | | | | | Message-ID: <3A31F508.34F4BB23@st.rim.or.jp> exists() didn't work for UTF-8 keys, and neither did shared hash keys. p4raw-id: //depot/perl@8056
* dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-10/+2
| | | p4raw-id: //depot/perl@7984
* UTF-8 hash keys, patch from Inaba Hiroto.Jarkko Hietaniemi2000-12-041-16/+76
| | | p4raw-id: //depot/perl@7980
* Retract #7977, still too volatile (the euphemism of the dayJarkko Hietaniemi2000-12-041-17/+0
| | | | | for unfinished and buggy :-) p4raw-id: //depot/perl@7978
* (Retracted by #7978, too shaky yet.)Simon Cozens2000-12-041-0/+17
| | | | | | | | Subject: Re: utf8 in hash keys, implementor missing Message-ID: <20001202194935.A25673@pembro33.pmb.ox.ac.uk> The first step at UTF-8 hash keys. p4raw-id: //depot/perl@7977
* Hash lookup of constant strings optimization:Nick Ing-Simmons2000-09-031-44/+46
| | | | | | | | | | Introduce SvREADONLY && SvFAKE to flag an SV which has SvPVX pointing to string table (as per sharepvn). Add newSV_pvn_share to create such a thing. Make hv.c compare addresses of strings and skip string compare if equal. Make method_named and helem ops use these shared-string SVs when arg is constant. Make keys op return shared-string SVs (less clearly a win). p4raw-id: //depot/perl@7016
* fix large memory leak that has been around for ever, masked byGurusamy Sarathy2000-07-041-2/+7
| | | | | -DPURIFY (most of the arenas were never freed!) p4raw-id: //depot/perl@6298
* fixes for most warnings identified by gcc -WallGurusamy Sarathy2000-03-051-2/+2
| | | p4raw-id: //depot/perl@5540
* fix small interpreter leaks identified by PurifyGurusamy Sarathy2000-02-141-9/+21
| | | p4raw-id: //depot/perl@5084
* documentation patches (from Michael Schwern and YitzchakGurusamy Sarathy2000-02-081-4/+4
| | | | | Scott-Thoennes) p4raw-id: //depot/perl@5040
* set SvUTF8 on vectors only if there are chars > 127; update copyrightGurusamy Sarathy2000-02-061-1/+1
| | | | | years (from Gisle Aas) p4raw-id: //depot/perl@5009
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+200
| | | | | | | Stuhl <sho_pi@hotmail.com>); fix the markup format to be more flexible for better readability; add missing docs in sv.c; regenerate perltoc p4raw-id: //depot/perl@4915
* leak in change#4694 spotted by LarryGurusamy Sarathy1999-12-171-2/+2
| | | | | p4raw-link: @4694 on //depot/perl: 94f7643d7f26ed53393f1ab3452245da43de285e p4raw-id: //depot/perl@4696