Debian Developers - problem with unput macro in flex

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > August 2004 > problem with unput macro in flex





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problem with unput macro in flex
Jimen Ching

2004-08-16, 5:59 pm

Hi all,

I have a sarge installation with the latest flex package (2.5.31). There
is a bug with this version of flex that is exposed with this lex
description:

---------------------------------------------------------
%{

%}

NEWLINE [\n]

%%

<INITIAL>"//".*$ {printf("%s",yytext);}

%%

void
test(void)
{
unput(' ');
}
---------------------------------------------------------

The command line I used is:

$ flex -otst_lex.c tst.l
$ gcc -g -O2 -Wall -c tst_lex.c

I got an error about yytext_ptr undefined. The generated C code does have
this macro. But it was undef'ed before the function test() was defined,
so by the time unput() is called, the macro is gone.

I'm not sure whether this is an upstream bug or something only in sarge.
I do know that flex 2.5.4 in woody doesn't have this problem.

--jc
--
Jimen Ching (WH6BRR) jching@flex.com wh6brr@uhm.ampr.org


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Ben Pfaff

2004-08-17, 3:00 am

Jimen Ching <jching@flex.com> writes:

> I have a sarge installation with the latest flex package (2.5.31). There
> is a bug with this version of flex that is exposed with this lex
> description:


I suggest you file your bug report in the Debian bug-tracking
system.
--
"Let others praise ancient times; I am glad I was born in these."
--Ovid (43 BC-18 AD)


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Santiago Vila

2004-08-17, 5:55 pm

On Mon, 16 Aug 2004, Jimen Ching wrote:

> I have a sarge installation with the latest flex package (2.5.31). There
> is a bug with this version of flex that is exposed with this lex
> description:
> [...]
>
> I'm not sure whether this is an upstream bug or something only in sarge.
> I do know that flex 2.5.4 in woody doesn't have this problem.


There have been incompatible changes in flex between woody and sarge.
In sarge, the old flex is still available in the "flex-old" package.
I would read the output of "dpkg -s flex" before submitting a bug report.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com