From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4443BA0C.3020300@comtv.ru> Date: Mon, 17 Apr 2006 19:53:48 +0400 From: Victor Nazarov User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Function args not checked References: <40e76fd4ab1b047841b5829ed8015b0e@plan9.bell-labs.com> In-Reply-To: <40e76fd4ab1b047841b5829ed8015b0e@plan9.bell-labs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 3814cb36-ead1-11e9-9d60-3106f5b1d025 jmk@plan9.bell-labs.com wrote: >As an aside, when you declare prototypes I find it is best to >only give the types of the parameters and not declare identifiers, >e.g. > extern Elem mkoid(Ints *); // asn1.h >rather than > extern Elem mkoid(Ints *oid); // asn1.h >This prevents confusion in environments where there is overuse >of the pre-processor and the identifier gets substituted. > > It's just an evidence of preprocessor's danger. Let's use enums. IMHO, prototypes are quite good documentation sometimes. -- Victor Nazarov