Message ID | 1544526070-16690-8-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | 0bcc547ec4b03a0b66615694561cce9c5a9a1014 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp477341ljp; Tue, 11 Dec 2018 03:04:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/VA/DOCWSEs9j9XSrqOnNG7vBkR9jGWhNi1sWw56Fq3p9qcHlkZ8WX/k7lnFLUjjf/+X7Nb X-Received: by 2002:a63:82c6:: with SMTP id w189mr14393725pgd.344.1544526254424; Tue, 11 Dec 2018 03:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544526254; cv=none; d=google.com; s=arc-20160816; b=flYjxeEtgngAg4x856nDlEldPa8bQ/VfeY7FT3M3DM/4sSUHipvyYC9PBhHtb6g2ro EAXI/pKQ6W64GJEDkigJ9plHNBzsoXga6Z4ImM51/3Nxvrtezn0icIbp0qTAee4sJvyC jb//PcHFT4pQogkJUR2hSo3TkZHlQawtvoiqKcA6NXnWitcOfpVkHT4GRH1tpl/TFEHF HhbeCgCBAnVeJTbHY1AEXqo9zeh1MSyEz7CH5gM3IIISinUGP4HQLJT0Q5X/xpIF31Ae Q8inW0yc4GQO1YtHjvk/E2PS663u1Cqeeu3DQOTPfdS/9VcRnwQwJFMxZCpMtAcJUsKA oijw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=p0w0tcziiu1RUOelBJBhML/iGcu+25dug+WgEnUJYVU=; b=jycuLk9jRpXmreChcP+m6CJNz6MRXtHMESsHjuShnjwu6Dh3WxEKZzFXrxT2k1A8Of 5cxs1lJWsE+/KOlx/0avH0EfbTMsahFb3NMnYaba0Qm2qtuwIycyyNp1gS4Kf4C9VTYB vOYKONYTJi/o5KxmQx+L8RKMpGM1BLt90isz8MMYeexEbzPFEQ+c1urP/egM4zJgExtc pyACXSyzWfCX7CqYTnaL+211F0uid+xbuqRZAHHodF+tdjTlkchM6bPyXP74fwf8NWI0 /Jny4/5uSrUO9A7/bYII6kifpo54qEfFW6z5tvY2Y3OgqgGaZofCPgRyhJ7C13aJN8Vv C4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JvHjF6IC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h67si13289142pfb.146.2018.12.11.03.04.14; Tue, 11 Dec 2018 03:04:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JvHjF6IC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726692AbeLKLEM (ORCPT <rfc822;igor.opaniuk@linaro.org> + 31 others); Tue, 11 Dec 2018 06:04:12 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:36637 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbeLKLBl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Dec 2018 06:01:41 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id wBBB1C5i017210; Tue, 11 Dec 2018 20:01:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com wBBB1C5i017210 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544526078; bh=p0w0tcziiu1RUOelBJBhML/iGcu+25dug+WgEnUJYVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JvHjF6ICUbcoEz58vc6whQRxo/YWVfZ++9W/VWLCbG8xTWjif0kR/FmA92Did9lm6 T0rUuAkhn0vKx5/to80deKlE/F1BcjdrkyFzw//oCYSuakgP0ugN0L1KGR5IHaB4mD qQTJt8FVh8mccWCWtrV+7prmWMxYp/Yi1i2Xb0k7DPfA1P4fHzFp+7IZnJR1HYVMi0 5w+zMiYFk39s52qhirfJ1kFv++9zru1Kpo6rYxPgaeEsKeQL6sClyRBXyd2+bI671w 3XJTOFDk4Na0w9xkQFOxNl0yi6Kc5KOAL1WldORdFJuGdDM889wyXJzgE1c4Axv6b+ WR49TcAKds4AQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-kbuild@vger.kernel.org Cc: Ulf Magnusson <ulfalizer@gmail.com>, linux-kernel@vger.kernel.org, Masahiro Yamada <yamada.masahiro@socionext.com> Subject: [PATCH 07/27] kconfig: clean up EOF handling in the lexer Date: Tue, 11 Dec 2018 20:00:50 +0900 Message-Id: <1544526070-16690-8-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544526070-16690-1-git-send-email-yamada.masahiro@socionext.com> References: <1544526070-16690-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
kconfig: remove all reduce/shift conflicts, refactor lexer, fix various issues
|
expand
|
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 847ba42..9038e97 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -178,9 +178,6 @@ n [A-Za-z0-9_-] \\\n ; [[:blank:]]+ . warn_ignored_character(*yytext); - <<EOF>> { - BEGIN(INITIAL); - } } <STRING>{ @@ -262,6 +259,8 @@ n [A-Za-z0-9_-] } <<EOF>> { + BEGIN(INITIAL); + if (current_file) { zconf_endfile(); return T_EOL;
A new file should always start in the INITIAL state. When the lexer bumps into EOF, the lexer must get back to the INITIAL state anyway. Remove the redundant <<EOF>> pattern in the PARAM state. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- scripts/kconfig/zconf.l | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.7.4