summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Make the UTF-8 decoding stricter and more verbose whenJarkko Hietaniemi2000-10-241-3/+3
| | | | | | | | | | | | malformation happens. This involved adding an argument to utf8_to_uv_chk(), which involved changing its prototype, and prefer STRLEN over I32 for the UTF-8 length, which as a domino effect necessitated changing the prototypes of scan_bin(), scan_oct(), scan_hex(), and reg_uni(). The stricter UTF-8 decoding checking uses Markus Kuhn's UTF-8 Decode Stress Tester from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt p4raw-id: //depot/perl@7416
* Re: [ID 20001009.004] SEGV from sprintf in a thread Hugo van der Sanden2000-10-101-0/+2
| | | | | Message-Id: <200010101310.OAA00953@hugo.hybyte.com> p4raw-id: //depot/perl@7186
* Introduce NO_ENVIRON_ARRAY (and USE_ENVIRON_ARRAY) definesJarkko Hietaniemi2000-10-031-3/+3
| | | | | as suggested by Olaf Flebbe and Nicholas Clark. p4raw-id: //depot/perl@7126
* Epoc updateOlaf Flebbe2000-10-031-3/+4
| | | | | Message-ID: <26423.969484586@www10.gmx.net> p4raw-id: //depot/perl@7124
* Inside require() $^S was always left undefined.Ilya Zakharevich2000-10-031-1/+1
| | | | | | Subject: Re: Tiny 2-byte change to fix debugger's eval bug Message-ID: <20000927185449.A24927@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@7120
* The return value of setlocale must be copied away.Alan Burlison2000-09-141-3/+29
| | | | | | Subject: [ID 20000913.001] Heap corruption in Perl_init_i18nl10n Message-Id: <39BF9CE9.3D7FBBDD@uk.sun.com> p4raw-id: //depot/perl@7070
* sscanf() may be the only way to read long doubles from strings.Jarkko Hietaniemi2000-08-311-6/+7
| | | p4raw-id: //depot/perl@6937
* Get -DLEAKTEST to compile (not necessarily to work, mind)Jarkko Hietaniemi2000-08-171-1/+6
| | | | | | | | | | | | | | | Subject: [ID 20000724.006] -DLEAKTEST problem From: Gregory Martin Pfeil <pfeilgm@technomadic.org> Date: Tue, 25 Jul 2000 00:36:32 -0500 Message-Id: <20000725003632.A26186@www.llamacom.com> Reminder sent Subject: [PATCH bleadperl@6647] -DLEAKTEST compile error From: Hugo <hv@crypt.compulink.co.uk> Date: Thu, 17 Aug 2000 15:23:42 +0100 Message-Id: <200008171423.PAA06749@crypt.compulink.co.uk> p4raw-id: //depot/perl@6674
* on windows, the return values from wait() and waitpid() don'tGurusamy Sarathy2000-08-161-0/+2
| | | | | match those of pseudo-pids p4raw-id: //depot/perl@6659
* warn is a macro, avoid using at a variable to avoid warningsGurusamy Sarathy2000-08-101-7/+7
| | | | | | in some configurations; readdir.t is too conservative in estimating number of *.t's p4raw-id: //depot/perl@6562
* Double check that we have a dirhandle.Jarkko Hietaniemi2000-08-081-2/+2
| | | p4raw-id: //depot/perl@6557
* Tiny tidying on report_evil_fh().Jarkko Hietaniemi2000-08-071-8/+8
| | | p4raw-id: //depot/perl@6541
* Have symbols for the IoTYPEs.Jarkko Hietaniemi2000-08-061-2/+2
| | | p4raw-id: //depot/perl@6532
* Continue fixing the io warnings. This alsoJarkko Hietaniemi2000-08-061-5/+7
| | | | | | | sort of fixes bug ID 20000802.003: the core dump is no more. Whether the current behaviour is correct (giving a warning: "Not a format reference"), is another matter. p4raw-id: //depot/perl@6531
* Essential prototype changes were missing from #6527.Jarkko Hietaniemi2000-08-051-9/+16
| | | | | Also make report_evil_fh() more bomb-proof. p4raw-id: //depot/perl@6528
* [ID 20000724.004] Perl interpreter segfault when using built-in flockRonald F. Guilmette2000-08-051-17/+35
| | | | | Message-Id: <200007242247.PAA52177@monkeys.com> p4raw-id: //depot/perl@6527
* Remove the extraneous "main::" prefix from all theGurusamy Sarathy2000-08-021-1/+1
| | | | | | | | "opened only for", "on closed", and "never opened" warnings. Subject: Re: inappropriate warning Message-Id: <200003201928.LAA32224@maul.ActiveState.com> p4raw-id: //depot/perl@6489
* rename totally bletcherous SvLOCK() thingy (doesn't do what theGurusamy Sarathy2000-07-141-4/+2
| | | | | name suggests anyway) p4raw-id: //depot/perl@6398
* integrate cfgperl changes#6293..6324 into mainlineGurusamy Sarathy2000-07-111-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | p4raw-link: @6324 on //depot/cfgperl: 81bf48a6dbba4b295dfa172a17ca70b654dbf225 p4raw-link: @6293 on //depot/cfgperl: 6e37ea6052902cde1aeb08a2129ffc7c8ea53736 p4raw-id: //depot/perl@6369 p4raw-branched: from //depot/cfgperl@6368 'branch in' lib/Win32.pod lib/lib_pm.PL p4raw-deleted: from //depot/cfgperl@6368 'delete in' pod/Win32.pod (@5937..) pod/buildtoc (@6091..) lib/lib.pm.PL (@6227..) pod/Makefile (@6232..) p4raw-integrated: from //depot/cfgperl@6368 'copy in' thread.h (@5656..) lib/warnings/register.pm (@5704..) ext/B/B/Stash.pm (@5972..) lib/CGI/Util.pm (@6034..) util.c (@6217..) gv.c (@6244..) pp.c (@6260..) doop.c (@6269..) pod/perlfunc.pod (@6277..) pp_ctl.c (@6293..) makedef.pl (@6301..) embed.h global.sym objXSUB.h perlapi.c proto.h (@6305..) win32/Makefile (@6307..) Makefile.SH (@6309..) t/op/method.t (@6312..) sv.h (@6315..) 'ignore' op.c (@6273..) 'merge in' embed.pl win32/win32.c (@6305..) p4raw-integrated: from //depot/cfgperl@6324 'merge in' toke.c (@6307..) p4raw-branched: from //depot/cfgperl@6323 'branch in' pod/buildtoc.PL (@6319..) p4raw-integrated: from //depot/cfgperl@6323 'copy in' pod/perl.pod (@6319..) pod/perltoc.pod (@6322..) 'merge in' MANIFEST (@6319..) p4raw-branched: from //depot/cfgperl@6319 'branch in' pod/Makefile.SH p4raw-integrated: from //depot/cfgperl@6315 'ignore' pp_hot.c (@6313..) p4raw-integrated: from //depot/cfgperl@6311 'copy in' ext/POSIX/POSIX.pod (@6296..) p4raw-integrated: from //depot/cfgperl@6307 'merge in' doio.c (@6223..)
* integrate cfgperl change#6217 into mainlineGurusamy Sarathy2000-07-111-4/+4
| | | | | p4raw-link: @6217 on //depot/cfgperl: cc9b67681954df413fe79f7c379e7b91a3121259 p4raw-id: //depot/perl@6347
* integrate cfgperl changes#6207..6210 into mainlineGurusamy Sarathy2000-07-111-0/+34
| | | | | | p4raw-link: @6210 on //depot/cfgperl: b8b4c9f3cf6ef09c878a80ff97526a69902a44ca p4raw-link: @6207 on //depot/cfgperl: b37a7757477319a5fcdd5131db15046064f631c4 p4raw-id: //depot/perl@6345
* Signals-be-gone for microperl.Jarkko Hietaniemi2000-06-011-1/+8
| | | p4raw-id: //depot/cfgperl@6193
* microperl changes from Simon Cozens; Makefile for microperlJarkko Hietaniemi2000-05-311-7/+10
| | | | | | written from scratch; few casts added as microperl compilation doesn't have all prototypes available. p4raw-id: //depot/cfgperl@6174
* OS/2 tweaks for usethreads build (from Rocco CaputoGurusamy Sarathy2000-05-281-1/+1
| | | | | <troc@netrus.net>) p4raw-id: //depot/perl@6149
* MacOS support, part 1 (from Matthias NeeracherGurusamy Sarathy2000-05-281-1/+1
| | | | | <neeri@iis.ee.ethz.ch>) p4raw-id: //depot/perl@6143
* enable propagating exception objects via Perl_croak() in XS codeGurusamy Sarathy2000-05-281-13/+31
| | | | | (from Gisle Aas) p4raw-id: //depot/perl@6125
* Integrate with Sarathy.Jarkko Hietaniemi2000-05-021-11/+26
|\ | | | | p4raw-id: //depot/cfgperl@6045
| * change#3798 broke the meaning of "\0_7_7", tr/\0_// etc.; fix itGurusamy Sarathy2000-05-021-11/+26
| | | | | | | | | | | | | | | | such that underscores are only ignored in literal numbers, "\x{...}", and hex/oct argument p4raw-link: @3798 on //depot/cfgperl: 252aa0820e6bce274b33bd342cfc65e18a59a165 p4raw-id: //depot/perl@6044
* | Use HUGE_VALL if applicable.Jarkko Hietaniemi2000-05-011-2/+5
|/ | | p4raw-id: //depot/cfgperl@6037
* save RE context when calling __WARN__ and __DIE__ hooks;Gurusamy Sarathy2000-03-221-3/+10
| | | | | | | | add missing stack-of-stacks logic for new code that came in with lexical warnings (this fixes coredumps from -Mdiagnostics when the warnings happens to come from within the RE engine) p4raw-id: //depot/perl@5877
* make parenthetic warnings look consistent; make diagnostic onGurusamy Sarathy2000-03-211-1/+1
| | | | | "use 5.6" et al mention the alternate form; pod fixups p4raw-id: //depot/perl@5851
* fixes for most warnings identified by gcc -WallGurusamy Sarathy2000-03-051-8/+7
| | | p4raw-id: //depot/perl@5540
* various shenanigans in change#5342Gurusamy Sarathy2000-02-291-0/+8
| | | | | p4raw-link: @5342 on //depot/perl: ba869debd80c55cfae8e9d4de0991d62f9efcb9b p4raw-id: //depot/perl@5343
* support fetching current interpreter from TLS under useithreadsGurusamy Sarathy2000-02-291-12/+30
| | | p4raw-id: //depot/perl@5342
* make change#3386 a build-time option (avoids problems due toGurusamy Sarathy2000-02-201-0/+2
| | | | | | | perl_run() longjmping out) p4raw-link: @3386 on //depot/perl: 312caa8e97f1c7ee342a9895c2f0e749625b4929 p4raw-id: //depot/perl@5162
* some rearrangement of the includes for easier "microperl" build;Gurusamy Sarathy2000-02-191-8/+1
| | | | | add PERL_MICRO guards supplied by Simon Cozens <simon@brecon.co.uk> p4raw-id: //depot/perl@5143
* more purification (pp_require() could access free memory; vdie()Gurusamy Sarathy2000-02-131-0/+1
| | | | | | | | could think message was random length when passed a null argument; utilize() didn't set up the hash for the method name leading to pp_method_named() accessing random state; PL_curpm wasn't zeroed properly) p4raw-id: //depot/perl@5072
* 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
* use builtin __CYGWIN__ rather than -DCYGWIN (from Eric FiferGurusamy Sarathy2000-02-061-3/+3
| | | | | <EFifer@sanwaint.com>) p4raw-id: //depot/perl@5008
* autogenerate API listing from comments in the source (from BenjaminGurusamy Sarathy2000-01-281-0/+57
| | | | | | | 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
* patch to report warnings on bogus filehandles passed to flock(),Gurusamy Sarathy2000-01-211-1/+22
| | | | | | more consistent warnings, from Greg Bacon <gbacon@itsc.uah.edu> (slightly modified) p4raw-id: //depot/perl@4830
* cygwin support tweaks (from Eric Fifer <EFifer@sanwaint.com>)Gurusamy Sarathy2000-01-051-1/+1
| | | p4raw-id: //depot/perl@4755
* usethreads build fixups for NeXTstep (as suggested by Hans Mulder)Gurusamy Sarathy2000-01-021-4/+8
| | | p4raw-id: //depot/perl@4746
* cygwin update from Eric Fifer <EFifer@sanwaint.com>Gurusamy Sarathy1999-12-281-3/+3
| | | p4raw-id: //depot/perl@4717
* bring in basic threads stuff under USE_ITHREADSGurusamy Sarathy1999-12-231-3/+3
| | | p4raw-id: //depot/perl@4704
* more complete pseudo-fork() support for WindowsGurusamy Sarathy1999-12-011-2/+2
| | | p4raw-id: //depot/perl@4602
* sundry cleanups for cloned interpreters (only known failure modeGurusamy Sarathy1999-11-141-2/+2
| | | | | | is due to regexps keeping non-constant data in their compiled structures) p4raw-id: //depot/perl@4579
* typoGurusamy Sarathy1999-11-131-1/+1
| | | p4raw-id: //depot/perl@4557
* Integrate with Sarathy.Jarkko Hietaniemi1999-11-111-17/+7
|\ | | | | p4raw-id: //depot/cfgperl@4549
| * another change towards a shareable optree: avoid pointer to filegvGurusamy Sarathy1999-11-111-2/+2
| | | | | | | | | | | | | | | | | | in COP; revert parts of change#4485 and s/xcv_filegv/xcv_file/ (CvFILE() may yet come in handy somewhere); adjust compiler doodads to suit p4raw-link: @4485 on //depot/perl: b195d4879f55e1610299cb9b1b55356940c2a577 p4raw-id: //depot/perl@4545