From: Rafael Garcia-Suarez Date: Mon, 9 May 2005 07:29:33 +0000 (+0000) Subject: Revert to Andy's first solution for nonnull attributes; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3d42dc86375a150e698f9a14ae6be7a37e2ed575;p=p5sagit%2Fp5-mst-13.2.git Revert to Andy's first solution for nonnull attributes; add the missing defines for non-threaded perls in perl.h p4raw-id: //depot/perl@24421 --- diff --git a/embed.h b/embed.h index 8b572db..efa138f 100644 --- a/embed.h +++ b/embed.h @@ -761,6 +761,7 @@ #define sv_2iv_flags Perl_sv_2iv_flags #define sv_2mortal Perl_sv_2mortal #define sv_2nv Perl_sv_2nv +#define sv_2pv_flags Perl_sv_2pv_flags #define sv_2pvutf8 Perl_sv_2pvutf8 #define sv_2pvbyte Perl_sv_2pvbyte #define sv_pvn_nomg Perl_sv_pvn_nomg @@ -1397,7 +1398,6 @@ #define sv_catsv_flags Perl_sv_catsv_flags #define sv_utf8_upgrade_flags Perl_sv_utf8_upgrade_flags #define sv_pvn_force_flags Perl_sv_pvn_force_flags -#define sv_2pv_flags Perl_sv_2pv_flags #define sv_copypv Perl_sv_copypv #define my_atof2 Perl_my_atof2 #define my_socketpair Perl_my_socketpair @@ -2728,6 +2728,7 @@ #define sv_2iv_flags(a,b) Perl_sv_2iv_flags(aTHX_ a,b) #define sv_2mortal(a) Perl_sv_2mortal(aTHX_ a) #define sv_2nv(a) Perl_sv_2nv(aTHX_ a) +#define sv_2pv_flags(a,b,c) Perl_sv_2pv_flags(aTHX_ a,b,c) #define sv_2pvutf8(a,b) Perl_sv_2pvutf8(aTHX_ a,b) #define sv_2pvbyte(a,b) Perl_sv_2pvbyte(aTHX_ a,b) #define sv_pvn_nomg(a,b) Perl_sv_pvn_nomg(aTHX_ a,b) @@ -3356,7 +3357,6 @@ #define sv_catsv_flags(a,b,c) Perl_sv_catsv_flags(aTHX_ a,b,c) #define sv_utf8_upgrade_flags(a,b) Perl_sv_utf8_upgrade_flags(aTHX_ a,b) #define sv_pvn_force_flags(a,b,c) Perl_sv_pvn_force_flags(aTHX_ a,b,c) -#define sv_2pv_flags(a,b,c) Perl_sv_2pv_flags(aTHX_ a,b,c) #define sv_copypv(a,b) Perl_sv_copypv(aTHX_ a,b) #define my_atof2(a,b) Perl_my_atof2(aTHX_ a,b) #define my_socketpair Perl_my_socketpair diff --git a/embed.pl b/embed.pl index 6487ff4..50ec17f 100755 --- a/embed.pl +++ b/embed.pl @@ -212,23 +212,8 @@ sub write_protos { } $ret .= "\n\t\t\t__attribute__((nonnull))" if $flags =~ /N/; if ( @nonnull ) { - if ($has_context) { - my @pos = map { $has_context ? $_ + 1 : $_ } @nonnull; - $ret .= sprintf( <