Ignore:
Timestamp:
03/05/08 03:01:09 (14 years ago)
Author:
Nicholas Riley
Message:

Use @try/@catch/@finally rather than macro-based exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEParser.m

    r388 r436  
    7373    NSCAssert(selEnd == [string length], @"Internal error: URL string is wrong length");
    7474   
    75     NS_DURING
     75    @try {
    7676        if ([[NSCharacterSet characterSetWithCharactersInString: @";,."] characterIsMember:
    7777            [string characterAtIndex: selEnd - 1]]) {
     
    106106        range->length = selEnd - selStart;
    107107        range->location += selStart;
    108     NS_HANDLER
     108    } @finally {
    109109        free(urlData);
    110         [localException raise];
    111     NS_ENDHANDLER
    112    
    113     free(urlData);
     110    }
    114111}
    115112
Note: See TracChangeset for help on using the changeset viewer.