Mercurial > hg > octave-kai > gnulib-hg
annotate lib/ref-add.sin @ 17409:26a04e61f560
stdio: use __REDIRECT for fwrite, fwrite_unlocked
* lib/stdio.in.h (fwrite):
When working around bug 11959, use __REDIRECT rather than '#define
fwrite(...) ... fwrite (...) ...'. This is a more-targeted way to
fix the -Wunused-value issue with clang, and it works with GCC too.
Problem with targeting reported by Eric Blake in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
(fwrite_unlocked): Treat like fwrite. I ran into this issue while
debugging the fwrite issue.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 15 May 2013 15:52:42 -0700 |
parents | e542fd46ad6f |
children |
rev | line source |
---|---|
2392 | 1 # Add this package to a list of references stored in a text file. |
2 # | |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16366
diff
changeset
|
3 # Copyright (C) 2000, 2009-2013 Free Software Foundation, Inc. |
2392 | 4 # |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
5 # This program is free software; you can redistribute it and/or modify |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
6 # it under the terms of the GNU General Public License as published by |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
7 # the Free Software Foundation; either version 2, or (at your option) |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
8 # any later version. |
2392 | 9 # |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
10 # This program is distributed in the hope that it will be useful, |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
13 # GNU General Public License for more details. |
4533
dde0ece94ba0
Normalize leading white space and remove trailing white space.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4440
diff
changeset
|
14 # |
4554
5a1e7c84e9cd
Use three spaces, rather than tab, after '#'
Paul Eggert <eggert@cs.ucla.edu>
parents:
4533
diff
changeset
|
15 # You should have received a copy of the GNU General Public License along |
16366
bb182ee4a09d
maint: replace FSF snail-mail addresses with URLs
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
16 # with this program; if not, see <http://www.gnu.org/licenses/>. |
2392 | 17 # |
18 # Written by Bruno Haible <haible@clisp.cons.org>. | |
19 # | |
20 /^# Packages using this file: / { | |
21 s/# Packages using this file:// | |
22 ta | |
23 :a | |
24 s/ @PACKAGE@ / @PACKAGE@ / | |
25 tb | |
26 s/ $/ @PACKAGE@ / | |
27 :b | |
28 s/^/# Packages using this file:/ | |
29 } |