🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6045

VarArgs prototypes in Lattice C 5.05

#6045
From: Henrik Clausen
Date: Tue, 23 Oct 1990 11:09
36 lines
1581 bytes
   I've found a minor, though annoying, bug in Lattice 5.05.

   Using the compiler to automatically generate prototypes for all
functions in my program, a function with variable arguments gets an
incorrect prototype:

   My source:

int MySmartRequest(struct Window *Behind, int Strings, ...)
{
   va_list ap;
   .....

 
   Prototype generated by Lattice:

int MySmartRequest(struct Window *Behind,
                   int Strings);


   The VarArgs part of the declaration is eaten, and when I include the
prototype file, the compiler complains about an incorrect redeclaration.
Adding ", ..." to the prototype is naturally a usable workaround, but
inconvienient.

   Anyone knows or ready to test if this is fixed in 5.10? 

   Perhaps it's time to update.


                                        Have a nice day          -Henrik

|            Henrik Clausen, Graffiti Data (Fido: 2:230/22.33)           |
|           ...{pyramid|rutgers}!cbmvax!cbmehq!adspdk!hclausen           |
\__"Do not accept the heart that is the slave to reason" - Qawwali trad__/
Technical Details
Message-ID: <1817f412.ARN03619@adspdk.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmdeo!adspdk!hclausen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmdeo!adspdk!hclausen
From: hclausen@adspdk.UUCP (Henrik Clausen)
Newsgroups: comp.sys.amiga.tech
Subject: VarArgs prototypes in Lattice C 5.05
Keywords: VarArgs, automatic prototypes, bugs
Message-ID: <1817f412.ARN03619@adspdk.UUCP>
Date: 23 Oct 90 11:09:54 GMT
Reply-To: hclausen@adspdk.UUCP
Followup-To: comp.sys.amiga.tech
Organization: Graffiti Data
Lines: 36