lclint-interest message 86
From seebs@solon.com Fri Jul 5 13:24:47 1996
Date: Fri, 5 Jul 1996 12:24:19 -0500
From: Peter Seebach
To: lclint-interest@larch.lcs.mit.edu
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)
#include
... 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.
-s
David
Evans
University of Virginia, Computer Science
evans@cs.virginia.edu