bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12381: Assume C89 or later for math functions.


From: Ken Brown
Subject: bug#12381: Assume C89 or later for math functions.
Date: Sat, 08 Sep 2012 15:46:13 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0

On 9/8/2012 3:05 PM, Paul Eggert wrote:
On 09/08/2012 10:20 AM, Ken Brown wrote:
Is there a C program I could run that would answer your question?

Sure, run this:

#include <math.h>
int main (void)
{
   return pow (0, 0) != 1;
}

If the matherr problem is present, the program will
print something on stderr, coming from the library.
If not, the program will exit silently.  On Ubuntu
it exits with status 0, which is what POSIX requires,
though pow's exact return value doesn't really matter
here -- the point is that pow should not write to stderr.

Thanks. The Cygwin behavior is the same as what you described for Ubuntu. Nothing is written to stderr, and the exit status is 0.

Ken






reply via email to

[Prev in Thread] Current Thread [Next in Thread]