VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103777
Message:

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c

    r58459 r58466  
    5454// the whole edit area needs to be refreshed
    5555//
    56 BOOLEAN          FileBufferNeedRefresh; 
     56BOOLEAN          FileBufferNeedRefresh;
    5757
    5858//
     
    147147/**
    148148  Advance to the next Count lines
    149  
     149
    150150  @param[in] Count              The line number to advance by.
    151151  @param[in] CurrentLine        The pointer to the current line structure.
     
    187187/**
    188188  Retreat to the previous Count lines.
    189  
     189
    190190  @param[in] Count              The line number to retreat by.
    191191  @param[in] CurrentLine        The pointer to the current line structure.
     
    227227/**
    228228  Advance/Retreat lines
    229  
     229
    230230  @param[in] Count  line number to advance/retreat
    231231                       >0 : advance
     
    492492  CHAR16  *PrintLine;
    493493  CHAR16  *PrintLine2;
    494   UINTN   BufLen; 
     494  UINTN   BufLen;
    495495
    496496  //
     
    722722
    723723  @param Str                    The file name to set.
    724  
     724
    725725  @retval EFI_SUCCESS           The filename was successfully set.
    726726  @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.
     
    777777/**
    778778  Read a file from disk into the FileBuffer.
    779  
     779
    780780  @param[in] FileName           The filename to read.
    781781  @param[in] Recover            TRUE if is for recover mode, no information printouts.
    782  
     782
    783783  @retval EFI_SUCCESS            The load was successful.
    784784  @retval EFI_LOAD_ERROR         The load failed.
     
    838838
    839839    Info = ShellGetFileInfo(FileHandle);
    840    
     840
    841841    if (Info->Attribute & EFI_FILE_DIRECTORY) {
    842842      StatusBarSetStatusString (L"Directory Can Not Be Edited");
     
    14141414
    14151415  @retval EFI_SUCCESS           Data was written.
    1416   @retval EFI_LOAD_ERROR       
     1416  @retval EFI_LOAD_ERROR
    14171417  @retval EFI_OUT_OF_RESOURCES  There were not enough resources to write the file.
    14181418**/
     
    14901490      return EFI_LOAD_ERROR;
    14911491    }
    1492    
     1492
    14931493    if (Info != NULL) {
    14941494      Attribute = Info->Attribute & ~EFI_FILE_READ_ONLY;
     
    15681568      Status  = ShellWriteFile (FileHandle, &Size, Cache);
    15691569      if (EFI_ERROR (Status)) {
    1570         ShellDeleteFile (&FileHandle);       
     1570        ShellDeleteFile (&FileHandle);
    15711571        FreePool (Cache);
    15721572        return EFI_LOAD_ERROR;
     
    19341934
    19351935/**
    1936   Delete current character from current line.  This is the effect caused 
     1936  Delete current character from current line.  This is the effect caused
    19371937  by the 'del' key.
    19381938
     
    20482048  Insert a char into line
    20492049
    2050  
     2050
    20512051  @param[in] Line     The line to insert into.
    20522052  @param[in] Char     The char to insert.
     
    24282428}
    24292429
    2430 /** 
     2430/**
    24312431  Dispatch input to different handler
    24322432  @param[in] Key                The input key.  One of:
     
    26482648/**
    26492649  Advance/Retreat lines and set CurrentLine in FileBuffer to it
    2650  
     2650
    26512651  @param[in] Count The line number to advance/retreat
    26522652                     >0 : advance
     
    27962796  Cut current line out and return a pointer to it.
    27972797
    2798   @param[out] CutLine    Upon a successful return pointer to the pointer to 
     2798  @param[out] CutLine    Upon a successful return pointer to the pointer to
    27992799                        the allocated cut line.
    28002800
     
    29732973  Column = 0;
    29742974  Position = 0;
    2975  
     2975
    29762976  //
    29772977  // search if in current line
     
    29922992    Position = CharPos - Current + 1;
    29932993    Found   = TRUE;
    2994   } 
     2994  }
    29952995
    29962996  //
     
    30143014        Position = CharPos - Line->Buffer + 1;
    30153015        Found   = TRUE;
    3016       } 
    3017      
     3016      }
     3017
    30183018      if (Found) {
    30193019        //
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette