[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

/* 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))
# define YYNARROW(type, val) (val)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]