This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Take splint into account for PERL_UNUSED_ARG (patch by Jarkko)
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 3 Apr 2006 08:22:15 +0000 (08:22 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 3 Apr 2006 08:22:15 +0000 (08:22 +0000)
p4raw-id: //depot/perl@27696

XSUB.h
perl.h

diff --git a/XSUB.h b/XSUB.h
index a137c42..9832b7d 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
@@ -83,7 +83,7 @@ is a lexical $_ in scope.
 */
 
 #ifndef PERL_UNUSED_ARG
-#  ifdef lint
+#  if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
 #    include <note.h>
 #    define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
 #  else
@@ -119,7 +119,7 @@ is a lexical $_ in scope.
 
 #define dITEMS I32 items = SP - MARK
 
-#ifdef lint
+#if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
 #  define dXSARGS \
        NOTE(ARGUNUSED(cv)) \
        dSP; dAXMARK; dITEMS
diff --git a/perl.h b/perl.h
index 661af3e..301f24a 100644 (file)
--- a/perl.h
+++ b/perl.h
  * but we cannot quite get rid of, such as "ax" in PPCODE+noargs xsubs
  */
 #ifndef PERL_UNUSED_ARG
-/* Which lint? Which <note.h>? Need more more robust cpp test. */
-#  ifdef lint
+#  if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */
 #    include <note.h>
 #    define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
 #  else