| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
and XS?]
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <02ee01c8651b$17ef72f0$47ce58d0$@com>
p4raw-id: //depot/perl@33292
|
|
|
|
|
|
|
|
|
| |
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
to
#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN)
because the ({}) construction can be used under __STRICT_ANSI__
(and should be, because it avoids temporary use of PL_Sv).
p4raw-id: //depot/perl@33077
|
|
|
| |
p4raw-id: //depot/perl@33069
|
|
|
|
|
|
| |
(Make C<length undef> return undef).
Patch mostly by Rafael, with some fine tuning by me.
p4raw-id: //depot/perl@32969
|
|
|
|
|
| |
Exterminate! Exterminate! Exterminate!
p4raw-id: //depot/perl@32902
|
|
|
| |
p4raw-id: //depot/perl@32895
|
|
|
| |
p4raw-id: //depot/perl@32861
|
|
|
| |
p4raw-id: //depot/perl@32854
|
|
|
|
|
|
|
|
| |
offset as either a byte (if <256), or a 0 byte with a STRLEN before.
"better" in that the reading can be inlined, and even then the object
code is smaller (function calls have space overhead). So goodbye
Perl_sv_read_offset() and hello SvOOK_offset().
p4raw-id: //depot/perl@32838
|
|
|
|
|
|
|
|
|
|
|
| |
number in the part of the PVX that is being released. (It will always
fit, as chopping off 1 byte gives just enough space for recording a
delta of up to 127). This allows SvOOK() to co-exist with SvIOK_on(),
which means all the calls to SvOOK_off() [with the possibility of a
call to sv_backoff()] in SvIOK_on() can be removed. This ought to make
a lot of straight line code a little bit simpler.
OOK()d scalars can now be SVt_PV, as the IVX isn't needed.
p4raw-id: //depot/perl@32836
|
|
|
| |
p4raw-id: //depot/perl@32820
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
and regexp reference counting is via the regular SV reference counting.
This was not as easy at it looks.
p4raw-id: //depot/perl@32804
|
|
|
|
|
| |
Message-ID: <20071229181742.1933db40@r2d2>
p4raw-id: //depot/perl@32783
|
|
|
|
|
|
| |
SvPVutf8_force(), as otherwise the conditional expression will
always be false and the optimisation will never kick in.
p4raw-id: //depot/perl@32781
|
|
|
| |
p4raw-id: //depot/perl@32751
|
|
|
|
|
|
| |
Back this down to just checking to see if the sv is a PV or
not.
p4raw-id: //depot/perl@32750
|
|
|
|
|
| |
hold a reference, and convert it to a macro define prepare_SV_for_RV().
p4raw-id: //depot/perl@32737
|
|
|
|
|
| |
This frees up a scalar type for first class regular expressions.
p4raw-id: //depot/perl@32734
|
|
|
| |
p4raw-id: //depot/perl@32725
|
|
|
| |
p4raw-id: //depot/perl@32717
|
|
|
|
|
|
|
|
| |
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510711061136t52a1fe62waf384c4551612181@mail.gmail.com>
(core patch only)
p4raw-id: //depot/perl@32241
|
|
|
|
|
|
| |
Make xio_flags a U8, which is what it should have been all along
(rather than a char, which might be signed). B.xs had its wrapper as U8
p4raw-id: //depot/perl@32001
|
|
|
|
|
| |
a valid SvTYPE().
p4raw-id: //depot/perl@31941
|
|
|
| |
p4raw-id: //depot/perl@31512
|
|
|
|
|
|
|
| |
since change 26684 (which uses sv_setsv_flags to copy a value from an
SV in one interpreter context to an SV in another), despite what
change 31120 thought. ext/Compress/Raw/Zlib/t/07bufsize.t still fails.
p4raw-id: //depot/perl@31454
|
|
|
|
|
|
|
|
|
| |
SvUV instead of SvUVX, and SvPV* variants instead of SvPVX*.
Document that the non-x variants are preferable whenever the expression
has no side effects. (Compilers perform common subexression
elimination). Likewise SvREFCNT_inc simple variants are valid for all
cases apart from expressions with side effects.
p4raw-id: //depot/perl@31010
|
|
|
| |
p4raw-id: //depot/perl@30153
|
|
|
| |
p4raw-id: //depot/perl@29922
|
|
|
|
|
| |
(Currently it fails ext/Compress/Raw/Zlib/t/07bufsize.t)
p4raw-id: //depot/perl@29853
|
|
|
|
|
|
|
| |
Often, those macros simply test a bit in sv_flags, so
the return value should be assigned to a U32 instead of
a bool to avoid truncation. (bug perl #32884)
p4raw-id: //depot/perl@29718
|
|
|
| |
p4raw-id: //depot/perl@29679
|
|
|
|
|
| |
earlier we missed in av.h and hv.h)
p4raw-id: //depot/perl@29670
|
|
|
|
|
| |
*allocated structs, as these are not going to be needed again.
p4raw-id: //depot/perl@29664
|
|
|
|
|
|
|
|
|
| |
code attempting to upgrade a BIND to anything into sv_upgrade(), which
for now will croak, but in future can DTRT, for whatever TRT is decided
to be. Make SvOK() check the flags of the referenant for a BIND, as I
envisage that the only flag bit that will get set on a BIND is SVf_UTF8
even if the referant has a defined value.
p4raw-id: //depot/perl@29642
|
|
|
|
|
| |
is stored, there's no need for it.
p4raw-id: //depot/perl@29635
|
|
|
|
|
| |
is part of the xnv union.
p4raw-id: //depot/perl@29634
|
|
|
|
|
|
| |
in the xnv union. This frees up IVX for the PL_generation code, which
in turn will allow SvCUR to return to its real purpose.
p4raw-id: //depot/perl@29630
|
|
|
| |
p4raw-id: //depot/perl@29611
|
|
|
|
|
|
|
| |
to note when a proxy constant subroutine is copied. This allows us to
correctly set GvIMPORTED_CV_on() if the symbol is ever turned into a
real GV.
p4raw-id: //depot/perl@29566
|
|
|
|
|
| |
flag SVpgv_GP, and use this in isGV_with_GP_on/off.
p4raw-id: //depot/perl@29565
|
|
|
| |
p4raw-id: //depot/perl@29559
|
|
|
|
|
|
| |
Sorry about damaging the change history - dig through this change with
http://public.activestate.com/cgi-bin/perlbrowse?show_blame=Show+Annotated+File&filename=sv.h&rev=&change=29552
p4raw-id: //depot/perl@29554
|
|
|
|
|
| |
endian machines to hint to the compiler that a 16 bit read could work.
p4raw-id: //depot/perl@29552
|
|
|
|
|
|
| |
inadvertently deleted. Explain the setting and testing of
SVpbm_VALID.
p4raw-id: //depot/perl@29551
|
|
|
|
|
|
| |
Add the placeholder for new type, temporarily named BIND, for binding
and aliasing in 6 on 5.
p4raw-id: //depot/perl@29544
|
|
|
|
|
| |
are never called on PVGVs.
p4raw-id: //depot/perl@29537
|
|
|
| |
p4raw-id: //depot/perl@29536
|
|
|
|
|
| |
and signed/unsigned mismatches
p4raw-id: //depot/perl@29532
|
|
|
|
|
|
|
|
| |
which will likely equate to 4 bytes with padding. (But we add 2 bytes
to the SvPVX buffer...). However, the real win is that xpvbm is now
identical to xpvmg, and all active FBM compiled strings are SvVALID()
true, so now we can eliminate xpvbm, freeing a type for 6 on 5 proxies.
p4raw-id: //depot/perl@29527
|