Re: [edk2] ShellPkg: Fix NSH parsing

2014-01-08 Thread Ni, Ruiyu
The patch is good for some NSH script files which contain lots of lines of comments though it only filters out only the lines whose very first char is '#'. Reviewed-by: Ruiyu Ni From: Carsey, Jaben Sent: Thursday, January 09, 2014 3:30 AM To: Ni, Ruiyu Cc: edk2-devel@lists.sourceforge.net; Cars

[edk2] ShellPkg: Fix NSH parsing

2014-01-08 Thread Carsey, Jaben
Ray, Can you verify this please? ShellPkg: Fix NSH parsing This skips lines in NSH files that are completely comments. This reduces the memory overhead and the later processing. This also frees memory correctly when a second memory allocation fails. Contributed-under: TianoCore Contribution