joerg
e0ac190e1e
Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
...
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
joerg
92ad0d098d
Add libc/locale to the search path.
2013-04-19 20:18:33 +00:00
joerg
0feb0f126e
Pass locale down to gethex as well.
2013-04-19 10:41:53 +00:00
joerg
c99aac45e5
Add strtof_l, strtod_l and strtold_l.
2013-04-18 21:54:10 +00:00
christos
3d365e7447
fix old style definitions; XXX: gcc should have picked them up but it did not.
2012-06-24 15:26:02 +00:00
alnsn
3580de4ac5
Use original indentation style in more places.
2012-05-16 17:48:59 +00:00
alnsn
81d9822777
Don't use normal indentation style, use original author's indentation style.
2012-05-15 18:13:21 +00:00
alnsn
d829b8529b
Add missing {} around two "if (b == NULL)" checks which were added in r1.5.
2012-05-15 18:10:02 +00:00
christos
c5142b6c92
add constcond, make shifts unsigned
2012-03-22 15:34:14 +00:00
he
6f8da331f6
A few modifications to make this build for vax:
...
* The decpt variable is only used if INFNAN_CHECK, which isn't defined
for vax.
* Use a cast to avoid warning about shift of a signed variable.
* Mark a condition as (potentially) a constant condition.
2012-03-22 13:15:48 +00:00
he
648512f83d
A few fixes to make this build for vax:
...
* The fivesbits[] variable is not used for vax
* The decpt variable is only used if INFNAN_CHECK, which isn't
defined for vax
2012-03-22 13:09:12 +00:00
christos
c5e820cae4
PR/45989: Martin Husemann: lint invocation does include -w only on i386
...
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
2012-03-13 21:13:30 +00:00
mlelstv
86bf846403
one more error path that didn't free a lock.
2011-11-21 09:46:19 +00:00
martin
3440754724
Release dtoa lock before returning, pointed out by enami.
2011-11-18 08:20:13 +00:00
christos
b2707ef3eb
unlock before returning on error, thanks enami.
2011-11-18 04:17:23 +00:00
christos
f0c33b337d
PR/45627: Martin Husemann: Plug memory leak
2011-11-18 02:38:17 +00:00
mrg
bf90b28081
avoid some uninitalised variable warnings.
2011-07-04 11:46:41 +00:00
matt
db6dfce31a
Fix some bugs [exceed array bounds]. Simplify.
2011-07-01 03:20:06 +00:00
mrg
493d341048
various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
...
these work properly wtf pointer aliasing, but there are no casts at
least...
the lib/libpuffs/puffs_priv.h is definately a real bug fix.
from chuq.
2011-06-20 09:11:16 +00:00
christos
85d18e0c63
remove string placed by error(1)
2011-06-04 14:18:10 +00:00
he
08a8bf5254
Fix this so that it builds for vax; where the compiler balks at the
...
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.
OK'ed by christos@
2011-03-27 11:21:54 +00:00
enami
df36fea7b7
Don't use #endif where #else is expected.
2011-03-21 23:37:42 +00:00
christos
2b13247b7f
pacify lint.
2011-03-21 22:33:46 +00:00
christos
a9f77bad7a
Add Emin for the vax. Need to check
2011-03-21 22:33:29 +00:00
christos
ab9f1e36c8
fix vax typo.
2011-03-21 19:46:41 +00:00
christos
374ecd4b4c
more de-linting.
2011-03-21 12:53:50 +00:00
christos
a23ced05b4
fix some lint on i386
2011-03-21 04:52:09 +00:00
christos
61e56760bc
Merge the new gdtoa: Note that the built-in tests fail the same way as with
...
the old gdtoa.
2011-03-20 23:15:35 +00:00
christos
3e812ebec1
don't need these and they break the build
2011-03-19 21:26:02 +00:00
christos
185969dd49
from www.netlib.org
2011-03-19 16:26:36 +00:00
christos
f98fcbb075
add may alias attribute to the double union because gcc-4.5.x produces
...
incorrect code on ARMv7a. From Nikunj Badjatya and Amol Pise.
2011-01-21 23:36:49 +00:00
wiz
15989318ee
Close file handle after using it. Found by cppcheck.
2010-01-17 23:06:31 +00:00
snj
550147bd6a
Remove 3rd and 4th clauses in christos' license. OK christos.
2009-10-21 01:07:44 +00:00
christos
df369aba80
Change Kmax so we allocate enough freelist entries to handle large field
...
numbers. Reported by Maksymilian Arciemowicz
2009-05-07 20:31:44 +00:00
lukem
8a09e86085
sign-compare fix
2009-01-30 23:35:35 +00:00
he
c2dbd6e374
Make this build again.
2008-03-28 00:56:54 +00:00
christos
ab6254493d
Don't coredump on out of memory conditions. This solution leaks, but gdtoa
...
is too complicated to fix. Try printf %99999999999.9999999999f 2
2008-03-21 23:13:48 +00:00
mrg
ecc90aa046
make all sun2 use -O0 and move most of the hacks out into just 3 files.
2008-02-09 02:37:21 +00:00
mrg
e6f4791d95
make sun2 build again with liberal use of -O0.
2008-02-05 02:41:15 +00:00
scw
5764a76889
Remove support for NetBSD/{,evb}sh5.
2007-04-08 09:35:21 +00:00
christos
82708d0ba0
deal with the vax in a slightly disgusting way.
2007-02-26 01:29:25 +00:00
christos
aa221faf9e
vax does not have <machine/ieee.h> or long double
...
It would be nice if the compiler provided something like __IEEE_MATH__
2007-02-23 17:45:59 +00:00
uwe
3bc8e00664
Fix previous, add forgotten pointer dereference in the call to dtoa().
2007-02-04 03:20:22 +00:00
christos
971e3bb846
use dtoa() instead of returning empty when we don't have extended precision
...
information.
2007-02-04 03:05:01 +00:00
christos
c8e7c68742
int/size_t changes
2007-02-03 18:09:20 +00:00
christos
818764fc7c
some int -> size_t
...
deal with sparc64 that has 112 bits of mantissa.
2007-02-03 16:44:02 +00:00
christos
113cee3dbe
add the new files to the build. Note I am not bumping libc now, because
...
these are not used yet.
2007-02-02 23:06:34 +00:00
christos
9ad6657285
add new prototypes.
2007-02-02 23:05:56 +00:00
christos
1634560e9d
make this compile.
2007-02-02 23:05:41 +00:00
christos
482b8dd60c
add long double and hex double support from freebsd.
2007-02-02 23:03:35 +00:00