From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7876) id A32983852E1E; Mon, 11 Apr 2022 12:09:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A32983852E1E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nils-Christian Kempke To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/fortran: rename f77_keywords to f_keywords X-Act-Checkin: binutils-gdb X-Git-Author: Nils-Christian Kempke X-Git-Refname: refs/heads/master X-Git-Oldrev: 87abd9825d8e512dc89a4af8637ca52da42ebc68 X-Git-Newrev: 04ba65365054e37461b4fd904ff9c00d88023b02 Message-Id: <20220411120909.A32983852E1E@sourceware.org> Date: Mon, 11 Apr 2022 12:09:09 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2022 12:09:09 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D04ba65365054= e37461b4fd904ff9c00d88023b02 commit 04ba65365054e37461b4fd904ff9c00d88023b02 Author: Nils-Christian Kempke Date: Mon Apr 11 14:06:56 2022 +0200 gdb/fortran: rename f77_keywords to f_keywords =20 Rename f77_keywords to f_keywords since some of the introduced keywords in the array are f90 only. Diff: --- gdb/f-exp.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/f-exp.y b/gdb/f-exp.y index bb8e2ba6475..3ef44eca992 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -1138,7 +1138,7 @@ static const struct f77_boolean_val boolean_values[] = =3D { ".false.", 0 } }; =20 -static const struct token f77_keywords[] =3D +static const token f_keywords[] =3D { /* Historically these have always been lowercase only in GDB. */ { "character", CHARACTER, OP_NULL, true }, @@ -1473,7 +1473,7 @@ yylex (void) =20 /* Catch specific keywords. */ =20 - for (const auto &keyword : f77_keywords) + for (const auto &keyword : f_keywords) if (strlen (keyword.oper) =3D=3D namelen && ((!keyword.case_sensitive && strncasecmp (tokstart, keyword.oper, namelen) =3D=3D 0)