]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c
Add missing braces around initializer.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / HexEdit / MainHexEditor.c
index 357f8fa9774480da5ef9c24250b8a410ccbbee3e..446dac7e014ea544553f7a3ac0f40b477cbfa4a2 100644 (file)
@@ -4,7 +4,7 @@
      - Instances of the other objects of the editor\r
      - Main Interfaces\r
   \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2012, 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
@@ -50,8 +50,7 @@ HEFI_EDITOR_GLOBAL_EDITOR       HMainEditorBackupVar;
 HEFI_EDITOR_GLOBAL_EDITOR       HMainEditorConst = {\r
   &HBufferImage,\r
   {\r
-    0,\r
-    0\r
+    {0, 0}\r
   },\r
   {\r
     0,\r
@@ -106,10 +105,11 @@ HMainCommandDisplayHelp (
   VOID\r
   )\r
 {\r
-  INTN     CurrentLine=0;\r
+  INT32    CurrentLine;\r
   CHAR16 * InfoString;\r
   EFI_INPUT_KEY  Key;\r
-  \r
+\r
+  CurrentLine = 0;\r
   // print helpInfo      \r
   for (CurrentLine = 0; 0 != HexMainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
     InfoString = HiiGetString(gShellDebug1HiiHandle, HexMainMenuHelpInfo[CurrentLine]\r
@@ -1509,27 +1509,27 @@ MENU_ITEM_FUNCTION HexMainControlBasedMenuFunctions[] = {
   NULL,                      /* Ctrl - A */\r
   NULL,                      /* Ctrl - B */\r
   NULL,                      /* Ctrl - C */\r
-  NULL,                      /* Ctrl - D */\r
+  HMainCommandSelectEnd,     /* Ctrl - D */\r
   HMainCommandDisplayHelp,   /* Ctrl - E */\r
   NULL,                      /* Ctrl - F */\r
-  NULL,                      /* Ctrl - G */\r
+  HMainCommandGoToOffset,    /* Ctrl - G */\r
   NULL,                      /* Ctrl - H */\r
-  NULL,                      /* Ctrl - I */\r
+  HMainCommandOpenDisk,      /* Ctrl - I */\r
   NULL,                      /* Ctrl - J */\r
   NULL,                      /* Ctrl - K */\r
   NULL,                      /* Ctrl - L */\r
-  NULL,                      /* Ctrl - M */\r
+  HMainCommandOpenMemory,    /* Ctrl - M */\r
   NULL,                      /* Ctrl - N */\r
-  NULL,                      /* Ctrl - O */\r
+  HMainCommandOpenFile,      /* Ctrl - O */\r
   NULL,                      /* Ctrl - P */\r
-  NULL,                      /* Ctrl - Q */\r
+  HMainCommandExit,          /* Ctrl - Q */\r
   NULL,                      /* Ctrl - R */\r
-  NULL,                      /* Ctrl - S */\r
-  NULL,                      /* Ctrl - T */\r
+  HMainCommandSaveBuffer,    /* Ctrl - S */\r
+  HMainCommandSelectStart,   /* Ctrl - T */\r
   NULL,                      /* Ctrl - U */\r
-  NULL,                      /* Ctrl - V */\r
+  HMainCommandPaste,         /* Ctrl - V */\r
   NULL,                      /* Ctrl - W */\r
-  NULL,                      /* Ctrl - X */\r
+  HMainCommandCut,           /* Ctrl - X */\r
   NULL,                      /* Ctrl - Y */\r
   NULL,                      /* Ctrl - Z */\r
 };\r