From: Marcus Holland-Moritz Date: Sun, 4 Dec 2005 19:37:58 +0000 (+0000) Subject: NULL is a legal value for newXS()'s name parameter. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=715d66eeeb07fb3acde46fb36dd46fd867df552c;p=p5sagit%2Fp5-mst-13.2.git NULL is a legal value for newXS()'s name parameter. (This caused strange build failures with gcc4 -O3) p4raw-id: //depot/perl@26253 --- diff --git a/embed.fnc b/embed.fnc index ba2994d..e92201d 100644 --- a/embed.fnc +++ b/embed.fnc @@ -519,7 +519,7 @@ Apa |OP* |newRANGE |I32 flags|NN OP* left|NN OP* right Apa |OP* |newSLICEOP |I32 flags|NULLOK OP* subscript|NULLOK OP* listop Apa |OP* |newSTATEOP |I32 flags|NULLOK char* label|NULLOK OP* o Ap |CV* |newSUB |I32 floor|NULLOK OP* o|NULLOK OP* proto|NULLOK OP* block -Apd |CV* |newXS |NN const char* name|NN XSUBADDR_t f|NN const char* filename +Apd |CV* |newXS |NULLOK const char* name|NN XSUBADDR_t f|NN const char* filename Apda |AV* |newAV Apa |OP* |newAVREF |NN OP* o Apa |OP* |newBINOP |I32 type|I32 flags|NULLOK OP* first|NULLOK OP* last diff --git a/proto.h b/proto.h index 71be05a..f46b045 100644 --- a/proto.h +++ b/proto.h @@ -1425,7 +1425,6 @@ PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o) PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block); PERL_CALLCONV CV* Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* filename) - __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3);