lclint-interest message 86

From Fri Jul  5 13:24:47 1996
Date: Fri, 5 Jul 1996 12:24:19 -0500
From: Peter Seebach 
Subject: formal param names in prototypes...

What's wrong with them is this:

Assume string.h says
	extern int strcmp(const char *s1, const char *s2);

now, consider
	#define s1 (void)
	#define s2 (int)


... Perfectly legal, if stupid, code suddenly generates compiler errors.

The names given to the parameters must be in the implementation namespace,
and should generally be *far* from anything anyone would ever use.


Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science