[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] getline & getline_safe

From: Bruno Haible
Subject: Re: [Bug-gnulib] getline & getline_safe
Date: Thu, 17 Jul 2003 18:32:30 +0200
User-agent: KMail/1.5

Derek Robert Price wrote:
> > So a new getndelim() function would be needed for wrapping or just the
> > getnline() function.

I've just added a module 'getnline' to gnulib that contains a getnline()
and getndelim() function. This is a separate module from 'getline' but
it shares the essential source code with the 'getline' module. Hope that's
all that you needed.

> Incidentally, this implies having a getnline.c file which is always
> compiled, and possibly which getline.c is dependent on.  Is this
> reasonable?

I don't think so. gettext for example needs getline(), but there's no
point of compiling getnline() into libgettextlib.so.

The way I've done it now, programs which need both getline() and getnline()
will end up with two copies of the same code, on non-glibc systems. OTOH,
if you do it differently, you end up with getnline() code on glibc systems,
for programs which only need getline(). The latter seems worse to me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]