delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/26/09:48:28

From: Martin Stromberg <eplmst AT lu DOT erisoft DOT se>
Message-Id: <200101261448.PAA05114@lws256.lu.erisoft.se>
Subject: Re: lfilelen patch
To: djgpp-workers AT delorie DOT com
Date: Fri, 26 Jan 2001 15:48:17 +0100 (MET)
In-Reply-To: <200101261427.JAA05798@envy.delorie.com> from "DJ Delorie" at Jan 26, 2001 09:27:40 AM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > What is the prototype above for? The function is defined immediately
> > after...
> 
> All functions must be prototyped, else they fail djgpp's massively
> paranoid warning settings.  However, prototypes for user-visible
> functions should go in the appropriate header file; inline prototypes
> are just for static functions.

Are you sure? Because I think I've added static functions without
prototypes... Doesn't the error come only when you _use_ the function
before it's been declared or defined?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019