Staging
v0.5.1
https://github.com/python/cpython
Revision a40c793d06ee2b42a5013015352616b4ca6b288b authored by Tim Peters on 05 September 2001, 22:36:56 UTC, committed by Tim Peters on 05 September 2001, 22:36:56 UTC
requires that errno ever get set, and it looks like glibc is already
playing that game.  New rules:

+ Never use HUGE_VAL.  Use the new Py_HUGE_VAL instead.

+ Never believe errno.  If overflow is the only thing you're interested in,
  use the new Py_OVERFLOWED(x) macro.  If you're interested in any libm
  errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts
  to set errno the way C89 said it worked.

Unfortunately, none of these are reliable, but they work on Windows and I
*expect* under glibc too.
1 parent 75ed167
History
Tip revision: a40c793d06ee2b42a5013015352616b4ca6b288b authored by Tim Peters on 05 September 2001, 22:36:56 UTC
Rework the way we try to check for libm overflow, given that C99 no longer
Tip revision: a40c793
File Mode Size
sgmlconv
anno-api.py -rwxr-xr-x 2.1 KB
buildindex.py -rwxr-xr-x 9.6 KB
checkargs.pm -rw-r--r-- 4.1 KB
cklatex -rwxr-xr-x 661 bytes
custlib.py -rw-r--r-- 2.1 KB
cvsinfo.py -rw-r--r-- 2.4 KB
findacks -rwxr-xr-x 3.9 KB
findmodrefs -rwxr-xr-x 1.8 KB
fix_hack -rwxr-xr-x 86 bytes
fix_libaux.sed -rwxr-xr-x 107 bytes
fixinfo.el -rw-r--r-- 441 bytes
getpagecounts -rwxr-xr-x 2.6 KB
html2texi.pl -rwxr-xr-x 56.8 KB
indfix.py -rwxr-xr-x 2.3 KB
keywords.py -rw-r--r-- 393 bytes
listmodules -rwxr-xr-x 5.2 KB
mkackshtml -rwxr-xr-x 1.7 KB
mkhowto -rwxr-xr-x 21.2 KB
mkinfo -rwxr-xr-x 1.0 KB
mkmodindex -rwxr-xr-x 4.2 KB
mksourcepkg -rwxr-xr-x 5.0 KB
node2label.pl -rwxr-xr-x 1.6 KB
push-docs.sh -rwxr-xr-x 1.8 KB
refcounts.py -rw-r--r-- 2.3 KB
rewrite.py -rw-r--r-- 1.4 KB
support.py -rw-r--r-- 4.4 KB
toc2bkm.py -rwxr-xr-x 3.9 KB
update-docs.sh -rwxr-xr-x 700 bytes
whichlibs -rwxr-xr-x 85 bytes

back to top