From owner-dev-commits-src-all@freebsd.org Tue Apr 20 06:56:40 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 633025E7078; Tue, 20 Apr 2021 06:56:40 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FPZGw0YBgz3rdk; Tue, 20 Apr 2021 06:56:38 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 13K6uZQw069495; Mon, 19 Apr 2021 23:56:35 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 13K6uZPZ069494; Mon, 19 Apr 2021 23:56:35 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <202104200656.13K6uZPZ069494@gndrsh.dnsmgr.net> Subject: Re: git: 686cf5468c4a - main - flex: Regen bootstrap files In-Reply-To: <202104191829.13JITv1A033527@gitrepo.freebsd.org> To: Jung-uk Kim Date: Mon, 19 Apr 2021 23:56:35 -0700 (PDT) CC: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4FPZGw0YBgz3rdk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2021 06:56:40 -0000 > The branch main has been updated by jkim: > > URL: https://cgit.FreeBSD.org/src/commit/?id=686cf5468c4a85c2a6385cdbab2383900876a41d > > commit 686cf5468c4a85c2a6385cdbab2383900876a41d > Author: Jung-uk Kim > AuthorDate: 2021-04-19 18:20:51 +0000 > Commit: Jung-uk Kim > 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 (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 /* 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 "" > > @@ -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 ", > - "#include ", > "#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@freebsd.org