bug-gnulib
[Top][All Lists]
Advanced

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

[bug-gnulib] Re: getline


From: Simon Josefsson
Subject: [bug-gnulib] Re: getline
Date: Wed, 05 Jan 2005 04:07:58 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

An update: I have added modules "lgetline" and "lgetdelim" to
lessergnulib, which are based on the LGPL glibc code, but uses C89
calls instead of the libc-internal file pointers.  As far as I have
been able to see so far, no other approach will lead to clean code.  I
understand that scarifying clean code in order to ease maintenance
might be motivated, but there are several ways to do that, and I'm not
sure which way is best, or which would be acceptable for the glibc
maintainers, so I'm postponing that work.

I had some problems, because AC_REPLACE_FUNC cannot be used when the
filename doesn't match the function name (there is a getline.c in
gnulib), so I had to use AM_CONDITIONAL in lgetline.m4.  This actually
seemed cleaner to me, anyway.  (For two reasons: with AC_REPLACE_FUNC
you can only have one LIBOBJS in Makefile.am's, without tweaking.
Secondly, with a conditional, the header file is handled the same as
the source file.)

Incidentally, lessergnulib and gnulib can co-exist happily, it is as
easy as calling 'lndir', see:
http://josefsson.org/cgi-bin/viewcvs.cgi/lessergnulib/README.lesser?view=auto

With this set up, I can start working on other modules, like the
crypto files...

Thanks.




reply via email to

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