On Sat, Mar 28, 2015 at 5:38 PM, Ted Unangst <[email protected]> wrote: > Renato Westphal wrote: >> > +#include <stdlib.h> >> > #include <string.h> > >> "#include <stdlib.h>", >> "#include <string.h>", > >> If you include the stdlib header in the .y file you will end up with >> two includes for the same header in the .c file. > > Looks like we're already including string.h twice. Probably makes sense > to reverse the diff and delete the extra.
Disagree, particularly for the programs that have -portable variants. As Joerg notes, there's no guarantee that yacc will pull in any particular headers before the user code's position in the generated .c file. Let's not make these less portable for no gain. Philip Guenther
