aboutsummaryrefslogtreecommitdiff
path: root/stdio/linewrap.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-17 18:46:54 +0000
committerMiles Bader <miles@gnu.org>1996-07-17 18:46:54 +0000
commit8a5776e6fe2133e8645fbe1ed7094264b7dbd06a (patch)
tree6f009fdb6f10ea0f08826aa0496a7fd18805685b /stdio/linewrap.c
parente964b97666106dd6dd925e7144856fb172be1e28 (diff)
downloadglibc-8a5776e6fe2133e8645fbe1ed7094264b7dbd06a.tar
glibc-8a5776e6fe2133e8645fbe1ed7094264b7dbd06a.tar.gz
glibc-8a5776e6fe2133e8645fbe1ed7094264b7dbd06a.tar.bz2
glibc-8a5776e6fe2133e8645fbe1ed7094264b7dbd06a.zip
Merge linewrap changes
Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu> * stdio/linewrap.c (lwupdate): Fix boundary condition where a word extends right up to rmargin. * stdio/linewrap.c (lwupdate): When we've done a word wrap and output the wrap margin, set point_col to wmargin. Use negative point_col to deal with a wmargin of 0. (line_wrap_point): Return 0 for a negative point_col. (line_wrap_stream): Make wmargin ssize_t. * stdio/linewrap.h (struct line_wrap_data): Make wmargin & point_col ssize_t. (line_wrap_stream): Make wmargin ssize_t. (line_wrap_point): Return 0 for a negative point_col. Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu> * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp to fiddle __put_limit in conjunction with __linebuf_active.
Diffstat (limited to 'stdio/linewrap.c')
-rw-r--r--stdio/linewrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio/linewrap.c b/stdio/linewrap.c
index 82b6a326a5..37780d21a3 100644
--- a/stdio/linewrap.c
+++ b/stdio/linewrap.c
@@ -327,7 +327,7 @@ __line_wrap_output (FILE *stream, int c)
simply dropped until a newline. Returns STREAM after modifying it, or
NULL if there was an error. */
FILE *
-line_wrap_stream (FILE *stream, size_t lmargin, size_t rmargin, size_t wmargin)
+line_wrap_stream (FILE *stream, size_t lmargin, size_t rmargin, ssize_t wmargin)
{
struct line_wrap_data *d = malloc (sizeof *d);