Mercurial > hg > octave-nkf
diff src/lex.ll @ 10019:7ad32bf759c3
lex.cc: Use %top block to include config.h
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 23 Dec 2009 20:58:06 -0600 |
parents | 0d4613a736e9 |
children | e6441e13acb2 |
line wrap: on
line diff
--- a/src/lex.ll +++ b/src/lex.ll @@ -24,6 +24,12 @@ %option prefix = "octave_" +%top { +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +} + %s COMMAND_START %s MATRIX_START @@ -31,9 +37,6 @@ %x FUNCTION_FILE_BEGIN %{ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <cctype> #include <cstring>