Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp7248639imm; Sun, 20 May 2018 22:40:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoyucZddJ50oNYlWkayVzVXxq/xZaIdFVD0FpDVwBls1R+DzuMt7UkuxdAC3dqPoFIFW6x4 X-Received: by 2002:a62:d9d9:: with SMTP id b86-v6mr18749914pfl.41.1526881254724; Sun, 20 May 2018 22:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526881254; cv=none; d=google.com; s=arc-20160816; b=FBxlusUC7PdnFG09a91c2wTdukBWSyp1pmC1EHYMSa4uxetwG/IfMog+1yDobvI3GA zcz1f93p0c5gpGqnO9BXsi3hpVS7jQo6aDt/6F6dmJjZUnxkW6Q4SbXSq2cEEPiT6sX4 GO0CwYbiSD9aLZi+TeIAXKL5tbFqark6iPcUcmufc6bVuIvzmPQMi6pWHi/8Qfp95MJ6 5iuW6YyvkEHEIdjZY673+FQlo4/YFzrxHdO/iRyc+FZ+zqhMj7wZ1TOhDRtR1iAsIwGx qvKWN27vaTPnoikSOB2gfYMKngEyRTQhksgoCJmah+iL0YNOLeRVrH8zeyRP2T1rgW/d NccQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=ic6ncTfPwr3s9W2UxP13OhGCRK6Z2kKHCUdyHbvqXqc=; b=hihj4MogbMabviHVr0jJZCxJvkG7SYJr6b/tWZJFqjNlHDBNLxGBNzIuwa3koetf9v AZ7AbvZMTf2rUx4/VHaZGCDEfSTtiYlX9tXHvePMgg560nDUnH9GvmyZxc/nYifjAq1i ujd+MZlNBFB6ZZFP5h+BCwi8vuIdEmvUAmI7fWUbkvNhJTd9nkMGRf8/pMO9gerg/kBI PbfhPL55XqkkGba219G2k78JjrxtdKs9iKFcYTJFqGqnX7MzCnCEwvN4WZhU3HMRiNh2 524b0qZJbGo+yD2l1QOYRAoOpLGc8rpSLrII/ceOC7pI760Ph+ANMpb/hApaqx8Aep2B j/wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Nr6P6RyF; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62-v6si13598123pfg.218.2018.05.20.22.40.08; Sun, 20 May 2018 22:40:54 -0700 (PDT) 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=Nr6P6RyF; 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 S1750962AbeEUFjy (ORCPT + 99 others); Mon, 21 May 2018 01:39:54 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:43907 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbeEUFjx (ORCPT ); Mon, 21 May 2018 01:39:53 -0400 Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w4L5dTTo015658; Mon, 21 May 2018 14:39:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w4L5dTTo015658 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1526881170; bh=ic6ncTfPwr3s9W2UxP13OhGCRK6Z2kKHCUdyHbvqXqc=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=Nr6P6RyFRBNbDKxtUmy4IAyV625cxO/yJ3BwmrdyIn1zRChRypdFJM2g778GSfQ5g yPO83/qc1/daQDzu3ocb1zHhc0srTiER2MVSYbXRBzpaXSMUc9S2X723yoj4JZhtQD RRutrHZZzwaW/bKeiqi5DJIC/5pgY6YFn2Dmmgsgk6z/xOPtFI89Zeutmn9N6uy/U2 DP5zZHKITHJC5Xm/qRPCzlYcKM05JE5zwp693dXWTy/mnpUEfsBVDkXRH5V3nx+nV3 c0A5m5fEa4R9qmoIp84tcCHLuRSMOSzsCv355CiTPsgk1QhHlIJrXXBiV7yKd2wCiW qh/es87abeboA== X-Nifty-SrcIP: [209.85.217.177] Received: by mail-ua0-f177.google.com with SMTP id f22-v6so9155891uam.1; Sun, 20 May 2018 22:39:29 -0700 (PDT) X-Gm-Message-State: ALKqPwd3WPm1RWnaKaHOfgYizbJu3J5oAKtoOVFzAb68Q4l3XehLo0WR 3pfd/CZ8723zAYk3fk7nVmqzKvSYoPsVuVLbnhw= X-Received: by 2002:ab0:1014:: with SMTP id f20-v6mr13664967uab.141.1526881168662; Sun, 20 May 2018 22:39:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.85.216 with HTTP; Sun, 20 May 2018 22:38:48 -0700 (PDT) In-Reply-To: <20180520143933.GA9826@ravnborg.org> References: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> <1526537830-22606-6-git-send-email-yamada.masahiro@socionext.com> <20180520143933.GA9826@ravnborg.org> From: Masahiro Yamada Date: Mon, 21 May 2018 14:38:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 05/31] kconfig: remove string expansion for mainmenu after yyparse() To: Sam Ravnborg Cc: Linux Kbuild mailing list , Linus Torvalds , Ulf Magnusson , "Luis R . Rodriguez" , Linux Kernel Mailing List , Nicholas Piggin , Kees Cook , Emese Revfy , X86 ML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-20 23:39 GMT+09:00 Sam Ravnborg : >> @@ -544,10 +530,10 @@ void conf_parse(const char *name) >> if (!modules_sym) >> modules_sym = sym_find( "n" ); >> >> - tmp = rootmenu.prompt->text; >> - rootmenu.prompt->text = _(rootmenu.prompt->text); >> - rootmenu.prompt->text = sym_expand_string_value(rootmenu.prompt->text); >> - free((char*)tmp); >> + if (!menu_has_prompt(&rootmenu)) { >> + current_entry = &rootmenu; >> + menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); > > Could this be something less specific? > To help the other users of kconfig out is the wild. > > For example: > > menu_add_prompt(P_MENU, _("Main menu"), NULL); OK, but this should be done as a separate work. I am keeping the current string "Linux Kernel Configuration" > Note, the added _() to make the text translateable. > Hmm, I just wonder how much helpful gettext things are... Rather, it looks maintenance burden to me. Once we add messages, it is difficult to change. -- Best Regards Masahiro Yamada