]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLibPrivateInternalFiles/Include/MainData.h
Changes so that Argv points to narrow-character versions of the command-line arguments.
[mirror_edk2.git] / StdLibPrivateInternalFiles / Include / MainData.h
index b4b071a0805111a6bce759ec9557b46ead2d4057..fcb28e3255bea545829e3811f9784dedf7219b5a 100644 (file)
@@ -18,6 +18,7 @@
 #include  <limits.h>\r
 #include  <signal.h>\r
 #include  <time.h>\r
+#include  <setjmp.h>\r
 \r
 #include  <kfile.h>\r
 #include  <Device/Device.h>\r
@@ -74,7 +75,6 @@ struct  __MainData {
   char              *NCmdLine;                // Narrow character version of command line arguments.\r
 \r
   void (*cleanup)(void);        // Stdio Cleanup Function Pointer\r
-  void (*FinalCleanup)(void);   // Function to free this structure and cleanup before exit.\r
 \r
   __xithandler_t   *atexit_handler[ATEXIT_MAX];  // Array of handlers for atexit.\r
   clock_t           AppStartTime;                // Set in Main.c and used for time.h\r
@@ -88,6 +88,9 @@ struct  __MainData {
   char              ASgetenv[ASCII_STRING_MAX];   // Only modified by getenv\r
   char              ASasctime[ASCTIME_BUFLEN];    // Only modified by asctime\r
 \r
+  jmp_buf           MainExit;                     ///< Save environment used for implementing _Exit()\r
+  int               ExitValue;                    ///< Value being returned by _Exit()\r
+\r
   BOOLEAN         aborting;                       // Ensures cleanup function only called once when aborting.\r
 };\r
 \r