]>
Commit | Line | Data |
---|---|---|
3d9156a7 | 1 | --- gdtoa_strtopx.c.orig 2005-01-20 20:12:37.000000000 -0800 |
f74c7596 | 2 | +++ gdtoa_strtopx.c 2005-02-17 01:54:02.000000000 -0800 |
3d9156a7 A |
3 | @@ -29,6 +29,8 @@ |
4 | /* Please send bug reports to David M. Gay (dmg at acm dot org, | |
5 | * with " at " changed at "@" and " dot " changed to "."). */ | |
6 | ||
7 | +#include "xlocale_private.h" | |
8 | + | |
9 | #include "gdtoaimp.h" | |
10 | ||
11 | #undef _0 | |
12 | @@ -53,9 +55,9 @@ | |
13 | ||
14 | int | |
15 | #ifdef KR_headers | |
16 | -strtopx(s, sp, V) CONST char *s; char **sp; void *V; | |
17 | +strtopx(s, sp, V, loc) CONST char *s; char **sp; void *V; locale_t loc; | |
18 | #else | |
19 | -strtopx(CONST char *s, char **sp, void *V) | |
20 | +strtopx(CONST char *s, char **sp, void *V, locale_t loc) | |
21 | #endif | |
22 | { | |
23 | static FPI fpi = { 64, 1-16383-64+1, 32766 - 16383 - 64 + 1, 1, SI }; | |
24 | @@ -64,7 +66,7 @@ | |
25 | int k; | |
26 | UShort *L = (UShort*)V; | |
27 | ||
28 | - k = strtodg(s, sp, &fpi, &exp, bits); | |
29 | + k = strtodg(s, sp, &fpi, &exp, bits, loc); | |
30 | switch(k & STRTOG_Retmask) { | |
31 | case STRTOG_NoNumber: | |
32 | case STRTOG_Zero: |