From dcfaecb6c28e2d91f6e48d59f0c8c6e8d91987d3 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 13 Feb 1997 21:13:48 +0000 Subject: Update to libc-970212 versions. --- libshouldbeinlibc/argp-fmtstream.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'libshouldbeinlibc/argp-fmtstream.c') diff --git a/libshouldbeinlibc/argp-fmtstream.c b/libshouldbeinlibc/argp-fmtstream.c index 3f6474a0..bdceceea 100644 --- a/libshouldbeinlibc/argp-fmtstream.c +++ b/libshouldbeinlibc/argp-fmtstream.c @@ -1,8 +1,7 @@ -/* Word-wrapping and line-truncating streams - +/* Word-wrapping and line-truncating streams. Copyright (C) 1997 Free Software Foundation, Inc. - - Written by Miles Bader + This file is part of the GNU C Library. + Written by Miles Bader . The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -15,17 +14,13 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, write to the Free Software Foundation, Inc., 675 Mass Ave, - Cambridge, MA 02139, USA. */ + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ /* This package emulates glibc `line_wrap_stream' semantics for systems that don't have that. */ -/* Get some gnu features: isblank, vsnprintf */ -#undef _GNU_SOURCE -#define _GNU_SOURCE - #include #include #include @@ -50,7 +45,7 @@ replacing the whitespace before them with a newline and WMARGIN spaces. Otherwise, chars beyond RMARGIN are simply dropped until a newline. Returns NULL if there was an error. */ -argp_fmtstream_t +argp_fmtstream_t __argp_make_fmtstream (FILE *stream, size_t lmargin, size_t rmargin, ssize_t wmargin) { @@ -85,7 +80,7 @@ weak_alias (__argp_make_fmtstream, argp_make_fmtstream) #endif /* Flush FS to its stream, and free it (but don't close the stream). */ -void +void __argp_fmtstream_free (argp_fmtstream_t fs) { __argp_fmtstream_update (fs); @@ -308,7 +303,7 @@ __argp_fmtstream_ensure (struct argp_fmtstream *fs, size_t amount) /* Flush FS's buffer. */ __argp_fmtstream_update (fs); - + wrote = fwrite (fs->buf, 1, fs->p - fs->buf, fs->stream); if (wrote == fs->p - fs->buf) { -- cgit v1.2.3