Differences From Artifact [41447adc66]:
- File src/OFString.m — part of check-in [fe5b5de3b6] at 2017-06-03 16:17:45 on branch trunk — Workaround for libnix strtod not parsing INFINITY (user: js, size: 65532) [annotate] [blame] [check-ins using]
To Artifact [51b9feaad9]:
- File
src/OFString.m
— part of check-in
[c9621825fc]
at
2017-06-04 18:48:03
on branch trunk
— Treat MorphOS + ixemul as a separate platform
This reduces the ifdef hell and makes much more sense, as with ixemul,
no native calls are allowed. (user: js, size: 65474) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
2517 2518 2519 2520 2521 2522 2523 | return value; } - (float)floatValue { void *pool = objc_autoreleasePoolPush(); | | | 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 | return value; } - (float)floatValue { void *pool = objc_autoreleasePoolPush(); #ifdef 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) |
︙ | ︙ | |||
2570 2571 2572 2573 2574 2575 2576 | return value; } - (double)doubleValue { void *pool = objc_autoreleasePoolPush(); | | | 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 | return value; } - (double)doubleValue { void *pool = objc_autoreleasePoolPush(); #ifdef 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) |
︙ | ︙ |