switch() difficulties in gcc v1.35
Conor P. Cahill
cpcahil at virtech.uucp
Sun Dec 24 22:58:07 AEST 1989
In article <18485 at netnews.upenn.edu>, weisen at eniac.seas.upenn.edu) (Neil I. Weisenfeld ;-) writes:
> Thanks to all those who gave me (non-obnoxious) replies to my posting.
> I didn't realize that gcc would interpret `defualt' in a case xxx: as
> a label if it hadn't been defined. Is this non-ANSI C not to give an
> error for undefined and un-prototyped symbols.
How does one define or prototype a statement label?
Interpreting "defualt" as a statement label is correct in all versions of C.
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.lang.c
mailing list