Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/usr.bin/yacc



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@localhost>  *  Wasabi & NetBSD:  Run 
with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/




Home | Main Index | Thread Index | Old Index