Delivered-To: jake@vapourforge.com Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by mail.vapourforge.com (Postfix) with ESMTP id E7A44CFC0 for ; Fri, 23 Jul 2010 02:48:12 +1000 (EST) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id o6MGbW41000585; Thu, 22 Jul 2010 12:37:39 -0400 Received: from mailhub-dmz-1.mit.edu (MAILHUB-DMZ-1.MIT.EDU [18.9.21.41]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id o6MGbU0Y000522 for ; Thu, 22 Jul 2010 12:37:30 -0400 Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU [18.9.25.12]) by mailhub-dmz-1.mit.edu (8.13.8/8.9.2) with ESMTP id o6MGbCG4027435 for ; Thu, 22 Jul 2010 12:37:30 -0400 X-AuditID: 1209190c-b7c0dae000000a0c-cf-4c4873ca8cc1 Received: from jwt.xargs.com (dsl.xargs.com [71.254.128.33]) by dmz-mailsec-scanner-1.mit.edu (Symantec Brightmail Gateway) with SMTP id E3.93.02572.BC3784C4; Thu, 22 Jul 2010 12:37:31 -0400 (EDT) Received: from jwt.xargs.com (jwt.xargs.com [127.0.0.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jwt.xargs.com (Postfix) with ESMTPS id 24968E606A for ; Thu, 22 Jul 2010 09:37:27 -0700 (PDT) Date: Thu, 22 Jul 2010 09:37:27 -0700 (PDT) From: John Temples To: "Microcontroller discussion list - Public." Subject: RE: [PIC] C18 function prototypes (pic18f8627) In-Reply-To: <313F5D3F6E6248E7B0868A9B3CA740A4@imtra.com> Message-ID: References: <4C485D25.6070208@nu-ins.com> <313F5D3F6E6248E7B0868A9B3CA740A4@imtra.com> MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== X-Topics: [PIC] X-BeenThere: piclist@mit.edu X-Mailman-Version: 2.1.6 Precedence: list Reply-To: "Microcontroller discussion list - Public." List-Id: "Microcontroller discussion list - Public." List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: piclist-bounces@MIT.EDU Errors-To: piclist-bounces@MIT.EDU On Thu, 22 Jul 2010, Paul Hutchinson wrote: > The parameter identifiers in a C function prototype are optional No, they aren't. A function declaration that doesn't specify the number and types of the parameters is not a function prototype. Something like this: void func(); void main(void) { func(); } will correctly generate a "missing prototype" warning from some compilers (e.g., Microchip's C18). -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist