Add noyywrap to ada-lex.l

This patch comes from PR ada/21406.  It adds the noyywrap option to
ada-lex.l.  This was already done (by the same author) for other .l
files in the binutils-gdb tree, so it seems reasonably safe.

Tested on x86-64 Fedora 29.

gdb/ChangeLog
2019-05-03  Dilyan Palauzov  <dilyan.palauzov@aegee.org>

	PR ada/21406:
	* ada-exp.y (yywrap): Don't define.
	* ada-lex.l (%option): Add noyywrap
	(yywrap): Remove.
This commit is contained in:
Dilyan Palauzov 2019-05-03 13:42:11 -06:00 committed by Tom Tromey
parent 0fdfd794d2
commit fcd60b848e
3 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
PR ada/21406:
* ada-exp.y (yywrap): Don't define.
* ada-lex.l (%option): Add noyywrap
(yywrap): Remove.
2019-05-03 Eli Zaretskii <eliz@gnu.org>
* common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define

View File

@ -717,7 +717,6 @@ primary : '*' primary %prec '.'
#define yy_switch_to_buffer ada_yy_switch_to_buffer
#define yyrestart ada_yyrestart
#define yytext ada_yytext
#define yywrap ada_yywrap
static struct obstack temp_parse_space;

View File

@ -89,7 +89,7 @@ static int paren_depth;
%}
%option case-insensitive interactive nodefault
%option case-insensitive interactive nodefault noyywrap
%s BEFORE_QUAL_QUOTE
@ -634,12 +634,6 @@ rewind_to_char (int ch)
yyrestart (NULL);
}
int
yywrap(void)
{
return 1;
}
/* Dummy definition to suppress warnings about unused static definitions. */
typedef void (*dummy_function) ();
dummy_function ada_flex_use[] =