From 971f57ee59b72a7dcfe6849b92761fff74508e1f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 13 Jan 2003 07:09:45 +0000 Subject: [PATCH] (readlinebuffer): Renamed from readline. --- lib/linebuffer.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/linebuffer.h b/lib/linebuffer.h index dd76a4a237..aa6db0e3fd 100644 --- a/lib/linebuffer.h +++ b/lib/linebuffer.h @@ -1,5 +1,7 @@ /* linebuffer.h -- declarations for reading arbitrarily long lines - Copyright (C) 1986, 1991, 1998, 1999, 2002 Free Software Foundation, Inc. + + Copyright (C) 1986, 1991, 1998, 1999, 2002, 2003 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,9 +37,6 @@ struct linebuffer # endif # endif -/* Avoid collision with readline() from libreadline. */ -#define readline readlinebuffer - /* Initialize linebuffer LINEBUFFER for use. */ void initbuffer PARAMS ((struct linebuffer *linebuffer)); @@ -45,8 +44,8 @@ void initbuffer PARAMS ((struct linebuffer *linebuffer)); Keep the newline; append a newline if it's the last line of a file that ends in a non-newline character. Do not null terminate. Return LINEBUFFER, except at end of file return 0. */ -struct linebuffer *readline PARAMS ((struct linebuffer *linebuffer, - FILE *stream)); +struct linebuffer *readlinebuffer PARAMS ((struct linebuffer *linebuffer, + FILE *stream)); /* Free linebuffer LINEBUFFER and its data, all allocated with malloc. */ void freebuffer PARAMS ((struct linebuffer *)); -- 2.30.2