summaryrefslogtreecommitdiff
path: root/StdLibPrivateInternalFiles/Include/MainData.h
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-30 00:25:54 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2011-07-30 00:25:54 +0000
commitf766dd76fde231ecd4f2e9faf99293e90902cebb (patch)
tree38f845277a463deb34006d84ff1651203dfa425a /StdLibPrivateInternalFiles/Include/MainData.h
parent84c1b22e843a3af1994e2a938a3685f4874462f9 (diff)
downloadedk2-platforms-f766dd76fde231ecd4f2e9faf99293e90902cebb.tar.xz
Changes so that Argv points to narrow-character versions of the command-line arguments.
Fix "long double" handling and differences between MSFT and GCC compilers. Fix compliance issues with ISO/IEC 9899:199409 New Function declarations: setenv(), fparseln(), GetFileNameFromPath(), rename() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12060 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLibPrivateInternalFiles/Include/MainData.h')
-rw-r--r--StdLibPrivateInternalFiles/Include/MainData.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/StdLibPrivateInternalFiles/Include/MainData.h b/StdLibPrivateInternalFiles/Include/MainData.h
index b4b071a080..fcb28e3255 100644
--- a/StdLibPrivateInternalFiles/Include/MainData.h
+++ b/StdLibPrivateInternalFiles/Include/MainData.h
@@ -18,6 +18,7 @@
#include <limits.h>
#include <signal.h>
#include <time.h>
+#include <setjmp.h>
#include <kfile.h>
#include <Device/Device.h>
@@ -74,7 +75,6 @@ struct __MainData {
char *NCmdLine; // Narrow character version of command line arguments.
void (*cleanup)(void); // Stdio Cleanup Function Pointer
- void (*FinalCleanup)(void); // Function to free this structure and cleanup before exit.
__xithandler_t *atexit_handler[ATEXIT_MAX]; // Array of handlers for atexit.
clock_t AppStartTime; // Set in Main.c and used for time.h
@@ -88,6 +88,9 @@ struct __MainData {
char ASgetenv[ASCII_STRING_MAX]; // Only modified by getenv
char ASasctime[ASCTIME_BUFLEN]; // Only modified by asctime
+ jmp_buf MainExit; ///< Save environment used for implementing _Exit()
+ int ExitValue; ///< Value being returned by _Exit()
+
BOOLEAN aborting; // Ensures cleanup function only called once when aborting.
};