Fix ShellPkg build errors for UNIXGCC toolchain.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8555 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2009-06-15 18:42:13 +00:00
parent 7e7e7fec0a
commit 08d7f8e83d
7 changed files with 17 additions and 17 deletions

View File

@ -30,7 +30,7 @@
# #
[Sources] [Sources]
SA.C SA.c
[Packages] [Packages]
MdePkg/MdePkg.dec MdePkg/MdePkg.dec

View File

@ -245,7 +245,7 @@ EFIAPI
ShellWriteFile( ShellWriteFile(
IN EFI_FILE_HANDLE FileHandle, IN EFI_FILE_HANDLE FileHandle,
IN OUT UINTN *BufferSize, IN OUT UINTN *BufferSize,
IN CONST VOID *Buffer IN VOID *Buffer
); );
/** /**

View File

@ -904,7 +904,7 @@ EFI_STATUS
(EFIAPI *EFI_SHELL_WRITE_FILE)( (EFIAPI *EFI_SHELL_WRITE_FILE)(
IN EFI_FILE_HANDLE FileHandle, IN EFI_FILE_HANDLE FileHandle,
IN OUT UINTN *BufferSize, IN OUT UINTN *BufferSize,
OUT VOID *Buffer IN VOID *Buffer
); );
typedef struct _EFI_SHELL_PROTOCOL { typedef struct _EFI_SHELL_PROTOCOL {

View File

@ -16,9 +16,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef _SHELLENV2_H_ #ifndef _SHELLENV2_H_
#define _SHELLENV2_H_ #define _SHELLENV2_H_
#include <Protocol\SimpleTextIn.h> #include <Protocol/SimpleTextIn.h>
#include <Protocol\SimpleTextOut.h> #include <Protocol/SimpleTextOut.h>
#include <Protocol\EfiShellInterface.h> #include <Protocol/EfiShellInterface.h>
#define DEFAULT_INIT_ROW 1 #define DEFAULT_INIT_ROW 1
#define DEFAULT_AUTO_LF FALSE #define DEFAULT_AUTO_LF FALSE

View File

@ -26,7 +26,7 @@
#ifndef _SHELLINTERFACE_H_ #ifndef _SHELLINTERFACE_H_
#define _SHELLINTERFACE_H_ #define _SHELLINTERFACE_H_
#include <Protocol\LoadedImage.h> #include <Protocol/LoadedImage.h>
#define SHELL_INTERFACE_PROTOCOL_GUID \ #define SHELL_INTERFACE_PROTOCOL_GUID \
{ \ { \
@ -38,11 +38,11 @@
/// ///
typedef enum { typedef enum {
ARG_NO_ATTRIB = 0x0, ARG_NO_ATTRIB = 0x0,
ARG_IS_QUOTED = 0x1, ARG_IS_QUOTED = BIT0,
ARG_PARTIALLY_QUOTED = 0x2, ARG_PARTIALLY_QUOTED = BIT1,
ARG_FIRST_HALF_QUOTED = 0x4, ARG_FIRST_HALF_QUOTED = BIT2,
ARG_FIRST_CHAR_IS_ESC = 0x8 ARG_FIRST_CHAR_IS_ESC = BIT3
}; } EFI_SHELL_ARG_INFO_TYPES;
/// ///
/// attributes for an argument. /// attributes for an argument.

View File

@ -455,7 +455,7 @@ ShellOpenFileByDevicePath(
} }
Status = gBS->OpenProtocol(*DeviceHandle, Status = gBS->OpenProtocol(*DeviceHandle,
&gEfiSimpleFileSystemProtocolGuid, &gEfiSimpleFileSystemProtocolGuid,
&EfiSimpleFileSystemProtocol, (VOID**) &EfiSimpleFileSystemProtocol,
gImageHandle, gImageHandle,
NULL, NULL,
EFI_OPEN_PROTOCOL_GET_PROTOCOL); EFI_OPEN_PROTOCOL_GET_PROTOCOL);
@ -1725,7 +1725,7 @@ ShellCommandLineParse (
CheckPackage, CheckPackage,
ProblemParam, ProblemParam,
AutoPageBreak, AutoPageBreak,
mEfiShellParametersProtocol->Argv, (CONST CHAR16**) mEfiShellParametersProtocol->Argv,
mEfiShellParametersProtocol->Argc )); mEfiShellParametersProtocol->Argc ));
} }
@ -1737,7 +1737,7 @@ ShellCommandLineParse (
CheckPackage, CheckPackage,
ProblemParam, ProblemParam,
AutoPageBreak, AutoPageBreak,
mEfiShellInterface->Argv, (CONST CHAR16**) mEfiShellInterface->Argv,
mEfiShellInterface->Argc )); mEfiShellInterface->Argc ));
} }