summaryrefslogtreecommitdiff
path: root/utf8.c
Commit message (Collapse)AuthorAgeFilesLines
* assert() that every NN argument is not NULL. Otherwise we have theNicholas Clark2008-02-121-2/+125
| | | | | | | | | | | | ability to create landmines that will explode under someone in the future when they upgrade their compiler to one with better optimisation. We've already done this at least twice. (Yes, some of the assertions are after code that would already have SEGVd because it already deferences a pointer, but they are put in to make it easier to automate checking that each and every case is covered.) Add a tool, checkARGS_ASSERT.pl, to check that every case is covered. p4raw-id: //depot/perl@33291
* Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stackMarcus Holland-Moritz2008-01-041-4/+4
| | | | | | 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-2/+2
| | | | | | 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
* Fix various bugs in regex engine with mixed utf8/latin pattern and strings. ↵Yves Orton2007-12-171-0/+5
| | | | | | | Related to [perl #36207] among others Message-ID: <9b18b3110712170621h41de2c76k331971e3660abcb0@mail.gmail.com> p4raw-id: //depot/perl@32628
* Re: several compilation problems on VMS in perl@32039Craig A. Berry2007-10-061-2/+2
| | | | | | | From: "Craig A. Berry" <craig.a.berry@gmail.com> Message-ID: <c9ab31fc0710061147x3ee7f9bdg2b1bac3acd018bb2@mail.gmail.com> Date: Sat, 6 Oct 2007 13:47:03 -0500 p4raw-id: //depot/perl@32058
* newSV(size) and SvPOK_on() will be more efficient than newSVpvs("")Nicholas Clark2007-10-061-2/+2
| | | | | followed by SvGROW(size+1) p4raw-id: //depot/perl@32045
* Revert one hunk of change 32034 that had the possibility of being buggyNicholas Clark2007-10-061-0/+1
| | | | | | | | (the sprintf "%c" code will work correctly when the SV is UTF-8). Audit all the rest for UTF-8 correctness, and force SvUTF-8_off() in utf8.c to ensure correctness. (The string is reset to "", so this will not be a behaviour change.) p4raw-id: //depot/perl@32040
* Eliminate most *printf-like calls that use a simple "%c" format,Nicholas Clark2007-10-051-2/+4
| | | | | | replacing them with constructions that are more efficient because they avoid the overhead of the *printf format parser and interpreter code. p4raw-id: //depot/perl@32034
* s/\bunicode\b/Unicode/; # For everything not dual lifeNicholas Clark2007-06-241-1/+1
| | | p4raw-id: //depot/perl@31455
* move PL_tokenbuf into the PL_parser structDave Mitchell2007-05-211-8/+0
| | | p4raw-id: //depot/perl@31252
* move PL_in_my and PL_in_my_stash into the PL_parser structDave Mitchell2007-05-121-3/+0
| | | p4raw-id: //depot/perl@31203
* Avoid the need for 2 casts added in 31055 by using a better type forNicholas Clark2007-04-251-0/+1
| | | | | | the local variable. Add an assertion that another cast is not a data loss (and that there is no buffer overflow) p4raw-id: //depot/perl@31069
* Silence 5 "possible loss of data" warnings from VC6Steve Hay2007-04-241-1/+1
| | | p4raw-id: //depot/perl@31055
* Fix problems caused by downsizing in change 31017. (Which don't showNicholas Clark2007-04-221-1/+1
| | | | | up until you test on a "real" architecture) p4raw-id: //depot/perl@31023
* The last parameter to gv_stashpv/gv_stashpvn/gv_stashsv is a bitmaskNicholas Clark2007-01-251-1/+1
| | | | | of flags, not a boolean, so correct the documenation and callers. p4raw-id: //depot/perl@29977
* Update copyright years in .c filesRafael Garcia-Suarez2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29696
* 4th patch from: Marcus Holland-Moritz2007-01-041-1/+1
| | | | | | | | | Subject: [PATCH] Cleanup SVf arguments (2nd try) Message-ID: <20070101201613.4120d9ef@r2d2> Introduce an SVfARG() macro for %SVf (%-p here) arguments to perl's printf p4raw-id: //depot/perl@29687
* ; was RE: [PATCH perlio.c pp.c regcomp.c] silence format and comparison warningsRobin Barker2006-09-051-1/+1
| | | | | | From: "Robin Barker" <Robin.Barker@npl.co.uk> Message-ID: <2C2E01334A940D4792B3E115F95B7226120A21@exchsvr1.npl.ad.local> p4raw-id: //depot/perl@28786
* Re: A large-ish C++ TODO (Re: [PATCH] g++ stage 1 reached)Jarkko Hietaniemi2006-08-171-0/+7
| | | | | Message-ID: <44E49649.9090307@iki.fi> p4raw-id: //depot/perl@28734
* g++ large patchJarkko Hietaniemi2006-08-071-3/+4
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* Clear up most of the VC6 compiler warnings in the following smoke:Steve Hay2006-07-271-0/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/39733 p4raw-id: //depot/perl@28626
* z/OS: pp_sys.c, reg*.c, toke.c, utf8.cJarkko Hietaniemi2006-07-231-0/+4
| | | | | Message-ID: <44C24994.6020008@iki.fi> p4raw-id: //depot/perl@28607
* more accumulated cleanupsAndy Lester2006-06-061-16/+11
| | | | | Message-ID: <20060606052501.GA30469@petdance.com> p4raw-id: //depot/perl@28358
* Speed up utf8.c a bitAndy Lester2006-05-121-8/+6
| | | | | Message-ID: <20060512034101.GA10709@petdance.com> p4raw-id: //depot/perl@28176
* Add a cross reference to bytes_from_utf8() in the documentation forNicholas Clark2006-04-291-0/+2
| | | | | utf8_to_bytes(). Regenerate perlapi.pod. p4raw-id: //depot/perl@28015
* reduce gcc -ansi -pedantic noise plus a suggestionJarkko Hietaniemi2006-04-281-1/+1
| | | | | Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
* use NOOP macroAndy Lester2006-04-251-1/+1
| | | | | Message-ID: <20060424184451.GA1479@petdance.com> p4raw-id: //depot/perl@27958
* Fix coverity warning in utf8.cAndy Dougherty2006-04-101-3/+4
| | | | | Message-ID: <Pine.SOC.4.62.0604101117450.22851@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@27757
* Abstract all reads/writes of the hints in COPs with 2 new macros,Nicholas Clark2006-04-021-2/+2
| | | | | CopHINTS_get() and CopHINTS_set(). p4raw-id: //depot/perl@27677
* Random accumulated patchesAndy Lester2006-03-311-29/+28
| | | | | Message-ID: <20060331054228.GA18940@petdance.com> p4raw-id: //depot/perl@27641
* Perl_utf8_distance can be implemented as a call to Perl_utf8_length.Nicholas Clark2006-03-201-33/+1
| | | p4raw-id: //depot/perl@27553
* The two loops in Perl_utf8_distance can be merged.Nicholas Clark2006-03-201-24/+20
| | | p4raw-id: //depot/perl@27552
* unused context warningsAndy Lester2006-02-241-0/+6
| | | | | Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300
* save_re_context() and even errsv_save = newSVsv(ERRSV); can turnNicholas Clark2006-02-181-4/+7
| | | | | | PL_tainted back on, so defer turning if off as late as possible. This gets lib/locale.t working once more. p4raw-id: //depot/perl@27222
* Turn of tainting locally inside swash_init(), as the internalNicholas Clark2006-02-181-0/+4
| | | | | | | implementation of the regexp engine has nothing to do with user data, so when and where it happens to call require is agnostic of the current expression's taintedness. p4raw-id: //depot/perl@27221
* Sun Studio lint patchesAndy Lester2006-02-141-1/+1
| | | | | Message-ID: <20060214054617.GA8824@petdance.com> p4raw-id: //depot/perl@27177
* Trying my "remove the pTHXes" patch againAndy Lester2006-02-091-1/+1
| | | | | Message-ID: <20060209154018.GA14610@petdance.com> p4raw-id: //depot/perl@27136
* Given that the memory allocated in Perl_bytes_from_utf8 andNicholas Clark2006-02-061-2/+2
| | | | | | Perl_bytes_to_utf8 will immediately be written to, I see no need to allocate it zeroed. p4raw-id: //depot/perl@27112
* Re: [PATCH] s/Null(gv|hv|sv)/NULL/gSteven Schubiger2006-02-031-1/+1
| | | | | | Message-ID: <20060203152449.GI12591@accognoscere.homeunix.org> Date: Fri, 3 Feb 2006 16:24:49 +0100 p4raw-id: //depot/perl@27065
* A few more places that can use hv_fetchs().Gisle Aas2006-01-111-6/+6
| | | | | Ref change 26676. p4raw-id: //depot/perl@26795
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+26
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).Gisle Aas2006-01-041-5/+5
| | | | | Gets rid of many hardcoded string lengths. p4raw-id: //depot/perl@26641
* [patch@26561] utf8.c const issue.John E. Malmberg2006-01-031-1/+1
| | | | | | From: "John E. Malmberg" <wb8tyw@qsl.net> Message-ID: <43B97BF2.2050201@qsl.net> p4raw-id: //depot/perl@26593
* Update copyrights for files modified in 2006Rafael Garcia-Suarez2006-01-021-2/+2
| | | p4raw-id: //depot/perl@26562
* Making 0 pointers to NULLsAndy Lester2006-01-011-3/+6
| | | | | Message-ID: <20051231050558.GA29093@petdance.com> p4raw-id: //depot/perl@26558
* More consting, and putting stuff in embed.fncAndy Lester2005-12-061-15/+15
| | | | | Message-ID: <20051205194613.GB7791@petdance.com> p4raw-id: //depot/perl@26281
* Better variable names make code clearerSADAHIRO Tomoyuki2005-12-051-3/+10
| | | | | | Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup) Message-Id: <20051204162412.D720.BQW10602@nifty.com> p4raw-id: //depot/perl@26257
* Rework the error messages from the swashget code.SADAHIRO Tomoyuki2005-12-051-12/+8
| | | | | | Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup) Message-Id: <20051204162431.D723.BQW10602@nifty.com> p4raw-id: //depot/perl@26256
* Clarification and cleanup of the XS SWASHGET codeSADAHIRO Tomoyuki2005-12-051-12/+19
| | | | | | Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup) Message-Id: <20051204162508.D726.BQW10602@nifty.com> p4raw-id: //depot/perl@26255