[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with exit() and new version of gcc.
From: |
Raja R Harinath |
Subject: |
Re: Problem with exit() and new version of gcc. |
Date: |
18 Dec 2000 00:37:43 -0600 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.93 |
Alexandre Oliva <address@hidden> writes:
> On Dec 18, 2000, Pavel Roskin <address@hidden> wrote:
>
> > #ifdef __cplusplus
> > #undef exit
> > #define exit(x) return (x)
> > #endif
That looks like a bad idea.
> But what if a hand-coded test calls exit() from some function other
> than main()?
Yup. Also, they should include <stdlib.h> if they want exit().
- Hari
--
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash