🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #670

linebuffer.[hc] specification

#670
From: Francois Pinard
Date: Wed, 19 Aug 1992 14:52
17 lines
1440 bytes
I most probably took GNU linebuffer.[hc] from the /lib directory of
some GNU *util distribution, but I do not remember which.  Hopefully,
there is a master copy somewhere for the GNU staff.

Both initbuffer() and freebuffer() receive, for their argument, an
already allocated `struct linebuffer'.  freebuffer() frees it.  So,
despite perfectly legal to pass a statically allocated variable to
initbuffer(), it is not legal to do so for freebuffer().  I feel it
would be more consistent if initbuffer() and freebuffer() could always
be used in pair.  One approach could be that freebuffer() does not
free its argument.  Another could be that initbuffer() has no argument
and returns a freshly allocated `struct linebuffer' structure.

-- 
Franc,ois Pinard        ``Vivement GNU!''        pinard@iro.umontreal.ca
(514) 588-4656                                    ...!uunet!iros1!pinard
Consider joining the League for Programming Freedom.  Email for details!
Technical Details
Message-ID: <9208191452.AA04080@icule.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard
From: pinard@icule.UUCP (Francois Pinard)
Subject: linebuffer.[hc] specification
Message-ID: <9208191452.AA04080@icule.UUCP>
Sender: gnulists@ai.mit.edu
Reply-To: pinard@iro.umontreal.ca
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 19 Aug 1992 14:52:48 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 18