Path: utzoo!attcan!uunet!cs.utexas.edu!asuvax!noao!arizona!dms From: dms@cs.arizona.edu (David Michael Shackelford) Newsgroups: comp.lang.c Subject: Re: turbo-C and lint ? Summary: Use procedure prototypes and Turbo-c checks parameter types Keywords: PD lint Message-ID: <153@caslon.cs.arizona.edu> Date: 20 Mar 90 19:38:41 GMT References: <1964@bruce.OZ> Organization: U of Arizona CS Dept, Tucson Lines: 21 In article <1964@bruce.OZ>, alanf@bruce.OZ (Alan Grant Finlay) writes: > I was surprised to discover that the Turbo-C package does not come with a lint > program. Specifically I want to have the ability to automatically check for > procedure argument type consistency. When in the past I have complained to > C advocates that C compilers don't check for consistent use of parameters they > have usually replied "that's what lint is for!". Is it really acceptable for > a commercial compiler package to come supplied without an essential part or > have I missed something in the package that does the same job? > > Also does anyone know if there are any public domain lints available that will > work with Turbo-C source? I use Turbo-C's extended function prototype syntax and it checks for parameter type compatibility at the function calls. There might be an option in the compiler/warnings menu to cause it to give the message when types dont match. I compile with all error and warning messages enabled. As for the lint package, I don't know of any. Maybe someone else has an idea.. There might be a portability problem with using Turbo's extended prototypes, so if you're planning on porting, beware...