From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Purpose of y1() in standard library? Date: Tue, 31 Aug 1999 09:45:49 +0300 Organization: NetVision Israel Lines: 20 Message-ID: References: <199908260851 DOT LAA09357 AT ankara DOT Foo DOT COM> <7qcujs$7a1$1 AT solomon DOT cs DOT rose-hulman DOT edu> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 936081879 9056 199.203.121.2 (31 Aug 1999 06:44:39 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 31 Aug 1999 06:44:39 GMT X-Sender: eliz AT is In-Reply-To: <7qcujs$7a1$1@solomon.cs.rose-hulman.edu> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 29 Aug 1999, Damian Yerrick wrote: > > 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. > > Someone screwed up. But it's not the library distribution that is ``screwed up''. y1 is a widely-used mathematical function (one of the Bessel functions, to be exact). It is part of libm.a that is distributed with DJGPP, and its docs is in libm.info. The right solution, as someone already pointed out, is to not use global variables called y1; or, if you must, compile with -ansi switch which will exclude the y1 prototype from being seen by the compiler.