Added some flex options to avoid compiler warnings.

Moved options from the Makefile into the source.
This commit is contained in:
Alexandre Julliard 2006-01-03 12:16:05 +01:00
parent 00a7faa377
commit 0ae2c69c7a
8 changed files with 15 additions and 11 deletions

View File

@ -2,7 +2,6 @@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
LEXOPT = -Cf #-w -b
MODULE = libwpp.a
C_SRCS = \
@ -29,7 +28,7 @@ ppy.tab.h: ppy.tab.c
ppy.tab.o: ppy.tab.h
@LEX_OUTPUT_ROOT@.c: ppl.l
$(LEX) $(LEXOPT) -d -Ppp -o$@ -8 $(SRCDIR)/ppl.l
$(LEX) -o$@ $(SRCDIR)/ppl.l
@LEX_OUTPUT_ROOT@.o: ppy.tab.h

View File

@ -1,4 +1,4 @@
/*
/* -*-C-*-
* Wrc preprocessor lexical analysis
*
* Copyright 1999-2000 Bertho A. Stultiens (BS)
@ -125,7 +125,9 @@
* Special flex options and exclusive scanner start-conditions
*/
%option stack
%option never-interactive
%option 8bit never-interactive
%option nounput
%option prefix="pp"
%x pp_pp
%x pp_eol

View File

@ -19,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
%option nounput
%{
#include <stdlib.h>
#include <string.h>

View File

@ -20,6 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
%}
%option nounput
%x quote
%{
#include <assert.h>

View File

@ -2,7 +2,6 @@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
LEXOPT = -Cf #-w -b
EXEEXT = @EXEEXT@
PROGRAMS = widl$(EXEEXT)
@ -39,7 +38,7 @@ parser.tab.h: parser.tab.c
parser.tab.o: parser.tab.h
@LEX_OUTPUT_ROOT@.c: parser.l
$(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
$(LEX) $(SRCDIR)/parser.l
@LEX_OUTPUT_ROOT@.o: parser.tab.h

View File

@ -1,4 +1,4 @@
/*
/* -*-C-*-
* IDL Compiler
*
* Copyright 2002 Ove Kaaven
@ -19,7 +19,8 @@
*/
%option stack
%option never-interactive
%option nounput noyy_top_state
%option 8bit never-interactive
nl \r?\n
ws [ \f\t\r]

View File

@ -3,7 +3,6 @@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
LEXOPT = -Cf #-w -b
EXEEXT = @EXEEXT@
PROGRAMS = wrc$(EXEEXT)
@ -38,7 +37,7 @@ parser.tab.h: parser.tab.c
parser.tab.o: parser.tab.h
@LEX_OUTPUT_ROOT@.c: parser.l
$(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
$(LEX) $(SRCDIR)/parser.l
@LEX_OUTPUT_ROOT@.o: parser.tab.h

View File

@ -87,7 +87,8 @@
%x pp_code_page
%option stack
%option never-interactive
%option nounput noyy_top_state
%option 8bit never-interactive
/* Some shortcut definitions */
ws [ \f\t\r]