help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flex doesn't generate pure ANSI C code


From: Michal Poziemski
Subject: Re: Flex doesn't generate pure ANSI C code
Date: Sat, 17 Nov 2001 14:49:30 +0100

Hi.

I've found a solution of my problem. I have to define YY_INPUT macro
like this:

#define YY_INPUT(buf, result, max) \
   { result = fread(buf, 1, max, yyin)}

then after compiling it by flex I have to remove line with:
#include <unistd.h>

and that's all. I can use read, full or fast option.

--
Michal Poziemski
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]