home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!ericom!terminus.ericsson.se!!beirut!paul
- From: paul@terminus.ericsson.se
- Newsgroups: comp.lang.c
- Subject: enum checking using C compiler
- Message-ID: <987@quirm.terminus.ericsson.se>
- Date: 11 Jan 93 16:13:44 GMT
- Sender: usenet@terminus.ericsson.se
- Reply-To: paul@terminus.ericsson.se
- Distribution: world
- Organization: Camtec Electronics (Ericsson), Leicester, England
- Lines: 27
- Nntp-Posting-Host: beirut
-
- Does anyone out there know where I can get hold of a prog that
- will check for integers being assigned to enumerated data types.
-
- eg
-
- typedef enum {
- fred,
- joe,
- harry
- } PEOPLE;
-
- int i=2;
- PEOPLE names;
- names=i; <----- Want it to find this
-
- I've tried using gcc (even tried to mackle the progs so I could use
- g++ -Wenum-clash
-
- The only lint I have is non ansi.
-
- Thanks in advance for any help
-
- Paul Isaac
- Ericsson-Camtec Leicester
- EMAIL: paul@terminus.ericsson.se
-
-
-