Subject: Re: CVS commit: basesrc/usr.bin/yacc
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Todd Vierling <tv@wasabisystems.com>
List: source-changes
Date: 01/31/2002 16:27:11
On Thu, 31 Jan 2002, Jason R Thorpe 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.

Well, in this case, it's already using a proto macro (which happens to be
named __P).  It can be renamed at will; this simply makes it work on more
than just BSD-based systems.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/