[Top][All Lists]

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

[bug-gnulib] Re: getline

From: Paul Eggert
Subject: [bug-gnulib] Re: getline
Date: Sun, 26 Dec 2004 21:56:57 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> Are you saying getline/getdelim when built in glibc should not use
> getndelim2, so they don't take any performance hit?

Sorry, I hadn't thought it through.  But I was hoping it could be done
without any performance hit, while still using getndelim2.  Perhaps
with inline functions.  (Sorry, I'm pretty dense right now too....)

> Keep in mind that the gnulib getline/getdelim aren't the same as in
> libc anyway.  I don't think the glibc version work in gnulib without
> several changes.

Yes, it'd have to be merged together.

> Here's an idea.  Maybe the glibc getline/getdelim code could be
> modified so they optionally (when 'HAVE_GETNDELIM2') uses getndelim2,
> and then the gnulib modules for getline/getdelim is synced with the
> glibc implementation?

That would also work, but it would mean more duplicate code, no?
getndelim2 essentially copies getdelim.

reply via email to

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