summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).Nicholas Clark2008-01-051-1/+1
| | | p4raw-id: //depot/perl@32861
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-1/+1
| | | | | | and mortalizing them. Use these macros where possible. And also mX?PUSH[inpu] where possible. p4raw-id: //depot/perl@32821
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-1/+1
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set inNicholas Clark2008-01-031-1/+1
| | | | | | the flags. Move its implementation just ahead of sv_2mortal()'s for CPU cache locality. Refactor all code that can be to use this. p4raw-id: //depot/perl@32818
* Add a new function newSVpvn_flags(), which takes a third parameter ofNicholas Clark2008-01-021-2/+1
| | | | | | | | | | flag bits. Right now the only flag bit is SVf_UTF8, which will call SvUTF8_on() on the new SV for you. Provide a wrapper newSVpvn_utf8(), which takes a boolean, and passes in SVf_UTF8 if that is true. Refactor the core to use it where possible. It makes the source code clearer and smaller, but seems to be swings and roundabouts on object code size. p4raw-id: //depot/perl@32807
* Make struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,Nicholas Clark2008-01-021-1/+1
| | | | | | and regexp reference counting is via the regular SV reference counting. This was not as easy at it looks. p4raw-id: //depot/perl@32804
* First class regexps.Nicholas Clark2007-12-281-4/+2
| | | p4raw-id: //depot/perl@32751
* Regexps are now orange.Nicholas Clark2007-12-271-1/+1
| | | | | (Correct a comparison of $] with 5.011 in B.pm) p4raw-id: //depot/perl@32740
* Nullch and others were still alive and well in some of the operatingSteve Peters2007-12-231-1/+1
| | | | | | system specific directories. I think I've chainsawed all of them now, but I can't guarantee that it compiles anywhere from win32. p4raw-id: //depot/perl@32713
* With change 32676 moving the HvSHAREKEYS_on() into Perl_sv_upgrade()Nicholas Clark2007-12-201-7/+0
| | | | | calls to it can be eliminated from the version code. p4raw-id: //depot/perl@32678
* Bug fix for storing shared objects in shared structuresJerry D. Hedden2007-11-081-0/+20
| | | | | | | | From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510711061136t52a1fe62waf384c4551612181@mail.gmail.com> (core patch only) p4raw-id: //depot/perl@32241
* Bring version.pm core into compliance with CPAN releaseJohn Peacock2007-10-251-2/+2
| | | | | Message-ID: <471FF9BD.40204@havurah-software.org> p4raw-id: //depot/perl@32189
* In Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't useNicholas Clark2007-10-171-1/+2
| | | | | | | strlcpy() to forcibly truncate a string to a known length, when memcpy() and a write of '\0' will not only make the intent clear, but also do that exact job more efficiently. p4raw-id: //depot/perl@32125
* hv_stores() on a literal string is now fractionally more efficient thanNicholas Clark2007-09-211-13/+13
| | | | | hv_store(). p4raw-id: //depot/perl@31938
* Silence a load of "value computed is not used" warningsRafael Garcia-Suarez2007-09-211-13/+13
| | | p4raw-id: //depot/perl@31936
* version-0.73 (was Re: Change 31920: Don't use ~0 as a versionJohn Peacock2007-09-211-9/+35
| | | | | Message-ID: <46F31B47.6030601@cpan.org> p4raw-id: //depot/perl@31934
* SvRX() and SvRXOK() macrosÆvar Arnfjörð Bjarmason2007-06-181-0/+20
| | | | | | From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706172033h1908aa0ge15698204e0b79ed@mail.gmail.com> p4raw-id: //depot/perl@31409
* Patches to compile perl on Cray XT4 Catamount/Qk, by JarkkoRafael Garcia-Suarez2007-06-171-4/+20
| | | p4raw-id: //depot/perl@31404
* miscellaneaJarkko Hietaniemi2007-06-151-3/+6
| | | | | Message-ID: <4671FA51.4070001@iki.fi> p4raw-id: //depot/perl@31388
* Re: vsprintfAndy Dougherty2007-06-151-2/+29
| | | | | Message-ID: <Pine.LNX.4.64.0706141312510.31762@fractal.phys.lafayette.edu> p4raw-id: //depot/perl@31387
* eliminate PL_bufend from util.c (missed from #30820)Dave Mitchell2007-05-041-5/+6
| | | p4raw-id: //depot/perl@31135
* Fix threaded builds (broken by change #31112)Steve Hay2007-05-021-1/+1
| | | | | p4raw-link: @31112 on //depot/perl: 3497a01ff49c0a24f2db9e69c6bb89e36e940ed4 p4raw-id: //depot/perl@31115
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-0/+17
| | | p4raw-id: //depot/perl@31112
* Upgrade to version-0.7203.Rafael Garcia-Suarez2007-04-211-8/+35
| | | | | Plus a change in Module::Build::Version, specific to bleadperl. p4raw-id: //depot/perl@31005
* stop the cargo cult of (MEM_SIZE)~0Jarkko Hietaniemi2007-03-271-2/+2
| | | | | Message-Id: <200703271207.l2RC7qOC443040@kosh.hut.fi> p4raw-id: //depot/perl@30774
* util.c [PATCH] perlhack.pod (Was: Re: threads crashes in Tru64)Jarkko Hietaniemi2007-03-271-9/+18
| | | | | Message-ID: <46085C33.1030601@iki.fi> p4raw-id: //depot/perl@30771
* Silence compiler warning in util.cJerry D. Hedden2007-03-231-6/+6
| | | | | | From: "Jerry D. Hedden" <jdhedden@yahoo.com> Message-ID: <256688.25862.qm@web30215.mail.mud.yahoo.com> p4raw-id: //depot/perl@30725
* Change 30661 could result in undefined variableJerry D. Hedden2007-03-211-1/+1
| | | | | | | From: "Jerry D. Hedden" <jdhedden@yahoo.com> Message-ID: <915076.64236.qm@web30212.mail.mud.yahoo.com> Date: Wed, 21 Mar 2007 12:47:52 -0700 (PDT) p4raw-id: //depot/perl@30670
* Remove the (sometimes) unused variable from change 30652.Nicholas Clark2007-03-211-1/+3
| | | p4raw-id: //depot/perl@30661
* In safecalloc, use the system calloc() for the non-DEBUGGING case, asNicholas Clark2007-03-201-8/+17
| | | | | it may be able to memset() to 0 for free. p4raw-id: //depot/perl@30652
* Upgrade to version.pm 0.71, by John PeacockRafael Garcia-Suarez2007-03-191-7/+36
| | | p4raw-id: //depot/perl@30629
* Fix a couple of typos in internal docsRafael Garcia-Suarez2007-02-281-2/+2
| | | p4raw-id: //depot/perl@30421
* [perl #41560] [PATCH] crash in Perl_vmess when GvIOp is null Devin Heitmueller2007-02-251-1/+4
| | | | | | From: "Devin Heitmueller" (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.6.HEAD-24617-1172018300-131.41560-75-0@perl.org> p4raw-id: //depot/perl@30398
* blead (honestly :-) g++ with -DPERL_GLOBAL_STRUCT_PRIVATE needs tweakingJarkko Hietaniemi2007-02-191-11/+16
| | | | | | | | Message-Id: <20070219174107.63EEB43A67@anubis.hut.fi> Plus a regen picked up changes in pod/perlapi.pod related to change #30347. p4raw-id: //depot/perl@30362
* Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.70.tar.gzJohn Peacock2007-02-131-0/+3
| | | | | Message-ID: <45D127AB.3050904@rowman.com> p4raw-id: //depot/perl@30254
* Change 29502 wasn't perfect - you need to remove any extra trailingNicholas Clark2007-02-021-1/+1
| | | | | | | "\n" added by fbm_compile(), before recompiling with the same flags. In turn, to do that, it's best to store the flags even for short "PVBM"s. p4raw-id: //depot/perl@30092
* Stop S_incline needing to temporarily write a '\0' into its passed-inNicholas Clark2007-01-261-0/+21
| | | | | | buffer. (Requires adding gv_fetchfile_flags(), savesharedpvn() and CopFILE_setn() to provide pointer/length versions of APIs) p4raw-id: //depot/perl@30015
* Silence various VC6 warningsSteve Hay2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29692
* The first three patches from:Marcus Holland-Moritz2007-01-041-3/+3
| | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Adds (void*) casts to %-p and %p printf arguments p4raw-id: //depot/perl@29686
* Re: [PATCH] Symbian port: add Series 90 supportJarkko Hietaniemi2007-01-041-0/+6
| | | | | | | Message-ID: <459CBC6A.4060806@iki.fi> Fixes a VC7/VC7.1 linker error following #29650/#29651 p4raw-id: //depot/perl@29685
* Welcome to 2007! Time to update copyrights from changes earlierSteve Peters2007-01-011-1/+1
| | | | | today. p4raw-id: //depot/perl@29653
* Symbian port: add Series 90 supportJarkko Hietaniemi2007-01-011-2/+66
| | | | | Message-ID: <4599114F.8020307@iki.fi> p4raw-id: //depot/perl@29650
* In Perl_fbm_compile, really rarest should be U32 not I32, as it isNicholas Clark2006-12-291-1/+1
| | | | | set from a U32, and used as an array index. p4raw-id: //depot/perl@29637
* Eliminate BmPREVIOUS_set - with the complexity gone from how the datumNicholas Clark2006-12-281-1/+1
| | | | | is stored, there's no need for it. p4raw-id: //depot/perl@29635
* Move all the FBM data fields from the table into a struct xbm_s whichNicholas Clark2006-12-281-5/+6
| | | | | is part of the xnv union. p4raw-id: //depot/perl@29634
* OS/2-specific fixes, round IIIlya Zakharevich2006-12-181-0/+4
| | | | | Message-ID: <20061218084524.GA14866@powdermilk.math.berkeley.edu> p4raw-id: //depot/perl@29580
* Text mode wrongly set on pipe file descriptorsIlya Zakharevich2006-12-131-0/+8
| | | | | Message-ID: <20061213072825.GA26300@powdermilk.math.berkeley.edu> p4raw-id: //depot/perl@29550
* Eliminate PVBM. Store fast Boyer-Moore tables in PVGV.Nicholas Clark2006-12-131-3/+4
| | | | | | Add the placeholder for new type, temporarily named BIND, for binding and aliasing in 6 on 5. p4raw-id: //depot/perl@29544
* Silence VC warnings about possible operator precedence problemsSteve Hay2006-12-121-1/+1
| | | | | and signed/unsigned mismatches p4raw-id: //depot/perl@29532
* Fix allocation bug in change 29524.Nicholas Clark2006-12-111-0/+2
| | | p4raw-id: //depot/perl@29526