Revision: 14969
          http://sourceforge.net/p/edk2/code/14969
Author:   jcarsey
Date:     2013-12-12 17:27:27 +0000 (Thu, 12 Dec 2013)
Log Message:
-----------
ShellPkg: Refactor out the searching for pipe characters

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <[email protected]>
Reviewed-by: Erik Bjorge <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/Shell.c

Modified: trunk/edk2/ShellPkg/Application/Shell/Shell.c
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/Shell.c       2013-12-11 16:58:39 UTC 
(rev 14968)
+++ trunk/edk2/ShellPkg/Application/Shell/Shell.c       2013-12-12 17:27:27 UTC 
(rev 14969)
@@ -71,16 +71,15 @@
 STATIC CONST CHAR16 mStartupScript[]        = L"startup.nsh";
 
 /**
-  Determine if a command line contains a valid split operation
+  Find a command line contains a split operation
 
   @param[in] CmdLine      The command line to parse.
 
-  @retval TRUE            CmdLine has a valid split.
-  @retval FALSE           CmdLine does not have a valid split.
+  @retval                 A pointer to the | character in CmdLine or NULL if 
not present.
 **/
 BOOLEAN
 EFIAPI
-ContainsSplit(
+FindSplit(
   IN CONST CHAR16 *CmdLine
   )
 {
@@ -95,6 +94,25 @@
       }
     }
   }
+  return (TempSpot);
+}
+
+/**
+  Determine if a command line contains a split operation
+
+  @param[in] CmdLine      The command line to parse.
+
+  @retval TRUE            CmdLine has a valid split.
+  @retval FALSE           CmdLine does not have a valid split.
+**/
+BOOLEAN
+EFIAPI
+ContainsSplit(
+  IN CONST CHAR16 *CmdLine
+  )
+{
+  CONST CHAR16 *TempSpot;
+  TempSpot = FindSplit(CmdLine);
   return (TempSpot != NULL && *TempSpot != CHAR_NULL);
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to