]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/ShellBase.h
ShellPkg: Move SHELL_FREE_NON_NULL from ShellBase.h to ShellLib.h
[mirror_edk2.git] / ShellPkg / Include / ShellBase.h
index 09f87b4cc0942e1ea200980639e8269df4d54e2a..4b7a3d1e9349d834329a084ebbfaa6d8439368a3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Root include file for Shell Package modules that utilize the SHELL_RETURN type\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2016, 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
 \r
 typedef VOID *SHELL_FILE_HANDLE;\r
 \r
-#define SHELL_FREE_NON_NULL(Pointer)  \\r
-  do {                                \\r
-    if ((Pointer) != NULL) {          \\r
-      FreePool((Pointer));            \\r
-      (Pointer) = NULL;               \\r
-    }                                 \\r
-  } while(FALSE)\r
-\r
 typedef enum {\r
 ///\r
 /// The operation completed successfully.\r