hi,
i'm forwarding this bug filled against debian package of splint
please contact me (or contact the sender) to give him an explanation;
i haven't a good knowledge of this kind of problem with K&R C standard.

thanks
Samuele

----- Forwarded message from Vincent Lefevre <[EMAIL PROTECTED]> -----

Subject: Bug#171437: splint: K&R / standard C mismatch
Reply-To: Vincent Lefevre <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Resent-From: Vincent Lefevre <[EMAIL PROTECTED]>
Resent-To: [EMAIL PROTECTED]
Resent-CC: Samuele Giovanni Tonon <[EMAIL PROTECTED]>,
   [EMAIL PROTECTED]
Resent-Date: Mon, 02 Dec 2002 14:48:02 GMT
Resent-Message-ID: <[EMAIL PROTECTED]>
X-Debian-PR-Message: report 171437
X-Debian-PR-Package: splint
X-Debian-PR-Keywords: 
From: Vincent Lefevre <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Resent-Sender: Debian BTS <[EMAIL PROTECTED]>
X-Spam-Status: No, hits=-1.3 required=5.0
        tests=DEBIAN_BTS_BUG,FORGED_RCVD_FOUND,RESENT_TO,
              SPAM_PHRASE_00_01,X_LOOP
        version=2.43
X-Spam-Level: 

Package: splint
Version: 3.0.1.6-3
Severity: normal

Does splint expect traditional K&R C or standard (ISO) C code?
It should define __STDC__ or not in consequence.

In either case, it should be able to accept the following code
(mainly from gmp.h -- the header for the GMP library):

------------------------------------------------------------
#if  defined (__STDC__)                                 \
  || defined (__cplusplus)                              \
  || defined (_AIX)                                     \
  || defined (__DECC)                                   \
  || (defined (__mips) && defined (_SYSTYPE_SVR4))      \
  || defined (_MSC_VER)                                 \
  || defined (_WIN32)
#define __GMP_HAVE_CONST        1
#define __GMP_HAVE_PROTOTYPES   1
#define __GMP_HAVE_TOKEN_PASTE  1
#else
#define __GMP_HAVE_CONST        0
#define __GMP_HAVE_PROTOTYPES   0
#define __GMP_HAVE_TOKEN_PASTE  0
#endif

#if __GMP_HAVE_PROTOTYPES
#define __GMP_PROTO(x) x
#else
#define __GMP_PROTO(x) ()
#endif

#ifndef __MPN
#if __GMP_HAVE_TOKEN_PASTE
#define __MPN(x) __gmpn_##x
#else
#define __MPN(x) __gmpn_/**/x
#endif
#endif

#define mpn_add __MPN(add)
int mpn_add __GMP_PROTO ((int));
------------------------------------------------------------

I get the following parse error:

$ splint pptest.c
Splint 3.0.1.6 --- 11 Jun 2002

pptest.c:32:19: Parse Error: Inconsistent function declaration: __gmpn_ :
               int. (For help on parse errors, see splint -help parseerrors.)
*** Cannot continue.

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux ay 2.4.18-newpmac #1 Thu Mar 14 22:44:49 EST 2002 ppc  7410, 
altivec supported GNU/Linux

Versions of the packages splint depends on:
ii  libc6          2.2.5-14.3     GNU C Library: Shared libraries and Timezone


----- End forwarded message -----

-- 
Samuele Giovanni Tonon  <[EMAIL PROTECTED]>   http://www.linuxasylum.net/~samu/
                Acid -- better living through chemistry.
                               Timothy Leary

Reply via email to