bug-inetutils
[Top][All Lists]
Advanced

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

Re: [bug-inetutils] Bison versus Yacc


From: Mats Erik Andersson
Subject: Re: [bug-inetutils] Bison versus Yacc
Date: Wed, 19 Oct 2011 21:55:29 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

onsdag den 19 oktober 2011 klockan 13:24 skrev Sergey Poznyakoff detta:
> Mats Erik Andersson <address@hidden> ha escrit:
> 
> > We could perhaps convince Yacc to delay the preamble somewhat
> 
> Does it support "%top"?  If so, placing the following at the start of
> the *.y file should suffice:
> 
> %top {
> #include <config.h>
> }

Neither OpenBSD, nor FreeBSD, allows this. The preamble is hardcoded
in the executable, and includes "<stdlib.h>" as the very first action.
This breaks our use case immediately. The only good news is that both
systems do fine as soon as Bison is installed properly, leading to
full build success from a bootstrapped source tree.

> If not, there's no way other than to postprocess the yacc output by
> e.g. a sed script.

Do we want to add such complexity? I am unsure about it.

Regards,
  Mats



reply via email to

[Prev in Thread] Current Thread [Next in Thread]