home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19555 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.2 KB  |  46 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!gumby!wupost!csus.edu!netcom.com!lgolding
  3. From: lgolding@netcom.com (Laurence J. Golding)
  4. Subject: Re: enum checking using C compiler
  5. Message-ID: <1993Jan11.222233.25951@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <987@quirm.terminus.ericsson.se>
  8. Date: Mon, 11 Jan 1993 22:22:33 GMT
  9. Lines: 35
  10.  
  11. paul@terminus.ericsson.se writes:
  12.  
  13. >Does anyone out there know where I can get hold of a prog that
  14. >will check for integers being assigned to enumerated data types.
  15.  
  16. >eg
  17.  
  18. >typedef enum {
  19. >    fred,
  20. >    joe,
  21. >    harry
  22. >} PEOPLE;
  23.  
  24. >int i=2;
  25. >PEOPLE names;
  26. >names=i;       <----- Want it to find this
  27.  
  28. Try Flexe-Lint from Gimpel software.  Very reasonably priced,
  29. extremely powerful, _incredibly_ flexible and customizable,
  30. distributed in shrouded source form so should run on any :-) Unix
  31. platform.  Sorry to sound like a commercial, but it's been a real
  32. help to me. Contact
  33.  
  34.     Gimpel Software
  35.     3207 Hogarth Lane
  36.     Collegeville, PA 19426
  37.     (215)584-4261
  38.     (215)584-4266 (fax)
  39.  
  40. P.S. Flexe-Lint has _three_ different "strictness" options for dealing
  41. with enums.
  42. -- 
  43. Laurence J. Golding
  44. lgolding@netcom.com
  45. (510)490-3663
  46.