From: Nick Bowler Date: Wed, 21 Sep 2011 23:12:52 +0000 (-0400) Subject: Include config.h in scan.l. X-Git-Tag: v1~103 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/17ec74586a21b6283bedb3fb35630e3231001758 Include config.h in scan.l. 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. --- diff --git a/src/scan.l b/src/scan.l index 946d58e..54cea88 100644 --- a/src/scan.l +++ b/src/scan.l @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "parse.h" }