Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103777
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
- Property svn:mergeinfo changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
r58459 r58466 54 54 // the whole edit area needs to be refreshed 55 55 // 56 BOOLEAN FileBufferNeedRefresh; 56 BOOLEAN FileBufferNeedRefresh; 57 57 58 58 // … … 147 147 /** 148 148 Advance to the next Count lines 149 149 150 150 @param[in] Count The line number to advance by. 151 151 @param[in] CurrentLine The pointer to the current line structure. … … 187 187 /** 188 188 Retreat to the previous Count lines. 189 189 190 190 @param[in] Count The line number to retreat by. 191 191 @param[in] CurrentLine The pointer to the current line structure. … … 227 227 /** 228 228 Advance/Retreat lines 229 229 230 230 @param[in] Count line number to advance/retreat 231 231 >0 : advance … … 492 492 CHAR16 *PrintLine; 493 493 CHAR16 *PrintLine2; 494 UINTN BufLen; 494 UINTN BufLen; 495 495 496 496 // … … 722 722 723 723 @param Str The file name to set. 724 724 725 725 @retval EFI_SUCCESS The filename was successfully set. 726 726 @retval EFI_OUT_OF_RESOURCES A memory allocation failed. … … 777 777 /** 778 778 Read a file from disk into the FileBuffer. 779 779 780 780 @param[in] FileName The filename to read. 781 781 @param[in] Recover TRUE if is for recover mode, no information printouts. 782 782 783 783 @retval EFI_SUCCESS The load was successful. 784 784 @retval EFI_LOAD_ERROR The load failed. … … 838 838 839 839 Info = ShellGetFileInfo(FileHandle); 840 840 841 841 if (Info->Attribute & EFI_FILE_DIRECTORY) { 842 842 StatusBarSetStatusString (L"Directory Can Not Be Edited"); … … 1414 1414 1415 1415 @retval EFI_SUCCESS Data was written. 1416 @retval EFI_LOAD_ERROR 1416 @retval EFI_LOAD_ERROR 1417 1417 @retval EFI_OUT_OF_RESOURCES There were not enough resources to write the file. 1418 1418 **/ … … 1490 1490 return EFI_LOAD_ERROR; 1491 1491 } 1492 1492 1493 1493 if (Info != NULL) { 1494 1494 Attribute = Info->Attribute & ~EFI_FILE_READ_ONLY; … … 1568 1568 Status = ShellWriteFile (FileHandle, &Size, Cache); 1569 1569 if (EFI_ERROR (Status)) { 1570 ShellDeleteFile (&FileHandle); 1570 ShellDeleteFile (&FileHandle); 1571 1571 FreePool (Cache); 1572 1572 return EFI_LOAD_ERROR; … … 1934 1934 1935 1935 /** 1936 Delete current character from current line. This is the effect caused 1936 Delete current character from current line. This is the effect caused 1937 1937 by the 'del' key. 1938 1938 … … 2048 2048 Insert a char into line 2049 2049 2050 2050 2051 2051 @param[in] Line The line to insert into. 2052 2052 @param[in] Char The char to insert. … … 2428 2428 } 2429 2429 2430 /** 2430 /** 2431 2431 Dispatch input to different handler 2432 2432 @param[in] Key The input key. One of: … … 2648 2648 /** 2649 2649 Advance/Retreat lines and set CurrentLine in FileBuffer to it 2650 2650 2651 2651 @param[in] Count The line number to advance/retreat 2652 2652 >0 : advance … … 2796 2796 Cut current line out and return a pointer to it. 2797 2797 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 2799 2799 the allocated cut line. 2800 2800 … … 2973 2973 Column = 0; 2974 2974 Position = 0; 2975 2975 2976 2976 // 2977 2977 // search if in current line … … 2992 2992 Position = CharPos - Current + 1; 2993 2993 Found = TRUE; 2994 } 2994 } 2995 2995 2996 2996 // … … 3014 3014 Position = CharPos - Line->Buffer + 1; 3015 3015 Found = TRUE; 3016 } 3017 3016 } 3017 3018 3018 if (Found) { 3019 3019 //
Note:
See TracChangeset
for help on using the changeset viewer.