mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-17 04:02:54 -05:00
more portable lex warning fix.
git-svn-id: file:///svn/unbound/trunk@1113 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
39e01091e7
commit
8ffff3c0a3
2 changed files with 936 additions and 733 deletions
1659
util/configlexer.c
1659
util/configlexer.c
File diff suppressed because it is too large
Load diff
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue