Overview
Comment: | OFString: Remove hack for amiga-gcc
amiga-gcc now has strto(u)ll. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
5f494eaf81ac9a685ec8fcd8f737c216 |
User & Date: | js on 2020-08-25 23:52:18 |
Other Links: | manifest | tags |
Context
2020-08-25
| ||
23:53 | OFString: Also check errno == ERANGE on HUGE_VAL check-in: 200fe98d2b user: js tags: trunk | |
23:52 | OFString: Remove hack for amiga-gcc check-in: 5f494eaf81 user: js tags: trunk | |
00:11 | OFNumber: Remove (u)int{8,16,32,64} methods check-in: 25c985fec1 user: js tags: trunk | |
Changes
Modified src/OFString.m from [25f4cd81db] to [f69742e62e].
︙ | ︙ | |||
71 72 73 74 75 76 77 | #ifdef __MINGW32__ # define strtod __strtod #endif #ifdef OF_AMIGAOS_M68K /* libnix has strtod, but not strtof */ # define strtof strtod | < < < | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | #ifdef __MINGW32__ # define strtod __strtod #endif #ifdef OF_AMIGAOS_M68K /* libnix has strtod, but not strtof */ # define strtof strtod #endif static struct { Class isa; } placeholder; #if defined(HAVE_STRTOF_L) || defined(HAVE_STRTOD_L) |
︙ | ︙ |
Modified tests/OFStringTests.m from [1264b0c686] to [1ca0b0e0e8].
︙ | ︙ | |||
1110 1111 1112 1113 1114 1115 1116 | #else /* Android, Solaris, DJGPP and AmigaOS3 do not accept 0x for strtod() */ # if (!defined(OF_SOLARIS) || !defined(OF_X86)) && !defined(OF_AMIGAOS_M68K) # define INPUT @"\t-0.123456789 " # define EXPECTED -0.123456789 # else /* | | | 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 | #else /* Android, Solaris, DJGPP and AmigaOS3 do not accept 0x for strtod() */ # if (!defined(OF_SOLARIS) || !defined(OF_X86)) && !defined(OF_AMIGAOS_M68K) # define INPUT @"\t-0.123456789 " # define EXPECTED -0.123456789 # else /* * Solaris' strtod() has weird rounding on x86, but not on x86_64. * AmigaOS 3 with libnix has weird rounding as well. */ # define INPUT @"\t-0.125 " # define EXPECTED -0.125 # endif #endif TEST(@"-[doubleValue]", |
︙ | ︙ |