[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glr.c cleanup
From: |
Paul Eggert |
Subject: |
Re: glr.c cleanup |
Date: |
Mon, 12 Dec 2005 13:10:29 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
"Joel E. Denny" <address@hidden> writes:
> Here it is plus some lint fixes.
Thanks; I installed that.
> By the way, lint still gives some `implicit narrowing conversion' warnings
> for both yacc.c and glr.c. Have you seen them?
Just for yacc.c. The GNU Coding standards say "Don't make the program
ugly to placate 'lint'" and I couldn't think of a way to placate lint
without uglifying the code greatly, so I ignored them.
The best idea I came up with was the following macro, but it's pretty
ugly....
/* Narrow VAL to TYPE. Lint complains about narrowing conversions
unless there is an explicit cast, so put one in. However, explicit
casts can mask other errors, so omit the cast in the non-lint case. */
#ifdef lint
# define YYNARROW(type, val) ((type) (val))
#else
# define YYNARROW(type, val) (val)
#endif
- glr.c cleanup, Joel E. Denny, 2005/12/06
- Re: glr.c cleanup, Paul Eggert, 2005/12/07
- Re: glr.c cleanup, Paul Hilfinger, 2005/12/07
- Re: glr.c cleanup, Paul Eggert, 2005/12/07
- Re: glr.c cleanup, Joel E. Denny, 2005/12/07
- Re: glr.c cleanup, Paul Eggert, 2005/12/08
- Re: glr.c cleanup, Joel E. Denny, 2005/12/08
- Re: glr.c cleanup, Paul Eggert, 2005/12/08
- Re: glr.c cleanup, Joel E. Denny, 2005/12/10
- Re: glr.c cleanup,
Paul Eggert <=
- Re: glr.c cleanup, Joel E. Denny, 2005/12/14
- Re: glr.c cleanup, Joel E. Denny, 2005/12/15
- Re: glr.c cleanup, Akim Demaille, 2005/12/16
- Re: glr.c cleanup, Joel E. Denny, 2005/12/30
- Re: glr.c cleanup, Paul Eggert, 2005/12/16
- Re: glr.c cleanup, Joel E. Denny, 2005/12/15
- Re: glr.c cleanup, Hans Aberg, 2005/12/07
- Re: glr.c cleanup, Joel E. Denny, 2005/12/07
- Re: glr.c cleanup, Hans Aberg, 2005/12/08
- Re: glr.c cleanup, Joel E. Denny, 2005/12/08