2006/4/17, Victor Nazarov <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] 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.
Until someone reorders arguments and forgets to update the prototype to reflect them. Using argument names in your prototypes is not an excuse to not write documentation on your API. It is an excuse to be lazy. --Devon > -- > Victor Nazarov > >
