www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/26/15:26:11

Message-Id: <199908260851.LAA09357@ankara.Foo.COM>
From: "S. M. Halloran" <mitch AT duzen DOT com DOT tr>
Organization: User RFC 822- and 1123-compliant
To: DJGPP Group <djgpp AT delorie DOT com>
Date: Thu, 26 Aug 1999 12:58:17 +0200
MIME-Version: 1.0
Subject: Purpose of y1() in standard library?
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019