summaryrefslogtreecommitdiff
path: root/hv.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* delete() should return the value as is, not a copy thereofGurusamy Sarathy1999-12-171-4/+8
| | | p4raw-id: //depot/perl@4694
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-1/+9
| | | p4raw-id: //depot/perl@4602
* preliminary support for perl_clone() (still needs work inGurusamy Sarathy1999-11-081-21/+38
| | | | | | | | the following areas: SVOPs must indirect via pad; context stack, scope stack, and runlevels must be cloned; must hook up the virtualized pseudo-process support provided by "host"; ...) p4raw-id: //depot/perl@4538
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-2/+5
| | | | | | | due to leaked scalar, investigation pending) Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB29C6C8E@mbtlipnt02.btlabs.bt.co.uk> Subject: [PATCH 5.005_57] Lexical Warnings - mandatory warning are now default warnings p4raw-id: //depot/perl@3640
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-10/+10
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-42/+35
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* remove _() non-ansismGurusamy Sarathy1999-06-021-5/+5
| | | p4raw-id: //depot/perl@3518
* hv.c calling negative malloc()Ilya Zakharevich1999-05-251-1/+3
| | | | | Message-ID: <19990524174356.A1944@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3470
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-18/+32
| | | | | | | | | | needed to open myconfig.SH rather than myconfig; sundry adjustments to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it work under win32; getenv_sv() changed to getenv_len() since SVs aren't visible in the lower echelons; remove bogus exports from config.sym; PERL_OBJECT-ness for C++ exception support; null out IoDIRP in filter_del() or sv_free() will attempt to close it p4raw-id: //depot/perl@3387
* applied non-conflicting parts of suggested patchCharles Bailey1999-05-051-12/+34
| | | | | | Message-id: <01J9AZY8I2PW001O2S@mail.newman.upenn.edu> Subject: [Patch 5.005_56] Revised VMS patch p4raw-id: //depot/perl@3306
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-11/+11
| | | p4raw-id: //depot/perl@3217
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* add const qualifier to most char* prototypes, handle ripple effectGurusamy Sarathy1999-02-151-8/+9
| | | p4raw-id: //depot/perl@2924
* typo in newHVhv()Gurusamy Sarathy1998-11-081-3/+2
| | | p4raw-id: //depot/perl@2214
* integrate changes#1982,2014,2021 (from maint-5.005)Gurusamy Sarathy1998-10-251-2/+2
| | | | | | | p4raw-link: @2021 on //depot/maint-5.005/perl: ece095e7b265a16d4ec3543b1418100f9c635a87 p4raw-link: @2014 on //depot/maint-5.005/perl: cca0b9804acab4b7678c0f185888d57497a5c2a9 p4raw-link: @1982 on //depot/maint-5.005/perl: fe676099d996f70caaedeb6ae85adc3ee59d2240 p4raw-id: //depot/perl@2059
* lock sv_mutex in new_he() and del_he() for USE_THREADSDrago Goricanec1998-09-251-10/+12
| | | | | | Message-Id: <19980924220109J.drago@otsd.ts.fujitsu.co.jp> Subject: [PATCH 5.005_51] Re: Perl 5.005_51 not yet multi Thread safe p4raw-id: //depot/perl@1880
* provide locked access to string table for USE_THREADSGurusamy Sarathy1998-09-241-0/+4
| | | p4raw-id: //depot/perl@1863
* complete s/foo/PL_foo/ changes (all escaped cases identified withGurusamy Sarathy1998-07-201-4/+4
| | | | | | brute force search script). Result builds and passes all tests on Solaris. win32 and PERL_OBJECT are still untested. p4raw-id: //depot/perl@1578
* PL_ for perl's mallocNick Ing-Simmons1998-07-191-2/+2
| | | p4raw-id: //depot/ansiperl@1569
* PL_ prefix to all perlvars, part1Nick Ing-Simmons1998-07-181-28/+28
| | | | | Builds and passes all tests at one limit i.e. -DPERL_GLOBAL_STRUCT p4raw-id: //depot/ansiperl@1532
* applied suggested fix for xhv_array sizing, with portability tweaksGisle Aas1998-07-051-18/+19
| | | | | | Subject: Re: [PATCH] Re: perl5.004_69 core dump Message-ID: <m3af6qowmk.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1313
* patchlevel up to 5.004_70, various tweaksGurusamy Sarathy1998-07-051-29/+33
| | | | | | | | * fix taint problems due to maintbranch regression * PERL_OBJECT now builds again * deal with C++ strong-typing problems in hv.c * fix mismatch in "reserved word" diagnostic p4raw-id: //depot/perl@1311
* simplify xhv_array sizingGisle Aas1998-07-041-19/+6
| | | | | | Subject: Re: [PATCH] Re: perl5.004_69 core dump Message-ID: <m3yauav9bt.fsf@furu.g.aas.no> p4raw-id: //depot/perl@1304
* added patch for overloading constants, made PERL_OBJECT-awareIlya Zakharevich1998-06-291-0/+39
| | | | | Message-Id: <199806270328.XAA21088@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1259
* applied patch, regen headersIlya Zakharevich1998-06-231-4/+3
| | | | | | Message-Id: <199806220819.EAA03295@monk.mps.ohio-state.edu> Subject: [PATCH 5.004_67] Malloc size feedback p4raw-id: //depot/perl@1201
* [asperl] integrate mainline changes (untested)Gurusamy Sarathy1998-05-181-1/+1
|\ | | | | p4raw-id: //depot/asperl@1010
| * [win32] make hv_iterinit() return HvKEYS()SynaptiCAD, Inc.1998-05-031-1/+1
| | | | | | | | | | | | Message-Id: <3.0.1.32.19980502162922.009e6320@www.syncad.com> Subject: incorrect return value for hv_iterinit p4raw-id: //depot/win32/perl@914
* | [asperl] integrate mainline changesGurusamy Sarathy1998-04-081-9/+13
|\ \ | |/ | | p4raw-id: //depot/asperl@884