nmh-workers
[Top][All Lists]
Advanced

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

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


From: Joel Reicher
Subject: Re: [Nmh-workers] Changing the return type of done()
Date: Thu, 19 Apr 2007 20:20:29 +1000

> 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




reply via email to

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