Subject: Re: CVS commit: basesrc/usr.bin/yacc
To: Todd Vierling <tv@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: source-changes
Date: 01/31/2002 13:23:26
On Thu, Jan 31, 2002 at 11:01:16PM +0200, Todd Vierling wrote:
> In the generated C file, don't assume that <sys/cdefs.h> exists. Instead,
> imply it with the <stdlib.h> include already present in the file, and
> provide a compatibility definition for __P().
My suggestion here would be to not use __P() at all. Either always
emit an ANSI-style prototype, or always use a YACC_PROTO() macro that
is defined in the file.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>