From: Richard Kreckel Date: Sat, 6 Sep 2003 01:11:58 +0000 (+0000) Subject: * ginsh_input(): Modern versions of flex want us to use the macro X-Git-Tag: release_1-2-0~98 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=5302957e34e8afadc5e9a13cede439cea843bbf7;ds=inline * ginsh_input(): Modern versions of flex want us to use the macro YY_CURRENT_BUFFER instead of accessing yy_current_buffer directly. (I'm not sure about the preprocessor conditional, but asking whether YY_CURRENT_BUFFER is defined appears to be the most natural strategy.) --- diff --git a/ginsh/ginsh_lexer.ll b/ginsh/ginsh_lexer.ll index 973d8951..4194f943 100644 --- a/ginsh/ginsh_lexer.ll +++ b/ginsh/ginsh_lexer.ll @@ -132,7 +132,11 @@ static char *line_ptr; static int ginsh_input(char *buf, int max_size) { int result; +#if defined(YY_CURRENT_BUFFER) + if (YY_CURRENT_BUFFER->yy_is_interactive) { +#else if (yy_current_buffer->yy_is_interactive) { +#endif #ifdef HAVE_LIBREADLINE // Do we need to read a new line? int actual;