[Freeciv-Dev] Re: [Patch] exit() value change
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, Feb 04, 2002 at 04:26:21AM -0800, Raahul Kumar wrote:
> >
> > --- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > The patch replace exit(1) with exit(EXIT_FAILURE) and exit(0) with
> > > exit(EXIT_SUCCESS). Although on most unix platforms this is the same
> > > there are systems (Ultrix 2.2 for example) which have the values
> > > exchanged and it is even more readable.
> >
> > Just curious, under what hardware does Ultrix 2.2 run? I can't spot it
> > on the freeciv reqs page.
>
> I'm not old enough to know this by first hand. Google found a
> uVax. Even if freeciv doesn't run on such a hardware it is cleaner to
> use the macros IMHO.
>
The macros are fine. I assume you are going to change the other return
statements as well for a little consistency.
I just asked to increase my Unix knowledge. Here I thought every modern nix
used 0 as success and and positive nos as failure.
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com
|
|