summaryrefslogtreecommitdiff
path: root/warnings.h
Commit message (Collapse)AuthorAgeFilesLines
* Subclass utf8 warnings so can turn off individuallyKarl Williamson2011-02-171-3/+9
|
* Change close_and_rename() to read_only_bottom_close_and_rename()Nicholas Clark2011-01-231-0/+1
| | | | | | | | | | All users of close_and_rename() were printing out the appropriate "ex: set ro:" string to the file handle immediately before closing it. So move that into the common function and rename it to reflect what it now does. [Except overload.pl, which should have been, given that it calls read_only_top()] Print a newline above the "ex: set ro:" line. This removes many newlines from the regen scripts, but does add newlines to a couple of generated files.
* Move all the generated file header printing into read_only_top()Nicholas Clark2011-01-231-2/+2
| | | | | | | | | Previously all the scripts in regen/ had code to generate header comments (buffer-read-only, "do not edit this file", and optionally regeneration script, regeneration data, copyright years and filename). This change results in some minor reformatting of header blocks, and standardises the copyright line as "Larry Wall and others".
* warnings.pl -> regen/warnings.plFather Chrysostomos2010-10-131-1/+1
|
* Move prototype parsing related warnings from the 'syntax' top level warnings ↵Matt S Trout2010-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Change S_ckwarn_common() to looping over the packed warning value.Nicholas Clark2009-10-131-0/+2
| | | | | | 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.
* warn if ++ or -- are unable to change the value because it's beyondNicholas Clark2008-01-171-0/+4
| | | | | | the limit of representation in NVs, using a new warnings category "imprecision". p4raw-id: //depot/perl@32990
* Forgot to regen warningsRafael Garcia-Suarez2007-06-151-4/+0
| | | p4raw-id: //depot/perl@31386
* Avoid *some* g++ errors. (But not all yet)Nicholas Clark2007-02-191-2/+3
| | | p4raw-id: //depot/perl@30365
* Integrate:Andy Lester2007-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 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
* Turn taint warnings (-t) into severe warnings, so they'reRafael Garcia-Suarez2007-01-081-1/+0
| | | | | | on by default, without having to play games with the warning bits. Add a test for -t. p4raw-id: //depot/perl@29717
* Restore modification in warnings.h from change 28662 by backporting itRafael Garcia-Suarez2006-08-071-2/+2
| | | | | to warnings.pl p4raw-id: //depot/perl@28666
* Regenerate files after previous changeRafael Garcia-Suarez2006-08-071-2/+2
| | | p4raw-id: //depot/perl@28663
* g++ large patchJarkko Hietaniemi2006-08-071-2/+2
| | | | | Message-ID: <44D2E203.5050201@iki.fi> p4raw-id: //depot/perl@28662
* disable WARN and DIE hooks during constant foldingDave Mitchell2006-05-101-0/+3
| | | p4raw-id: //depot/perl@28148
* Change cop_warnings from an SV holding the warnings bitmask to aNicholas Clark2006-04-121-4/+8
| | | | | | | 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
* warnings.h does some evil(*) pointer arithmetic on (SV *)0, so aNicholas Clark2006-02-041-2/+2
| | | | | | simple replace of Nullsv with NULL turns out to be a bad idea. * Technically undefined behaviour, I believe. p4raw-id: //depot/perl@27078
* Oops. When changing warnings.pl one should re-run it. Well spottedNicholas Clark2006-02-031-3/+3
| | | | | Rafael. p4raw-id: //depot/perl@27067
* replace ckWARN macros with functionsDave Mitchell2005-07-021-55/+9
| | | p4raw-id: //depot/perl@25050
* Silence some more bcc32 compiler warningsSteve Hay2005-06-221-4/+4
| | | | | ("Suggest parentheses to clarify precedence") p4raw-id: //depot/perl@24938
* SvPVX_const() - Patch #1Steve Peters2005-05-201-2/+2
| | | | | Message-ID: <20050517231701.GA1394@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24509
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-2/+3
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* Removing Y2K warningsAndy Lester2005-04-081-2/+1
| | | | | Message-ID: <20050407224442.GA23895@petdance.com> p4raw-id: //depot/perl@24205
* [PATCH] assertionsSalvador Fandiño2003-03-041-0/+4
| | | | | | | | | | 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
* revised warnings + more tests + docsDave Mitchell2002-05-181-6/+7
| | | | | Message-ID: <20020518222451.E7275@fdgroup.com> p4raw-id: //depot/perl@16685
* RE: perl@16678Paul Marquess2002-05-181-0/+3
| | | | | | | | 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
* warnings for perlio + othersPaul Marquess2002-03-251-38/+39
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15485
* taint + deprecated warningsPaul Marquess2002-03-041-33/+78
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLCEKGDOAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15003
* -t without -w Michael G. Schwern2001-12-301-0/+1
| | | | | Message-ID: <20011230044625.GA14386@blackrider> p4raw-id: //depot/perl@13953
* Re: [PATCH: perl@11181] UCD.t fails LATIN|Latin testMark-Jason Dominus2001-07-121-46/+44
| | | | | | | Message-ID: <20010712045931.8543.qmail@plover.com> Remove the chmod/umask leading zero warning. p4raw-id: //depot/perl@11290
* Retract #11166 (and #11237).Jarkko Hietaniemi2001-07-121-51/+49
| | | p4raw-id: //depot/perl@11285
* The #11166 needed also these updated.Jarkko Hietaniemi2001-07-061-49/+51
| | | p4raw-id: //depot/perl@11182
* fixes for bugs in C<use warnings qw(FATAL all)> (from Paul Marquess)Gurusamy Sarathy2000-04-281-39/+35
| | | p4raw-id: //depot/perl@5995
* final touches for lexical warnings (from Paul Marquess)Gurusamy Sarathy2000-03-131-67/+68
| | | p4raw-id: //depot/perl@5702
* lexical warnings update, ability to inspect bitmask in callingGurusamy Sarathy2000-02-201-40/+50
| | | | | scope, among other things (from Paul Marquess) p4raw-id: //depot/perl@5170
* s/WARN_PRECEDENCE/WARN_BAREWORD/, vide change#5131Gurusamy Sarathy2000-02-191-5/+5
| | | | | p4raw-link: @5131 on //depot/perl: 34d09196f6a006314d7ea49a091a30ce5ee08bff p4raw-id: //depot/perl@5135
* cloned interpreters now actually run and pass all but 55/10386Gurusamy Sarathy1999-11-131-2/+2
| | | | | | | | | | | | | | | | | | | 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
* Rename warning to warnings, from Paul Marquess.Jarkko Hietaniemi1999-08-291-0/+106
p4raw-id: //depot/cfgperl@4038