# HG changeset patch # User Paul Eggert # Date 1357334508 28800 # Node ID 8b492e35b98729246b4e91d6fb3c27b068031b61 # Parent 2c92786552244c5c0b87a5c1fd48cf8f7cda0956 fprintftime: bring back and reword fwrite comment * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment. diff -r 2c9278655224 -r 8b492e35b987 ChangeLog --- a/ChangeLog Fri Jan 04 06:47:11 2013 -0800 +++ b/ChangeLog Fri Jan 04 13:21:48 2013 -0800 @@ -1,5 +1,8 @@ 2013-01-04 Paul Eggert + fprintftime: bring back and reword fwrite comment + * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment. + stdio: remove now-unnecessary stdio.c Since stdio.in.h no longer uses inline functions, we no longer need to compile the extern versions. diff -r 2c9278655224 -r 8b492e35b987 lib/strftime.c --- a/lib/strftime.c Fri Jan 04 06:47:11 2013 -0800 +++ b/lib/strftime.c Fri Jan 04 13:21:48 2013 -0800 @@ -208,7 +208,14 @@ else if (to_uppcase) \ fwrite_uppcase (p, (s), _n); \ else \ - fwrite (s, _n, 1, p); \ + { \ + /* Ignore the value of fwrite. The caller can determine whether \ + an error occured by inspecting ferror (P). All known fwrite \ + implementations set the stream's error indicator when they \ + fail due to ENOMEM etc., even though C11 and POSIX.1-2008 do \ + not require this. */ \ + fwrite (s, _n, 1, p); \ + } \ } \ while (0) \ )