Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1465:3126d0407457
Ansideclify.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 03 Aug 1998 03:03:11 +0000 |
parents | b15c026c2dbd |
children | 6edda82f9fd9 |
files | lib/linebuffer.c |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/linebuffer.c +++ b/lib/linebuffer.c @@ -31,8 +31,7 @@ /* Initialize linebuffer LINEBUFFER for use. */ void -initbuffer (linebuffer) - struct linebuffer *linebuffer; +initbuffer (struct linebuffer *linebuffer) { linebuffer->length = 0; linebuffer->size = 200; @@ -45,9 +44,7 @@ Otherwise, return LINEBUFFER. */ struct linebuffer * -readline (linebuffer, stream) - struct linebuffer *linebuffer; - FILE *stream; +readline (struct linebuffer *linebuffer, FILE *stream) { int c; char *buffer = linebuffer->buffer; @@ -88,8 +85,7 @@ /* Free linebuffer LINEBUFFER and its data, all allocated with malloc. */ void -freebuffer (linebuffer) - struct linebuffer *linebuffer; +freebuffer (struct linebuffer *linebuffer) { free (linebuffer->buffer); free (linebuffer);