summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-05-30 21:54:32 -0600
committerRafael Garcia-Suarez <rgs@consttype.org>2010-06-01 00:13:18 +0200
commit1b1ee2ef87e2dcc8a1699cc870aefd1b91c5f645 (patch)
treef0ce6a0123fde8c77629ea14e789b72e1d8bb0dc /universal.c
parent51eec7ec9cf1a154df61e6fc6c46acab7c69b296 (diff)
downloadperl-1b1ee2ef87e2dcc8a1699cc870aefd1b91c5f645.tar.gz
PATCH: teach diag.t new warning function names
A number of function names that do warnings have been added, but diag.t hasn't kept up. This patch changes it to look for likely function names in embed.fnc, so it will automatically keep up in the future. There's no need to worry about it looking for inappropriate functions, as the syntax of messages that it looks for is so restrictive, that there won't be false positives. Instead there are still many messages it fails to catch. As a result of it's falling behind several issues have crept in. I resolved the couple I thought were clear (including one in a comment; diag.t doesn't strip comments, but mostly it doesn't matter), and added the others to the <DATA> section to ignore. are
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/universal.c b/universal.c
index dec85058e6..3df8321f9c 100644
--- a/universal.c
+++ b/universal.c
@@ -218,7 +218,7 @@ A specialised variant of C<croak()> for emitting the usage message for xsubs
works out the package name and subroutine name from C<cv>, and then calls
C<croak()>. Hence if C<cv> is C<&ouch::awk>, it would call C<croak> as:
- Perl_croak(aTHX_ "Usage %s::%s(%s)", "ouch" "awk", "eee_yow");
+ Perl_croak(aTHX_ "Usage: %s::%s(%s)", "ouch" "awk", "eee_yow");
=cut
*/