[Gnucash-changes] check_data_type,
backend configuration and gettext
Derek Atkins
warlord at MIT.EDU
Wed Sep 7 09:28:12 EDT 2005
This approach works for me.
-derek
David Hampton <hampton-gnucash at rainbolthampton.net> writes:
> On Tue, 2005-09-06 at 09:34 -0400, Derek Atkins wrote:
>> I see no reason not to use the code in core-utils in the backends.
>> That's what core-utils is there for.
>
> Why isn't this code in lib/libc? That's where code should be that
> provides functionality that may be missing from the underlying system.
>
> As I see it, the following should occur:
>
> 1) The test from src/core-utils/core-utils.h requiring either setenv()
> or putenv() should be moved into configure. Developers should never get
> past configure if their platform doesn't provide one of these two
> functions.
>
> 2) The rest of the file src/core-utils/core-utils.h can be deleted.
>
> 3) The file src/core-utils/core-utils.c should be moved to
> lib/libc/setenv.c. It should provide the setenv and unsetenv functions
> on platforms where HAVE_SETENV is false. (The current functions can
> just be renamed.)
>
> 4) Gnucash should call setenv/unsetenv.
>
> David
>
>
>
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list