more portable lex warning fix.

git-svn-id: file:///svn/unbound/trunk@1113 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-06-09 09:34:40 +00:00
parent 39e01091e7
commit 8ffff3c0a3
2 changed files with 936 additions and 733 deletions

File diff suppressed because it is too large Load diff

View file

@ -19,8 +19,6 @@
#include "util/configparser.h"
void ub_c_error(const char *message);
#define YY_NO_UNPUT 1
#if 0
#define LEXOUT(s) printf s /* used ONLY when debugging */
#else
@ -86,6 +84,14 @@ static void config_end_include(void)
%}
%option noinput
%option nounput
%{
#ifndef YY_NO_UNPUT
#define YY_NO_UNPUT 1
#endif
#ifndef YY_NO_INPUT
#define YY_NO_INPUT 1
#endif
%}
SPACE [ \t]
LETTER [a-zA-Z]