home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!gumby!wupost!csus.edu!netcom.com!lgolding
- From: lgolding@netcom.com (Laurence J. Golding)
- Subject: Re: enum checking using C compiler
- Message-ID: <1993Jan11.222233.25951@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <987@quirm.terminus.ericsson.se>
- Date: Mon, 11 Jan 1993 22:22:33 GMT
- Lines: 35
-
- paul@terminus.ericsson.se writes:
-
- >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
-
- Try Flexe-Lint from Gimpel software. Very reasonably priced,
- extremely powerful, _incredibly_ flexible and customizable,
- distributed in shrouded source form so should run on any :-) Unix
- platform. Sorry to sound like a commercial, but it's been a real
- help to me. Contact
-
- Gimpel Software
- 3207 Hogarth Lane
- Collegeville, PA 19426
- (215)584-4261
- (215)584-4266 (fax)
-
- P.S. Flexe-Lint has _three_ different "strictness" options for dealing
- with enums.
- --
- Laurence J. Golding
- lgolding@netcom.com
- (510)490-3663
-