diff options
author | Steve Peters <steve@fisharerojo.org> | 2008-03-08 15:13:26 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-03-08 15:13:26 +0000 |
commit | 52a5bfab8876f302d269f1bfa46eae1998f0d3ca (patch) | |
tree | 6ca4d6d9e9d07878930be0ac25b02b30b2ac83fd | |
parent | 2fed2a1ba94aec1ffaf141357a7d90754b2b3208 (diff) | |
download | perl-52a5bfab8876f302d269f1bfa46eae1998f0d3ca.tar.gz |
Perl_croak_nocontext() is called with NULL indirectly from
some XS-based modules.
p4raw-id: //depot/perl@33453
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | proto.h | 5 | ||||
-rw-r--r-- | util.c | 1 |
3 files changed, 2 insertions, 6 deletions
@@ -149,7 +149,7 @@ pM |PERL_CONTEXT* |create_eval_scope|U32 flags Afprd |void |croak |NULLOK const char* pat|... Apr |void |vcroak |NULLOK const char* pat|NULLOK va_list* args #if defined(PERL_IMPLICIT_CONTEXT) -Afnrp |void |croak_nocontext|NN const char* pat|... +Afnrp |void |croak_nocontext|NULLOK const char* pat|... Afnp |OP* |die_nocontext |NN const char* pat|... Afnp |void |deb_nocontext |NN const char* pat|... Afnp |char* |form_nocontext |NN const char* pat|... @@ -330,10 +330,7 @@ PERL_CALLCONV void Perl_vcroak(pTHX_ const char* pat, va_list* args) #if defined(PERL_IMPLICIT_CONTEXT) PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...) __attribute__noreturn__ - __attribute__format__(__printf__,1,2) - __attribute__nonnull__(1); -#define PERL_ARGS_ASSERT_CROAK_NOCONTEXT \ - assert(pat) + __attribute__format__null_ok__(__printf__,1,2); PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...) __attribute__format__(__printf__,1,2) @@ -1432,7 +1432,6 @@ Perl_croak_nocontext(const char *pat, ...) { dTHX; va_list args; - PERL_ARGS_ASSERT_CROAK_NOCONTEXT; va_start(args, pat); vcroak(pat, &args); /* NOTREACHED */ |