\r
**/\r
\r
-#if !defined(__SHELL_BASE__)\r
+#ifndef __SHELL_BASE__\r
#define __SHELL_BASE__\r
\r
+typedef VOID *SHELL_FILE_HANDLE;\r
+\r
+#ifndef SHELL_FREE_NON_NULL\r
+#define SHELL_FREE_NON_NULL(Pointer) \\r
+ do { \\r
+ if (Pointer != NULL) { \\r
+ FreePool(Pointer); \\r
+ } \\r
+ } while(FALSE)\r
+#endif //SHELL_FREE_NON_NULL\r
+\r
typedef enum {\r
///\r
/// The operation completed successfully.\r
SHELL_DEVICE_ERROR = 7,\r
\r
///\r
-/// The device can not be written to.\r
+/// The device cannot be written to.\r
///\r
SHELL_WRITE_PROTECTED = 8,\r
\r