[Top][All Lists]

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

[Bug-gnulib] Re: drop unlocked-io dependency in getline module?

From: Simon Josefsson
Subject: [Bug-gnulib] Re: drop unlocked-io dependency in getline module?
Date: Mon, 24 Nov 2003 08:29:52 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>> Ideally, this should be in a separate module 'program_name' because it
>> is useful outside of error.
> Does the existing progname module do what you want?

It appears so, but I haven't tested it.  The 'error' module doesn't
depend on it.  I'll try it, thanks.

>> IMHO only modules that fix pre-C89 function should override C89
>> functions.
> This is too short-sighted.  The C standard changes, and also some GNU
> programs assume behavior that is supplied by GNU implementations of
> the C99 standard.  It's not unreasonable for an application to
> substitute its own implementation of malloc, so long as this
> implementation also conforms to the C standard.  Any code that is
> intended to be portable should work with such an malloc.

Right.  I'm just concerned with the malloc module approach, GNU
applications are written using C standard functions but wouldn't be
portable unless the gnulib malloc module is present.  I think it is
better to rename functions that doesn't provide the same interface
that can be expected from standard functions.

reply via email to

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