Subject: CVS commit: src/lib/libc
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 02/16/2006 23:26:19
Module Name:	src
Committed By:	christos
Date:		Thu Feb 16 23:26:19 UTC 2006

Modified Files:
	src/lib/libc/gdtoa: Makefile.inc
	src/lib/libc/include: extern.h
	src/lib/libc/stdio: Makefile.inc vfprintf.c vfscanf.c vfwprintf.c

Log Message:
- 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.)


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/lib/libc/gdtoa/Makefile.inc
cvs rdiff -r1.10 -r1.11 src/lib/libc/include/extern.h
cvs rdiff -r1.32 -r1.33 src/lib/libc/stdio/Makefile.inc
cvs rdiff -r1.49 -r1.50 src/lib/libc/stdio/vfprintf.c
cvs rdiff -r1.36 -r1.37 src/lib/libc/stdio/vfscanf.c
cvs rdiff -r1.6 -r1.7 src/lib/libc/stdio/vfwprintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.