I wrote on 2011-04-14: > * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF, > _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros. > (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf, > vscanf): New declarations.
Oops, this leads to compilation errors in C++ mode on platforms that don't have vfscanf() or vscanf(). Ultimately we should have a replacement for these functions, but it's low priority for me. So let me move it to separate modules only. 2011-04-30 Bruno Haible <[email protected]> New modules 'vfscanf', 'vscanf'. * modules/vfscanf: New file. * modules/vscanf: New file. * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF here. * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'. * doc/posix-functions/vscanf.texi: Mention module 'vscanf'. =============================== modules/vfscanf =============================== Description: vfscanf() function: parse formatted text from a stream Files: Depends-on: stdio configure.ac: gl_STDIO_MODULE_INDICATOR([vfscanf]) Makefile.am: Include: <stdio.h> License: LGPL Maintainer: Bruno Haible =============================== modules/vscanf =============================== Description: vscanf() function: parse formatted text from standard input Files: Depends-on: stdio configure.ac: gl_STDIO_MODULE_INDICATOR([vscanf]) Makefile.am: Include: <stdio.h> License: LGPL Maintainer: Bruno Haible ============================================================================== --- doc/posix-functions/vfscanf.texi.orig Sat Apr 30 14:46:01 2011 +++ doc/posix-functions/vfscanf.texi Sat Apr 30 14:45:00 2011 @@ -4,9 +4,9 @@ POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/vfscanf.html} -Gnulib module: stdio, nonblocking +Gnulib module: vfscanf, nonblocking -Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}: +Portability problems fixed by Gnulib module @code{vfscanf}, together with module @code{nonblocking}: @itemize @item When reading from a non-blocking pipe whose buffer is empty, this function --- doc/posix-functions/vscanf.texi.orig Sat Apr 30 14:46:01 2011 +++ doc/posix-functions/vscanf.texi Sat Apr 30 14:44:59 2011 @@ -4,9 +4,9 @@ POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/vscanf.html} -Gnulib module: stdio, nonblocking +Gnulib module: vscanf, nonblocking -Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}: +Portability problems fixed by Gnulib module @code{vscanf}, together with module @code{nonblocking}: @itemize @item When reading from a non-blocking pipe whose buffer is empty, this function --- m4/stdio_h.m4.orig Sat Apr 30 14:46:01 2011 +++ m4/stdio_h.m4 Sat Apr 30 14:43:55 2011 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 36 +# stdio_h.m4 serial 37 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -14,8 +14,6 @@ dnl <stdio.h> likely needs them. GNULIB_FSCANF=1 GNULIB_SCANF=1 - GNULIB_VFSCANF=1 - GNULIB_VSCANF=1 GNULIB_FGETC=1 GNULIB_GETC=1 GNULIB_GETCHAR=1 -- In memoriam Casey Jones <http://en.wikipedia.org/wiki/Casey_Jones>
