]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
ShellPkg: Clean up source files
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Edit / FileBuffer.c
index 9713ccaf5083dd2f44cf553502cd28fe535db990..56ccd399b0a88dc03464f66be3a9cb09250e3586 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements filebuffer interface functions.\r
 \r
-  Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -53,7 +53,7 @@ EFI_EDITOR_FILE_BUFFER  FileBufferConst = {
 //\r
 // the whole edit area needs to be refreshed\r
 //\r
-BOOLEAN          FileBufferNeedRefresh;        \r
+BOOLEAN          FileBufferNeedRefresh;\r
 \r
 //\r
 // only the current line in edit area needs to be refresh\r
@@ -144,7 +144,7 @@ FileBufferBackup (
 \r
 /**\r
   Advance to the next Count lines\r
-  \r
+\r
   @param[in] Count              The line number to advance by.\r
   @param[in] CurrentLine        The pointer to the current line structure.\r
   @param[in] LineList           The pointer to the linked list of lines.\r
@@ -183,7 +183,7 @@ InternalEditorMiscLineAdvance (
 \r
 /**\r
   Retreat to the previous Count lines.\r
-  \r
+\r
   @param[in] Count              The line number to retreat by.\r
   @param[in] CurrentLine        The pointer to the current line structure.\r
   @param[in] LineList           The pointer to the linked list of lines.\r
@@ -222,7 +222,7 @@ InternalEditorMiscLineRetreat (
 \r
 /**\r
   Advance/Retreat lines\r
-  \r
+\r
   @param[in] Count  line number to advance/retreat\r
                        >0 : advance\r
                        <0 : retreat\r
@@ -484,7 +484,7 @@ FileBufferPrintLine (
   UINTN   Limit;\r
   CHAR16  *PrintLine;\r
   CHAR16  *PrintLine2;\r
-  UINTN   BufLen; \r
+  UINTN   BufLen;\r
 \r
   //\r
   // print start from correct character\r
@@ -710,7 +710,7 @@ FileBufferCreateLine (
   Set FileName field in FileBuffer.\r
 \r
   @param Str                    The file name to set.\r
-  \r
+\r
   @retval EFI_SUCCESS           The filename was successfully set.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_INVALID_PARAMETER Str is not a valid filename.\r
@@ -763,10 +763,10 @@ FileBufferFree (
 \r
 /**\r
   Read a file from disk into the FileBuffer.\r
-  \r
+\r
   @param[in] FileName           The filename to read.\r
   @param[in] Recover            TRUE if is for recover mode, no information printouts.\r
-  \r
+\r
   @retval EFI_SUCCESS            The load was successful.\r
   @retval EFI_LOAD_ERROR         The load failed.\r
   @retval EFI_OUT_OF_RESOURCES   A memory allocation failed.\r
@@ -823,7 +823,7 @@ FileBufferRead (
     }\r
 \r
     Info = ShellGetFileInfo(FileHandle);\r
-    \r
+\r
     if (Info->Attribute & EFI_FILE_DIRECTORY) {\r
       StatusBarSetStatusString (L"Directory Can Not Be Edited");\r
       FreePool (Info);\r
@@ -1397,7 +1397,7 @@ UnicodeToAscii (
   @param[in] FileName           The file name for writing.\r
 \r
   @retval EFI_SUCCESS           Data was written.\r
-  @retval EFI_LOAD_ERROR        \r
+  @retval EFI_LOAD_ERROR\r
   @retval EFI_OUT_OF_RESOURCES  There were not enough resources to write the file.\r
 **/\r
 EFI_STATUS\r
@@ -1472,7 +1472,7 @@ FileBufferSave (
       FreePool(Info);\r
       return EFI_LOAD_ERROR;\r
     }\r
-    \r
+\r
     if (Info != NULL) {\r
       Attribute = Info->Attribute & ~EFI_FILE_READ_ONLY;\r
       FreePool(Info);\r
@@ -1550,7 +1550,7 @@ FileBufferSave (
       Size    = TotalSize - LeftSize;\r
       Status  = ShellWriteFile (FileHandle, &Size, Cache);\r
       if (EFI_ERROR (Status)) {\r
-        ShellDeleteFile (&FileHandle);        \r
+        ShellDeleteFile (&FileHandle);\r
         FreePool (Cache);\r
         return EFI_LOAD_ERROR;\r
       }\r
@@ -1911,7 +1911,7 @@ FileBufferDoReturn (
 }\r
 \r
 /**\r
-  Delete current character from current line.  This is the effect caused \r
+  Delete current character from current line.  This is the effect caused\r
   by the 'del' key.\r
 \r
   @retval EFI_SUCCESS\r
@@ -2023,7 +2023,7 @@ FileBufferScrollRight (
 /**\r
   Insert a char into line\r
 \r
-  \r
+\r
   @param[in] Line     The line to insert into.\r
   @param[in] Char     The char to insert.\r
   @param[in] Pos      The position to insert the char at ( start from 0 ).\r
@@ -2395,7 +2395,7 @@ FileBufferEnd (
   return EFI_SUCCESS;\r
 }\r
 \r
-/** \r
+/**\r
   Dispatch input to different handler\r
   @param[in] Key                The input key.  One of:\r
                                     ASCII KEY\r
@@ -2610,7 +2610,7 @@ RightCurrentScreen (
 \r
 /**\r
   Advance/Retreat lines and set CurrentLine in FileBuffer to it\r
-  \r
+\r
   @param[in] Count The line number to advance/retreat\r
                      >0 : advance\r
                      <0: retreat\r
@@ -2756,7 +2756,7 @@ FileBufferMovePosition (
 /**\r
   Cut current line out and return a pointer to it.\r
 \r
-  @param[out] CutLine    Upon a successful return pointer to the pointer to \r
+  @param[out] CutLine    Upon a successful return pointer to the pointer to\r
                         the allocated cut line.\r
 \r
   @retval EFI_SUCCESS             The cut was successful.\r
@@ -2930,7 +2930,7 @@ FileBufferSearch (
 \r
   Column = 0;\r
   Position = 0;\r
-  \r
+\r
   //\r
   // search if in current line\r
   //\r
@@ -2949,7 +2949,7 @@ FileBufferSearch (
   if (CharPos != NULL) {\r
     Position = CharPos - Current + 1;\r
     Found   = TRUE;\r
-  } \r
+  }\r
 \r
   //\r
   // found\r
@@ -2971,8 +2971,8 @@ FileBufferSearch (
       if (CharPos != NULL) {\r
         Position = CharPos - Line->Buffer + 1;\r
         Found   = TRUE;\r
-      } \r
-      \r
+      }\r
+\r
       if (Found) {\r
         //\r
         // found\r