NetBSD/lib/libc/gdtoa/Makefile.inc
christos c975cdc86c - s/notyet/WIDE_DOUBLE/
- Add a little more glue for WIDE_DOUBLE; not done yet.
- s/def FLOATING_POINT/ndef NO_FLOATING_POINT/ to reduce diffs with FreeBSD.
- fix memory leak where each double formatted leaked 24 by calling __freedtoa()
  appropriately. the new gdtoa keeps a list of memory chunks allocated by
  malloc(), and it must maintained properly by calling __freedtoa() on the
  results of __dtoa() Hi Klaus!
- in vfwprintf() make cvt return char * and convert it using __mbsconv(),
  instead of having it return wchar_t *.

This should fix the memory leaks people have been reporting (eg. in top etc.)
2006-02-16 23:26:19 +00:00

38 lines
700 B
Makefile

# $NetBSD: Makefile.inc,v 1.3 2006/02/16 23:26:19 christos Exp $
# gdtoa sources
.PATH: ${.CURDIR}/gdtoa
CPPFLAGS+=-I${ARCHDIR}/gdtoa
CPPFLAGS+=-DNO_FENV_H
# public interfaces
SRCS+= strtod.c
# private interfaces interfacing to libc
SRCS+= dtoa.c
# local locking implementation
SRCS+= gdtoa_locks.c
# private interfaces
SRCS+= dmisc.c \
gethex.c gmisc.c \
hd_init.c hexnan.c \
misc.c \
smisc.c strtodg.c sum.c \
ulp.c
# wrappers
#SRCS+= _hdtoa.c _ldtoa.c
# XXX no hexadecimal floating-point string conversion for VAX FP yet
.if ${MACHINE_ARCH} != "vax"
SRCS+= strtord.c
.endif
# XXX Workaround for gcc-3.3.3 optimsation bug on sh5
.if ${MACHINE_CPU} == "sh5"
COPTS.strtod.c= -O1
.endif