Move getline and getdelim into stdio.h, per POSIX 200x.
authorEric Blake <ebb9@byu.net>
Wed, 22 Aug 2007 12:54:21 +0000 (12:54 +0000)
committerEric Blake <ebb9@byu.net>
Wed, 22 Aug 2007 12:54:21 +0000 (12:54 +0000)
commitd68417c03e69fde605af699ba9a9671c663d8baf
tree5ab8a71b84ce6ae1e24722666f0c106523060201
parent7042775894700f8be0e6bc2a5ff3c49fc77296bc
Move getline and getdelim into stdio.h, per POSIX 200x.
* modules/getline (Files): Remove getline.h.
(Depends-on): Add stdio.
(configure.ac): Add module indicator.
* modules/getdelim (Files): Remove getdelim.h.
(Depends-on): Add stdio.
(configure.ac): Add module indicator.
* modules/stdio (Makefile.am): Work with new indicators.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* lib/getdelim.h: Delete.
* lib/getline.h: Delete.
* lib/stdio_.h (getdelim, getline): Declare.
* modules/getdelim-tests: New module.
* modules/getline-tests: Likewise.
* tests/test-getdelim.c: New file.
* tests/test-getline.c: Likewise.
* NEWS: Document the change.
* lib/getline.c: Update choice of header.
* lib/csharpcomp.c: Likewise.
* lib/getpass.c: Likewise.
* lib/javacomp.c: Likewise.
* lib/javaversion.c: Likewise.
* lib/yesno.c: Likewise.
* lib/getdelim.c: Likewise.
(getdelim): Set errno on failure, and avoid memory leak.
20 files changed:
ChangeLog
NEWS
lib/csharpcomp.c
lib/getdelim.c
lib/getline.c
lib/getpass.c
lib/javacomp.c
lib/javaversion.c
lib/stdio_.h
lib/yesno.c
m4/getdelim.m4
m4/getline.m4
m4/stdio_h.m4
modules/getdelim
modules/getdelim-tests [new file with mode: 0644]
modules/getline
modules/getline-tests [new file with mode: 0644]
modules/stdio
tests/test-getdelim.c [new file with mode: 0644]
tests/test-getline.c [new file with mode: 0644]