[Top][All Lists]

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

Re: [Bug-gnulib] error depend on progname?

From: Bruno Haible
Subject: Re: [Bug-gnulib] error depend on progname?
Date: Thu, 19 Aug 2004 16:31:59 +0200
User-agent: KMail/1.5

Paul Eggert wrote:
> many programs supply their own program_name (a
> one-liner) but don't use or need all the other features of the
> progname module.

I agree. Forcing them to all use the 'progname' module is overkill.

> It might not hurt to split progname into two modules, one that merely
> defines program_name (still a one-liner) and one that does the other
> stuff.

This won't work: A program cannot define program_name itself _and_
use the 'progname' module: The 'progname' module will not work if
set_program_name is never called.

Rather, the 'progname' module is an alternative approach to
"char *program_name". One that works with shared libraries in particular.


reply via email to

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