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

Group
 
 

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

Submitter:  Sašo Kiselkov <diablos>
Submitted:  Tue 25 Apr 2006 12:59:15 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Patch applied ...thanks.

Richard Frith-Macdonald <CaS>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-26 CaS StatusNone Fixed
    Open/ClosedOpen Closed
2006-04-25 diablos Attached File- Added gnustep-native-exceptions.tar.bz2, #9833

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code