summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* PERL_HASH() casting games so that our hashed data is "unsignedJarkko Hietaniemi2002-05-171-8/+8
| | | | | | | | | char" but old code using just a "char" doesn't need changes. (The change is using a temporary pointer instead of a direct cast to unsigned char* which would blindly cast anything, not just char pointers.) (The problem arose in MacOS Classic, as seen by Pudge, the cure by Nicholas Clark.) p4raw-id: //depot/perl@16656
* Explicit casts due to #16542.Jarkko Hietaniemi2002-05-111-8/+8
| | | p4raw-id: //depot/perl@16547
* More valgrind findings: e.g. t/op/utfhash.t.Jarkko Hietaniemi2002-04-281-0/+1
| | | p4raw-id: //depot/perl@16238
* More VC5-induced casting found by Nikola Knezevic.Jarkko Hietaniemi2002-04-271-2/+2
| | | p4raw-id: //depot/perl@16232
* fixes for all the warnings reported by Visual C (most of thisGurusamy Sarathy2002-04-211-14/+15
| | | | | | change is from change#12026) p4raw-link: @12026 on //depot/maint-5.6/perl: ff42b73b40f5a895aef4bed81c794f468e0609bc p4raw-id: //depot/perl@16048
* S_ stands sfor static.Jarkko Hietaniemi2002-04-211-3/+3
| | | p4raw-id: //depot/perl@16036
* Re: Unbalanced string table refcount (was: perl@15930)Nicholas Clark2002-04-161-4/+20
| | | | | Message-ID: <20020416212241.GA315@Bagpuss.unfortu.net> p4raw-id: //depot/perl@15958
* [dodgy PATCH] Re: [Storable] utf8 keys started working!Nicholas Clark2002-04-131-16/+50
| | | | | Message-ID: <20020413015806.GA371@Bagpuss.unfortu.net> p4raw-id: //depot/perl@15893
* Retract #15793 since #15775 should fix the problem.Jarkko Hietaniemi2002-04-071-1/+0
| | | p4raw-id: //depot/perl@15794
* (Retracted by #15794)Mattia Barbon2002-04-071-0/+1
| | | | | | | Subject: [PATCH] hv.c From: "Mattia Barbon" <mbarbon@dsi.unive.it> Message-ID: <3CB056EC.16340.1119992@localhost> p4raw-id: //depot/perl@15793
* Re: perl@15772Nicholas Clark2002-04-071-1/+1
| | | | | Message-ID: <20020407110641.O10686@plum.flirble.org> p4raw-id: //depot/perl@15775
* Signedness nits.Jarkko Hietaniemi2002-04-061-2/+2
| | | p4raw-id: //depot/perl@15759
* Make hv_notallowed a static as suggested by Nicholas Clark;Jarkko Hietaniemi2002-04-061-29/+30
| | | | | | and synchronize the nomenclature to talk about restricted (not fixed) hashes. p4raw-id: //depot/perl@15758
* Re: the dirty half dozen (Re: perl@15662)Nicholas Clark2002-04-061-169/+390
| | | | | | | Message-ID: <20020405232117.GE323@Bagpuss.unfortu.net> (with the last one reversed) p4raw-id: //depot/perl@15757
* If Unicode keys are entered to a hash, a bit is turned on.Jarkko Hietaniemi2002-03-221-1/+15
| | | | | | | | | | If the bit is on, when the keys are fetched from the hash (%h, each %h, keys %h), the Unicodified versions of the keys are returned if needed. This solution errs on the size of over-Unicodifying, the old solution erred on the side of under-Unicodifying. As long as the hash keys can be a mix of byte and Unicode strings, a perfect fit is hard to come by. p4raw-id: //depot/perl@15407
* 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