[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sysexits.h: Define EX_OK
From: |
Paul Eggert |
Subject: |
Re: sysexits.h: Define EX_OK |
Date: |
Wed, 24 Aug 2005 22:20:08 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Ben Pfaff <address@hidden> writes:
> Is there an advantage to defining EX_OK to EXIT_SUCCESS over
> defining it to 0?
I can't think of any. Let's please just define it to 0; it's simpler
and less likely to cause trouble.
I also like Simon's suggestion of defining EXIT_SUCCESS and
EXIT_FAILURE in config.h, as that lessens the number of changes to the
C source code. (Though here I confiess I don't recall why this stuff
is is necessary, as C89 guarantees EXIT_SUCCESS and EXIT_FAILURE, and
gnulib normally assumes C89 or better.)