[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCC complaints about missing braces around initializer
From: |
Paul Eggert |
Subject: |
Re: GCC complaints about missing braces around initializer |
Date: |
Thu, 6 Dec 2001 23:37:25 -0800 (PST) |
> From: Richard Stallman <address@hidden>
> Date: Wed, 5 Dec 2001 19:45:25 -0700 (MST)
>
> I don't remember either for certain whether K&R C allowed the nested
> braces.
It did. The compiler supported them, and the K&R book documented them.
> However, it is better to leave this code alone, just because so many
> changes are being made now.
OK. One further point: if you do use nested braces (in new code,
say), you should nest completely. Some older compilers mishandle
partly elided braces because they incorrectly use a bottom-up parse to
resolve the ambiguity, even though both K&R and Standard C require
top-down. It's safe to omit all the nested braces, or to omit none of
them; but it's not safe to omit just some of them.
- Re: New mh-e toolbar icons, (continued)
- Re: New mh-e toolbar icons, Richard Stallman, 2001/12/04
- Re: New mh-e toolbar icons, Peter S Galbraith, 2001/12/04
- Too new DOC file or .elc file, Stefan Monnier, 2001/12/04
- Re: Too new DOC file or .elc file, Richard Stallman, 2001/12/05
- Re: Too new DOC file or .elc file, Stefan Monnier, 2001/12/06
- GCC complaints about missing braces around initializer, Stefan Monnier, 2001/12/04
- Re: GCC complaints about missing braces around initializer, Pavel Janík, 2001/12/05
- Re: GCC complaints about missing braces around initializer, Richard Stallman, 2001/12/05
- Re: GCC complaints about missing braces around initializer, Pavel Janík, 2001/12/08
- Re: GCC complaints about missing braces around initializer, Richard Stallman, 2001/12/05
- Re: GCC complaints about missing braces around initializer,
Paul Eggert <=
- Re: GCC complaints about missing braces around initializer, Pavel Janík, 2001/12/08
- Re: New mh-e toolbar icons, Eli Zaretskii, 2001/12/05
- Re: New mh-e toolbar icons, Bill Wohler, 2001/12/05
- Re: New mh-e toolbar icons, Richard Stallman, 2001/12/03
Re: New mh-e toolbar icons, Jason Rumney, 2001/12/04