| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
category to a new 'illegalproto' subcategory.
Two warnings can be emitted when parsing a prototype -
Illegal character in prototype for %s : %s
Prototype after '%c' for %s : %s
The first one is emitted when any invalid character is found, the latter
when further prototype-type stuff is found after a slurpy entry (i.e. valid
character but in such a place as to be a no-op, and therefore likely a bug).
These warnings are distinct from those emitted when a sub is overwritten by
one with a different prototype, and when calls are made to subroutines with
prototypes - those are in the pre-existing sub-category 'prototype'.
Since modules such as signatures.pm and Web::Simple only need to disable
the warnings during parsing, I chose to add a new category containing only
these. Moving these warnings into the 'prototype' sub-category would have
forced authors to disable more warnings than they intended, and the entire
raison d'etre of this patch is to allow the specific warnings involved to
be disabled.
In order to maintain compatibility with existing code, the new location
needed to be a sub-category of 'syntax' - this means that
no warnings 'syntax';
will continue to work as expected - even in cases like Web::Simple where all
subcategories extant prior to this patch are re-enabled (this is another
reason why a move into the 'protoype' category would not achieve the desired
goal).
The category name 'illegalproto' was chosen because the most common warning
to encounter is the "Illegal character" one, and therefore 'illegalproto'
while minorly inaccurate by ignoring the (relatively recent and unknown)
second warning is an easy name to spot on an initial skim of perllexwarn
and will behave as expected by also disabling the case of an unusual prototype
that happens to look like a normal one.
This patch updates pod/perllexwarn.pod, perldiag.pod and perl5113delta.pod
to document the new category, toke.c and warnings.pl to create and implement
the new category, and a new test t/op/protowarn.t that verifies the new
behaviour in a number of cases. It also includes the files generated by
regen.pl that are found in the repo - notably warnings.h and lib/warnings.pm.
|
|
|
|
|
|
| |
The core never uses WARN3() or WARN4(), and rarely uses WARN2(), so the
previous code, effectively an unwrapped loop, wasn't a speed up. Functionally
equivalent smaller code fits better into CPU caches.
|
|
|
|
|
|
| |
the limit of representation in NVs, using a new warnings category
"imprecision".
p4raw-id: //depot/perl@32990
|
|
|
| |
p4raw-id: //depot/perl@31386
|
|
|
| |
p4raw-id: //depot/perl@30365
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ 28144]
In Perl_Gv_AMupdate(), there's no need to call sv_unmagic() if we know
the magic isn't there.
[ 28145]
Simplify the non-printable name error reporting code in Perl_allocmy().
[ 28176]
Subject: [PATCH] Speed up utf8.c a bit
Date: Thu, 11 May 2006 22:41:01 -0500
Message-ID: <20060512034101.GA10709@petdance.com>
[ 28178]
The upgrade/croak order in Perl_sv_utf8_encode() seemed utterly
backwards. It now checks for readonly *first*.
[ 28179]
Subject: [PATCH] Proper use of static funcs in toke.c and pp_sys.c
From: andy@petdance.com (Andy Lester)
Date: Tue, 9 May 2006 12:27:30 -0500
Message-ID: <20060509172730.GA5272@petdance.com>
[ 28180]
Subject: [PATCH] upgrade bytes_to_uni
From: andy@petdance.com (Andy Lester)
Date: Fri, 12 May 2006 00:21:23 -0500
Message-ID: <20060512052123.GA21648@petdance.com>
[ 28194]
Subject: [PATCH] S_reguni should return its length
From: andy@petdance.com (Andy Lester)
Date: Sun, 14 May 2006 09:46:32 -0500
Message-ID: <20060514144632.GA20935@petdance.com>
ooops, and also something in blead that wasn't meant to sneak in:
Change PERL_WARNHOOK_FATAL to &PL_sv_placeholder, rather than some
evil cast relative to NULL.
p4raw-link: @28194 on //depot/perl: 71207a3462fa4c2b33c5608a4362ac40e975ecdb
p4raw-link: @28180 on //depot/perl: 64844641e1be28fdf8b7bba9436537339624f40b
p4raw-link: @28179 on //depot/perl: 931e0695c454f4c18f68d30775151862650cc4d8
p4raw-link: @28178 on //depot/perl: a5f5288a1ce96404c41043e92557b8c1a5ad9e30
p4raw-link: @28176 on //depot/perl: 3ebfea2846d81f58e86dfcb7f9e09300e5dfcd17
p4raw-link: @28145 on //depot/perl: d1544d85966c2f41014a6f408fd81b36501caa7c
p4raw-link: @28144 on //depot/perl: 14899595d82ccba509ac7743655764129ed32177
p4raw-id: //depot/perl@29980
|
|
|
|
|
|
| |
on by default, without having to play games with the
warning bits. Add a test for -t.
p4raw-id: //depot/perl@29717
|
|
|
|
|
| |
to warnings.pl
p4raw-id: //depot/perl@28666
|
|
|
| |
p4raw-id: //depot/perl@28663
|
|
|
|
|
| |
Message-ID: <44D2E203.5050201@iki.fi>
p4raw-id: //depot/perl@28662
|
|
|
| |
p4raw-id: //depot/perl@28148
|
|
|
|
|
|
|
| |
directly (shared) malloc()ed buffer holding the warnings bitmask.
This avoids bugs/crashes when the interpreter that created an optree
is freed but the optree remains in use by other interpreters.
p4raw-id: //depot/perl@27779
|
|
|
|
|
|
| |
simple replace of Nullsv with NULL turns out to be a bad idea.
* Technically undefined behaviour, I believe.
p4raw-id: //depot/perl@27078
|
|
|
|
|
| |
Rafael.
p4raw-id: //depot/perl@27067
|
|
|
| |
p4raw-id: //depot/perl@25050
|
|
|
|
|
| |
("Suggest parentheses to clarify precedence")
p4raw-id: //depot/perl@24938
|
|
|
|
|
| |
Message-ID: <20050517231701.GA1394@mccoy.peters.homeunix.org>
p4raw-id: //depot/perl@24509
|
|
|
|
|
|
| |
in read-only mode. Make vi modelines compatible with non-vim
vi versions.
p4raw-id: //depot/perl@24445
|
|
|
|
|
| |
Message-ID: <20050407224442.GA23895@petdance.com>
p4raw-id: //depot/perl@24205
|
|
|
|
|
|
|
|
|
|
| |
Message-ID: <3E566138.4090709@yahoo.com>
and the complement : (with added comments)
Subject: [PATCH] bug in ext/B/t/deparse.t
Message-ID: <3E563E16.7060303@yahoo.com>
plus perldiag.pod patch for the new warning
(previous change was, once again, empty)
p4raw-id: //depot/perl@18828
|
|
|
|
|
| |
Message-ID: <20020518222451.E7275@fdgroup.com>
p4raw-id: //depot/perl@16685
|
|
|
|
|
|
|
|
| |
From: "Paul Marquess" <Paul.Marquess@ntlworld.com>
Message-ID: <AIEAJICLCBDNAAOLLOKLCEAPELAA.Paul.Marquess@ntlworld.com>
Making the symbols generated by warnings.pl future-proof.
p4raw-id: //depot/perl@16682
|
|
|
|
|
|
| |
From: "Paul Marquess" <paul_marquess@yahoo.co.uk>
Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk>
p4raw-id: //depot/perl@15485
|
|
|
|
|
|
| |
From: "Paul Marquess" <paul_marquess@yahoo.co.uk>
Message-ID: <AIEAJICLCBDNAAOLLOKLCEKGDOAA.paul_marquess@yahoo.co.uk>
p4raw-id: //depot/perl@15003
|
|
|
|
|
| |
Message-ID: <20011230044625.GA14386@blackrider>
p4raw-id: //depot/perl@13953
|
|
|
|
|
|
|
| |
Message-ID: <20010712045931.8543.qmail@plover.com>
Remove the chmod/umask leading zero warning.
p4raw-id: //depot/perl@11290
|
|
|
| |
p4raw-id: //depot/perl@11285
|
|
|
| |
p4raw-id: //depot/perl@11182
|
|
|
| |
p4raw-id: //depot/perl@5995
|
|
|
| |
p4raw-id: //depot/perl@5702
|
|
|
|
|
| |
scope, among other things (from Paul Marquess)
p4raw-id: //depot/perl@5170
|
|
|
|
|
| |
p4raw-link: @5131 on //depot/perl: 34d09196f6a006314d7ea49a091a30ce5ee08bff
p4raw-id: //depot/perl@5135
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
subtests; various subtle bugs, new and old, observed when running
cloned interpreters have been fixed
still to do:
| * dup psig_ptr table
| * merge PADOP GVs support with "our" SVs (existing PADOPs are too
| simple-minded and grab one pad entry each, heavily bloating
| the pad by not avoiding dups)
| * overloaded constants are not really immutable--they need to
| be PADOPs
| * allocator for constants and OPs need to be spelled differently
| (shared vs interpreter-local allocations)
| * optree refcounting is still missing locking (macros are in place)
| * curstackinfo, {mark,scope,save,ret}stack need to be cloned so
| perl_clone() can be called from within runops*()
p4raw-id: //depot/perl@4553
|
|
p4raw-id: //depot/cfgperl@4038
|