Received: by taz.hyperreal.com (8.7.6/V2.0) id GAA28320; Tue, 22 Oct 1996 06:54:45 -0700 (PDT) Received: from pillar.elsevier.co.uk by taz.hyperreal.com (8.7.6/V2.0) with ESMTP id GAA28310; Tue, 22 Oct 1996 06:54:40 -0700 (PDT) Received: from snowdon.elsevier.co.uk (snowdon.elsevier.co.uk [193.131.197.164]) by pillar.elsevier.co.uk (8.8.2/8.8.0) with ESMTP id OAA10923 for ; Tue, 22 Oct 1996 14:51:43 +0100 (BST) Received: from cadair.elsevier.co.uk by snowdon.elsevier.co.uk with SMTP (PP); Tue, 22 Oct 1996 14:54:00 +0100 Received: from tees.elsevier.co.uk (tees.elsevier.co.uk [193.131.197.60]) by cadair.elsevier.co.uk (8.8.2/8.8.0) with ESMTP id OAA14125 for ; Tue, 22 Oct 1996 14:53:52 +0100 (BST) Received: (from dpr@localhost) by tees.elsevier.co.uk (8.8.2/8.8.0) id OAA11795; Tue, 22 Oct 1996 14:52:51 +0100 (BST) To: new-httpd@hyperreal.com Subject: Re: Fixing more compiler warnings/prototyping References: <9610221310.aa27360@gonzo.ben.algroup.co.uk> From: Paul Richards Date: 22 Oct 1996 14:52:50 +0100 In-Reply-To: Ben Laurie's message of Tue, 22 Oct 1996 13:10:59 +0100 (BST) Message-ID: <57d8ybkswd.fsf@tees.elsevier.co.uk> Lines: 32 X-Mailer: Gnus v5.3/Emacs 19.30 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Ben Laurie writes: > Paul Richards wrote: > > > > Ben Laurie writes: > > > > > What is the point of prototyping a private function in a header? > > > > So it's the same place as the non-private headers and to remove > > clutter from the file with the actual code in it. > > Are you trying to wind me up? No! Was the question "what is the point of prototyping private functions" or "why put them in a header" ? I answered the latter, I'll now answer the former. If someone inadvertantly tries to use a static function because they didn't realise it was static then the compiler will give a detailed error listing the file and line number of its use if there is a prototype. If there is not then you'll just get the symbol error at link time. Unresolved symbol errors at link time aren't as simple to track down and fix as compile time errors. -- Paul Richards. Originative Solutions Ltd. (Netcraft Ltd. contractor) Elsevier Science TIS online journal project. Email: p.richards@elsevier.co.uk Phone: 0370 462071 (Mobile), +44 (0)1865 843155