From: Ian Jackson Subject: Re: [OSSTest Nested v12 01/21] Optimize and re-format previous code of 'submenu' parsing Date: Thu, 10 Sep 2015 17:16:47 +0100 Message-ID: <22001.44271.345866.370761@mariner.uk.xensource.com> References: <1440774490-16725-1-git-send-email-robert.hu@intel.com> <1440774490-16725-2-git-send-email-robert.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1440774490-16725-2-git-send-email-robert.hu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Robert Ho Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, gordon.jin@intel.com, di.zheng@intel.com List-Id: xen-devel@lists.xenproject.org Robert Ho writes ("[OSSTest Nested v12 01/21] Optimize and re-format previous code of 'submenu' parsing"): > * space between ')' and '{'; and after '=' > * omit unnecessary 'define' and '!defined' usage > * break long '{}' into several lines These changes are all good. But } > if (m/^\s*submenu\s+[\'\"](.*)[\'\"].*\{\s*$/) { > - $submenu={ StartLine =>$., MenuEntryPath => join ">", @offsets }; > + $submenu= { StartLine =>$. }; This drops the setting of MenuEntryPath from $submenu. This isn't mentioned in the commit message, and (without looking at the code to double-check) I'm not sure that it's right. Thanks, Ian.