riscos & atexit [was: bogofilter NEWS,1.488,1.489]
David Relson
relson at osagesoftware.com
Tue Sep 13 01:32:01 CEST 2005
On Tue, 13 Sep 2005 00:16:54 +0200
Matthias Andree wrote:
> Stefan Bellon <sbellon at sbellon.de> writes:
>
> > David Relson wrote:
> >> On Sun, 11 Sep 2005 18:13:14 +0200
> >> Matthias Andree wrote:
> >
> >> > If RISC OS is borked, please have such hacks as RISC OS patches,
> >> > not upstream.
> >
> > Erm, RISC OS is not borked, it just behaves differently.
>
> Bogofilter was written with POSIX semantics in mind.
>
> > What about including it with #ifdef __riscos__ if it helps solve the
> > trouble on RISC OS?
>
> If you can constrain these to separate compatibility files and don't
> clutter up the main code with these, fine. It's usually more concise to
> write a compatibility function so that few (if more than one at all)
> places need to be changed.
>
> --
> Matthias Andree
Matthias,
A fairly simple approach is to "#define ATEXIT" as a nop for operating
systems other than RISC OS. Since RISC OS has its own Makefile,
src/Makefile.am wouldn't be affected.
What do you think?
David
P.S. The mods are quite minor.
More information about the bogofilter-dev
mailing list