This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Test standard function names?
- From: Kevin Handy <kth at srv dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 14 Sep 2002 14:00:18 -0600
- Subject: Test standard function names?
I've seen several bugs caused by the fact that people don't know all of
the functions defined the the standard library, and code their own
functions using those same names. Trying to figure out why the code
doesn't work as expected, or trying to fix the problems caused when
they are linked wrongly is a real problem.
Would it be possible to have an error displayed when someone tries
to define a function with the name of one of the standard library
function names? You would only want to display the error when
the function body was there, so that prototypes wouldn't trigger
the message. There would be a need to turn off the message so
that those writing the system library wouldn't have to see it.