nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Changing the return type of done()

2007-04-19 03:22:30
Joel Reicher wrote:
What I'd really like to do is get rid of sbr/done.c and the done()
declaration in h/prototypes.h altogether, replacing uses of *that*
done() definition with an equivalent return where it appears in main(),
and a use of exit() everywhere else.

I think we shouldn't do that unless we're also going for atexit()
usage where we currently have specialised done() implementations.
(Surely there's going to be at least one file where the source code
calls done() and which done() it winds up calling depends on which
program it's compiled into...)

You're probably right, but I think I can still take this into account.

I can temporarily link everything with done.o, and the linker will
pick up the duplicate definition of done() in the cases where an
executable is actually using a specialised version.

Does that seem a safe way to proceed?

Cheers,

        - Joel


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>