| From: | "Dominic J(dot) Eidson" <sauron(at)the-infinite(dot)org> |
|---|---|
| To: | <pgsql-hackers(at)postgreSQL(dot)org> |
| Subject: | Re: Does getopt() return "-1", or "EOF", at end? |
| Date: | 2002-01-09 20:44:49 |
| Message-ID: | Pine.LNX.4.33.0201091437480.2671-100000@morannon.the-infinite.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, 9 Jan 2002, Tom Lane wrote:
> I notice that in some places we compare the result of getopt(3) to
> "EOF", and in some other places we compare it to "-1". I think we
> should standardize on one or the other; anyone have an opinion
> which it should be?
Why not standardize on -1 - considering that's what the manpages I've been
able to find, say. (Linux, AIX)
Using EOF where the documentation states -1 - to me, would be confusing.
--
Dominic J. Eidson
"Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/ http://www.the-infinite.org/~dominic/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marc G. Fournier | 2002-01-09 20:49:23 | pg_dump bug ... or not? |
| Previous Message | Doug McNaught | 2002-01-09 20:35:53 | Re: Does getopt() return "-1", or "EOF", at end? |