[Top][All Lists]

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

Re: AC_PROG_LEX broken on IRIX with MIPSpro Compilers

From: Paul Eggert
Subject: Re: AC_PROG_LEX broken on IRIX with MIPSpro Compilers
Date: Sat, 29 Dec 2007 01:44:12 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Peter O'Gorman" <address@hidden> writes:

> After macro expansion that line turns into:
> { do { *yy_cp = yy_hold_char;  yy_c_buf_p = yy_cp = yy_bp + input () !=
> 0 - 0; yytext = yy_bp; yyleng = (int) (yy_cp - yy_bp); yy_hold_char =
> *yy_cp; *yy_cp = '\0'; yy_c_buf_p = yy_cp;; } while ( 0 ); }

This indicates that your implementation of 'lex' is broken; that is an
invalid macro expansion for that line.  Apparently your 'lex' defines
the yyless macro without properly parenthesizing its arguments.  This
bug should be fixed on your platform, regardless of what we do with

Currently _AC_PROG_LEX_YYTEXT_DECL checks for several 'lex' features,
and causes problems such as you describe if any of these features have
certain bugs.  It's not clear to me why it does so (the comment just
talks about the output root and so forth).  Perhaps Akim can chime in
here?  I think that's his invention.

reply via email to

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