🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Francois Pinard Wed, 19 Aug 1992 14:52
linebuffer.[hc] specification
#670
Author: 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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads