git: 686cf5468c4a - main - flex: Regen bootstrap files

Rodney W. Grimes freebsd at gndrsh.dnsmgr.net
Tue Apr 20 06:56:40 UTC 2021


> The branch main has been updated by jkim:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=686cf5468c4a85c2a6385cdbab2383900876a41d
> 
> commit 686cf5468c4a85c2a6385cdbab2383900876a41d
> Author:     Jung-uk Kim <jkim at FreeBSD.org>
> AuthorDate: 2021-04-19 18:20:51 +0000
> Commit:     Jung-uk Kim <jkim at FreeBSD.org>
> CommitDate: 2021-04-19 18:20:51 +0000
> 
>     flex: Regen bootstrap files
>     
>     This also partially reverts r326025 (8a16b7a18f5d).  I do not see any
>     point of adding SPDX tag in generated file.

The SPDX identifies the copyright that follows it, so please put this back.

>     
>     MFC after:      3 days
>     Submitted by:   Dan McGregor <dan.mcgregor at usask.ca> (initial version)
>     Differential Revision:  https://reviews.freebsd.org/D28596
> ---
>  usr.bin/lex/initparse.c | 17 ++++++++++-------
>  usr.bin/lex/initparse.h |  1 -
>  usr.bin/lex/initscan.c  |  5 ++++-
>  usr.bin/lex/initskel.c  |  9 ++++-----
>  4 files changed, 18 insertions(+), 14 deletions(-)
> 
> diff --git a/usr.bin/lex/initparse.c b/usr.bin/lex/initparse.c
> index c723c5b45c40..c95305aa1a91 100644
> --- a/usr.bin/lex/initparse.c
> +++ b/usr.bin/lex/initparse.c
> @@ -1,4 +1,3 @@
> -/* $FreeBSD$ */
>  /* original parser id follows */
>  /* yysccsid[] = "@(#)yaccpar	1.9 (Berkeley) 02/21/93" */
>  /* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
> @@ -6,7 +5,7 @@
>  #define YYBYACC 1
>  #define YYMAJOR 1
>  #define YYMINOR 9
> -#define YYPATCH 20170430
> +#define YYPATCH 20200330
>  
>  #define YYEMPTY        (-1)
>  #define yyclearin      (yychar = YYEMPTY)
> @@ -19,8 +18,6 @@
>  #define YYPURE 0
>  
>  #line 35 "parse.y"
> -/* SPDX-License-Identifier: BSD-2-Clause */
> -
>  /*  Copyright (c) 1990 The Regents of the University of California. */
>  /*  All rights reserved. */
>  
> @@ -130,6 +127,10 @@ typedef int YYSTYPE;
>  # define YYLEX yylex()
>  #endif
>  
> +#if !(defined(yylex) || defined(YYSTATE))
> +int YYLEX_DECL();
> +#endif
> +
>  /* Parameters sent to yyerror. */
>  #ifndef YYERROR_DECL
>  #define YYERROR_DECL() yyerror(const char *s)
> @@ -488,13 +489,15 @@ static const char *const yyrule[] = {
>  };
>  #endif
>  
> +#if YYDEBUG
>  int      yydebug;
> -int      yynerrs;
> +#endif
>  
>  int      yyerrflag;
>  int      yychar;
>  YYSTYPE  yyval;
>  YYSTYPE  yylval;
> +int      yynerrs;
>  
>  /* define the initial stack-sizes */
>  #ifdef YYSTACKSIZE
> @@ -655,7 +658,7 @@ void yyerror( const char *msg )
>  	{
>  		(void)msg;
>  	}
> -#line 656 "parse.c"
> +#line 662 "parse.c"
>  
>  #if YYDEBUG
>  #include <stdio.h>	/* needed for printf */
> @@ -1781,7 +1784,7 @@ case 96:
>  #line 946 "parse.y"
>  	{ yyval = mkstate( SYM_EPSILON ); }
>  break;
> -#line 1782 "parse.c"
> +#line 1788 "parse.c"
>      }
>      yystack.s_mark -= yym;
>      yystate = *yystack.s_mark;
> diff --git a/usr.bin/lex/initparse.h b/usr.bin/lex/initparse.h
> index fb0742445d55..b630d282c635 100644
> --- a/usr.bin/lex/initparse.h
> +++ b/usr.bin/lex/initparse.h
> @@ -1,4 +1,3 @@
> -/* $FreeBSD$ */
>  #define CHAR 257
>  #define NUMBER 258
>  #define SECTEND 259
> diff --git a/usr.bin/lex/initscan.c b/usr.bin/lex/initscan.c
> index 46070a4c6dc5..9b6fb4ae5183 100644
> --- a/usr.bin/lex/initscan.c
> +++ b/usr.bin/lex/initscan.c
> @@ -1,4 +1,3 @@
> -/* $FreeBSD$ */
>  
>  #line 2 "<stdout>"
>  
> @@ -4578,7 +4577,11 @@ static int yy_get_next_buffer (void)
>  				case EOB_ACT_END_OF_FILE:
>  					{
>  					if ( yywrap(  ) )
> +#ifdef YY_FLEX_LEX_COMPAT
>  						return 0;
> +#else
> +						return EOF;
> +#endif
>  
>  					if ( ! (yy_did_buffer_switch_on_eof) )
>  						YY_NEW_FILE;
> diff --git a/usr.bin/lex/initskel.c b/usr.bin/lex/initskel.c
> index a7a69875521d..53a0ae452aa8 100644
> --- a/usr.bin/lex/initskel.c
> +++ b/usr.bin/lex/initskel.c
> @@ -1,4 +1,3 @@
> -/* $FreeBSD$ */
>  /* File created from flex.skl via mkskel.sh */
>  
>  #include "flexdef.h"
> @@ -448,11 +447,7 @@ const char *skel[] = {
>    "/* First, we deal with  platform-specific or compiler-specific issues. */",
>    "",
>    "#if defined(__FreeBSD__)",
> -  "#ifndef __STDC_LIMIT_MACROS",
> -  "#define	__STDC_LIMIT_MACROS",
> -  "#endif",
>    "#include <sys/cdefs.h>",
> -  "#include <stdint.h>",
>    "#else",
>    "#define	__dead2",
>    "#endif",
> @@ -2301,7 +2296,11 @@ const char *skel[] = {
>    "				case EOB_ACT_END_OF_FILE:",
>    "					{",
>    "					if ( yywrap( M4_YY_CALL_ONLY_ARG ) )",
> +  "#ifdef YY_FLEX_LEX_COMPAT",
>    "						return 0;",
> +  "#else",
> +  "						return EOF;",
> +  "#endif",
>    "",
>    "					if ( ! YY_G(yy_did_buffer_switch_on_eof) )",
>    "						YY_NEW_FILE;",
> 

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the dev-commits-src-all mailing list