]> git.saurik.com Git - bison.git/commit - src/main.c
Work around portability problem on Solaris 10: flex-generated
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2005 23:51:26 +0000 (23:51 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Dec 2005 23:51:26 +0000 (23:51 +0000)
commit2cec9080f685192e231333686b411fb524239a1b
treeb1b1ff224603036a4f8ba2a6d390ae7ca515dec6
parent7029f8927fff6c48dfc1e1b26b8e3b8d473fa1ad
Work around portability problem on Solaris 10: flex-generated
files include <stdio.h> before <config.h>, which messes up
because the latter defines __EXTENSIONS__.  Address the problem
by creating two new little files that include <config.h> first,
then include the flex-generated files.  Rewrite everyone else
to include <config.h> first, as well.
* lib/timevar.c: Always include "config.h".
* src/Makefile.am (bison_SOURCES): Replace scan-gram.l with
scan-gram-c.c, and scan-skel.l with scan-skel-c.c.
(EXTRA_bison_SOURCES): New macro.
* src/scan-gram-c.c, src/scan-skel-c.c: New files.
* src/system.h: Don't include config.h.
* src/LR0.c: Include <config.h> first.
* src/assoc.c: Likewise.
* src/closure.c: Likewise.
* src/complain.c: Likewise.
* src/conflicts.c: Likewise.
* src/derives.c: Likewise.
* src/files.c: Likewise.
* src/getargs.c: Likewise.
* src/gram.c: Likewise.
* src/lalr.c: Likewise.
* src/location.c: Likewise.
* src/main.c: Likewise.
* src/muscle_tab.c: Likewise.
* src/nullable.c: Likewise.
* src/output.c: Likewise.
* src/parse-gram.y: Likewise.
* src/print.c: Likewise.
* src/print_graph.c: Likewise.
* src/reader.c: Likewise.
* src/reduce.c: Likewise.
* src/relation.c: Likewise.
* src/state.c: Likewise.
* src/symlist.c: Likewise.
* src/symtab.c: Likewise.
* src/tables.c: Likewise.
* src/uniqstr.c: Likewise.
* src/vcg.c: Likewise.
31 files changed:
ChangeLog
lib/timevar.c
src/LR0.c
src/Makefile.am
src/assoc.c
src/closure.c
src/complain.c
src/conflicts.c
src/derives.c
src/files.c
src/getargs.c
src/gram.c
src/lalr.c
src/location.c
src/main.c
src/muscle_tab.c
src/nullable.c
src/output.c
src/parse-gram.y
src/print.c
src/print_graph.c
src/reader.c
src/reduce.c
src/relation.c
src/state.c
src/symlist.c
src/symtab.c
src/system.h
src/tables.c
src/uniqstr.c
src/vcg.c