Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Re: [Patch] exit() value change
Home

[Freeciv-Dev] Re: [Patch] exit() value change

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch] exit() value change
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Mon, 4 Feb 2002 06:31:07 -0800 (PST)

--- 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


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