On Mon, Feb 17, 2014 at 15:57, Todd C. Miller wrote:
> On Mon, 17 Feb 2014 17:30:41 -0500, Ted Unangst wrote:
> 
>> I don't see how K&R compat helps us. None of the headers in
>> /usr/include are K&R anymore. How would one compile the generated output?
> 
> You're assuming that the resulting code will be built on OpenBSD.
> That's a bad assumption.  The code generated by lex and yacc should
> be as portable as possible.

True, I phrased that poorly. What I'm assuming is that the code will
be built by a compiler that supports the const keyword. Or in other
words, if you're using a 25 year old cross compiler, I don't think
it's unreasonable to expect you to dig up a 25 year old cross yacc
either (or the yacc from openbsd 5.4).

Who is actually using yacc to generate code for a compilter that
doesn't accept const?

Reply via email to