[D-runtime] core.demangle: What to do if real.sizeof == double.sizeof
Sean Kelly
sean at invisibleduck.org
Tue Mar 20 11:17:23 PDT 2012
On Mar 20, 2012, at 5:48 AM, Johannes Pfau wrote:
> For ARM, real and double are the same types (long double == double in c). Because of that bionic (android's C library) doesn't provide a strtold function.
>
> strtold is used in core.demangle in the parseReal function. Is it safe to just replace strtold with strtod for Android?
I'm not sure where the best place is to fix this. Maybe in core.stdc itself, either aliasing strtod to strtold? Or an extern (D) function named strtold that calls strtod? Alternately, we could have a static if in the demangle code to switch.
More information about the D-runtime
mailing list