bugGNUstep - Bugs: bug #16437, Native Objective-C exception...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #16437: Native Objective-C exception handling patch for -base and -make

Submitted by:  Sašo Kiselkov <diablos>
Submitted on:  Tue 25 Apr 2006 12:59:15 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 26 Apr 2006 02:16:14 PM UTC, comment #1:

Patch applied ...thanks.

Richard Frith-Macdonald <CaS>
Project Member
Tue 25 Apr 2006 12:59:15 PM UTC, original submission:

I've been using native Objective-C exception handling for a while now (since GCC 4.0 is out, almost a year) and I've gotten into the situation where it would be nice for GNUstep itself to use it, so I've made a few changes to -base and -make to do it.

How it works:

- made -make define the a _NATIVE_OBJC_EXCEPTIONS macro when compiling with native Objective-C exceptions support.

- changed NSException's header to define NS_DURING and exception-related macros to use native exceptions in case _NATIVE_OBJC_EXCEPTIONS is defined.

- changed -[NSException raise] to "@throw self:" in case _NATIVE_OBJC_EXCEPTIONS.

Patches with the details are attached.

Sašo Kiselkov <diablos>

 

Attached Files
file #9833:  gnustep-native-exceptions.tar.bz2 added by diablos (1KiB - application/octet-stream - Patch to add native exceptions to -base and -make.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 26 Apr 2006 02:16:14 PM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 25 Apr 2006 12:59:15 PM UTCdiablosAttached File-=>Added gnustep-native-exceptions.tar.bz2, #9833

Back to the top


Powered by Savane 3.1-cleanup1