]> git.draconx.ca Git - cdecl99.git/commitdiff
Include config.h in scan.l.
authorNick Bowler <nbowler@draconx.ca>
Wed, 21 Sep 2011 23:12:52 +0000 (19:12 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 22 Sep 2011 01:08:57 +0000 (21:08 -0400)
This is required for things to work.  Unfortunately, %top{...} appears
to be the only bit where config.h can be put in a flex scanner, as
headers are included before the first %{...} block is output.  Thus, the
include ends up in the scan.h header file.  Nevertheless, this should
not be a problem since config.h only defines macros.

src/scan.l

index 946d58ee3d2d4231f7731c484896ae07ed2ea511..54cea88717622f138a74f11841b73e9170f9f328 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include "parse.h"
 }