Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site grkermit.UUCP Path: utzoo!linus!decvax!genrad!grkermit!marks From: marks@grkermit.UUCP (Mark A. Swanson) Newsgroups: net.lang.c Subject: Re: Declaring argument types Message-ID: <658@grkermit.UUCP> Date: Wed, 14-Sep-83 09:36:16 EDT Article-I.D.: grkermit.658 Posted: Wed Sep 14 09:36:16 1983 Date-Received: Wed, 14-Sep-83 17:56:07 EDT References: umcp-cs.2330 <312@sun.UUCP> Organization: GenRad Inc., Concord, MA Lines: 30 One of the C compilers we use for PDP-11 work supports the suggested alternate function format, e.g. int printf(char *msg, int arg1, arg2, arg3) { ... } It also allows function declerations to cooerce arguments: e.g. extern int ftn(float a,b); foo() { int k, l; ftn(k,l); } will automatically cast k & l appropriately. However, we have gone through and removed all such usages, since no other C compiler has them, they cause LINT to barf, etc. The compiler in question is a much modified version of the one Bill Plauger did for Yourdon before he started Whitesmiths, Inc and is not available. Having used both formats, I do think the revisions are an improvement, producing more readable code and fewer mismatched argument bugs. But they're not valuable enough to justify an incompatible compiler, alas. Mark Swanson ...decvax!genrad!grkermit!marks