mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Updates to reduce global namespace pollution. Plenty more remaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23795 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4874117588
commit
31342aef09
85 changed files with 1090 additions and 1277 deletions
|
@ -353,8 +353,9 @@ static void find_address (bfd *abfd, asection *section,
|
|||
fi = [GSFunctionInfo alloc];
|
||||
fi = [fi initWithModule: info->module
|
||||
address: info->theAddress
|
||||
file: [NSString stringWithCString: fileName]
|
||||
function: [NSString stringWithCString: functionName]
|
||||
file: [NSString stringWithCString: fileName
|
||||
encoding: [NSString defaultCStringEncoding]]
|
||||
function: [NSString stringWithUTF8String: functionName]
|
||||
line: line];
|
||||
[fi autorelease];
|
||||
info->theInfo = fi;
|
||||
|
@ -584,7 +585,8 @@ static void _terminate()
|
|||
#else
|
||||
shouldAbort = NO; // exit() by default.
|
||||
#endif
|
||||
shouldAbort = GSEnvironmentFlag("CRASH_ON_ABORT", shouldAbort);
|
||||
shouldAbort = [_GSPrivate environmentFlag: "CRASH_ON_ABORT"
|
||||
defaultValue: shouldAbort];
|
||||
if (shouldAbort == YES)
|
||||
{
|
||||
abort();
|
||||
|
@ -598,9 +600,8 @@ static void _terminate()
|
|||
static void
|
||||
_NSFoundationUncaughtExceptionHandler (NSException *exception)
|
||||
{
|
||||
extern const char* GSArgZero(void);
|
||||
|
||||
fprintf(stderr, "%s: Uncaught exception %s, reason: %s\n", GSArgZero(),
|
||||
fprintf(stderr, "%s: Uncaught exception %s, reason: %s\n",
|
||||
[_GSPrivate argZero],
|
||||
[[exception name] lossyCString], [[exception reason] lossyCString]);
|
||||
fflush(stderr); /* NEEDED UNDER MINGW */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue