Mail Archives: djgpp/1999/08/26/15:26:11
I get warnings in much of my code about my local variable named 'y1' shadowing
a global, which is defined the 'math.h'. Naming variables like 'x1', 'y1',
'x2', 'y2' is rather logical for programs that plot pixels and so on, so it
would be rather irritating for a global to define itself that way, unless it
doesn't really need to be defined as such.
The documentation for the standard library shows no use or purpose for this
function for those interfacing with it (C:\>info libc y1). Perhaps y1() can
be re-named or be made part of the module in which it may be called by only one
or two calling functions, and therefore be declared static.
Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara TURKEY
- Raw text -