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
This commit is contained in:
@ -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.
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user