Differences From Artifact [1882c89ea1]:
- File src/OFString.m — part of check-in [0b07c8fcfa] at 2018-04-22 17:48:40 on branch trunk — Make ObjFW compile for AmigaOS 3 (user: js, size: 66981) [annotate] [blame] [check-ins using]
To Artifact [2d7f2091d4]:
- File
src/OFString.m
— part of check-in
[49cb6ada5f]
at
2018-04-22 23:42:20
on branch trunk
— Make all tests pass on AmigaOS 3
Note: There is still some weirdness in the compiler. Instead of
m68k-amigaos-gcc, you need to use m68k-amigaos-g++ as OBJC, as otherwise
exceptions don't work.Before running the tests, you need to run "stack 8192". (user: js, size: 67041) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
2502 2503 2504 2505 2506 2507 2508 | return value; } - (float)floatValue { void *pool = objc_autoreleasePoolPush(); | | | 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 | return value; } - (float)floatValue { void *pool = objc_autoreleasePoolPush(); #if defined(OF_AMIGAOS3) || defined(OF_MORPHOS) OFString *stripped = [self stringByDeletingEnclosingWhitespaces]; if ([stripped caseInsensitiveCompare: @"INF"] == OF_ORDERED_SAME || [stripped caseInsensitiveCompare: @"INFINITY"] == OF_ORDERED_SAME) return INFINITY; if ([stripped caseInsensitiveCompare: @"-INF"] == OF_ORDERED_SAME || [stripped caseInsensitiveCompare: @"-INFINITY"] == OF_ORDERED_SAME) |
︙ | ︙ | |||
2552 2553 2554 2555 2556 2557 2558 | return value; } - (double)doubleValue { void *pool = objc_autoreleasePoolPush(); | | | 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 | return value; } - (double)doubleValue { void *pool = objc_autoreleasePoolPush(); #if defined(OF_AMIGAOS3) || defined(OF_MORPHOS) OFString *stripped = [self stringByDeletingEnclosingWhitespaces]; if ([stripped caseInsensitiveCompare: @"INF"] == OF_ORDERED_SAME || [stripped caseInsensitiveCompare: @"INFINITY"] == OF_ORDERED_SAME) return INFINITY; if ([stripped caseInsensitiveCompare: @"-INF"] == OF_ORDERED_SAME || [stripped caseInsensitiveCompare: @"-INFINITY"] == OF_ORDERED_SAME) |
︙ | ︙ |