ado@elsie.UUCP (Arthur David Olson) (07/26/86)
Someone wrote me today about an
illegal operand of "switch()"
message that was produced when compiling code of mine of this ilk:
subr(l)
long l;
{
switch (l) {
...
}
}
I'd like to know how other compilers (and lints) react to switches on longs.
I already know what K&R, H&S, and the tentative conditional draft proposed
ANSI C standard have to say; I'm interested in learning what happens
in the real world. The information will tell me whether it's wise to have
"lint" check for such code when lint is used in its "portability mode." If you
have the information I'm after, please mail me a response. Thanks.
--
Return is part of a LucasFilm trademark.
--
UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA
DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.