<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/pyport.h, branch 2.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyport.h?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyport.h?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-11T10:16:23Z</updated>
<entry>
<title>This has been declared to work.</title>
<updated>2002-03-11T10:16:23Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-11T10:16:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=879e96f716a444664f98382e292cb049b1ea7db2'/>
<id>urn:sha1:879e96f716a444664f98382e292cb049b1ea7db2</id>
<content type='text'>
backport tim_one's checkin of
    revision 2.45 of pyport.h

SF bug 525705:  [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.
</content>
</entry>
<entry>
<title>backport tim_one's checkin of</title>
<updated>2002-03-05T14:24:45Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-05T14:24:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7a4b55ddc09e1a1d3d5120413f8e17db460379bc'/>
<id>urn:sha1:7a4b55ddc09e1a1d3d5120413f8e17db460379bc</id>
<content type='text'>
    revision 2.5 of pymem.h
    revision 2.44 of pyport.h

Whether platform malloc(0) returns NULL has nothing to do with whether
platform realloc(p, 0) returns NULL, so MALLOC_ZERO_RETURNS_NULL can
be correctly undefined yet realloc(p, 0) can return NULL anyway.

Prevent realloc(p, 0) doing free(p) and returning NULL via a different
hack.  Would probably be better to get rid of MALLOC_ZERO_RETURNS_NULL
entirely.

Bugfix candidate.
</content>
</entry>
<entry>
<title>SF patch  #475657 (Dietmar Schwertberger)</title>
<updated>2001-10-27T21:16:16Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-27T21:16:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bd67d6f32c813eb3c17a07d305db7004c2dcee0a'/>
<id>urn:sha1:bd67d6f32c813eb3c17a07d305db7004c2dcee0a</id>
<content type='text'>
RISCOS/Makefile:
include structseq and weakrefobject;
changes to keep command line length below 2048

RISCOS/Modules/riscosmodule.c:
typos from the stat structseq patch

Include/pyport.h:
don't re-#define __attribute__(__x) on RISC OS as it is already defined in c library
</content>
</entry>
<entry>
<title>SF patch #474590 -- RISC OS support</title>
<updated>2001-10-24T20:42:55Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-24T20:42:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2ae77b8b8a62e648bb1864a9b36ef3280984404'/>
<id>urn:sha1:e2ae77b8b8a62e648bb1864a9b36ef3280984404</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide GCC attributes fom compilers that don't support them.</title>
<updated>2001-10-23T02:20:37Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-10-23T02:20:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=156910851e31d4e7f8d1441a3b05a44b31349adf'/>
<id>urn:sha1:156910851e31d4e7f8d1441a3b05a44b31349adf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch [#466353] Py_HUGE_VAL on BeOS for Intel.</title>
<updated>2001-10-01T19:50:06Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-01T19:50:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=092a7a80fd95b6f347b53779066af3319d3669f8'/>
<id>urn:sha1:092a7a80fd95b6f347b53779066af3319d3669f8</id>
<content type='text'>
The patch repaired internal gcc compiler errors on BeOS.
This checkin repairs them in a simpler way, by explicitly casting the
platform INFINITY to double.
</content>
</entry>
<entry>
<title>Rework the way we try to check for libm overflow, given that C99 no longer</title>
<updated>2001-09-05T22:36:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-05T22:36:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a40c793d06ee2b42a5013015352616b4ca6b288b'/>
<id>urn:sha1:a40c793d06ee2b42a5013015352616b4ca6b288b</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Repair indentation.</title>
<updated>2001-09-05T06:24:24Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-05T06:24:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d893fd68bd8a7be8e0ceb17e3b9ea810de5820e0'/>
<id>urn:sha1:d893fd68bd8a7be8e0ceb17e3b9ea810de5820e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to recover from that glibc's ldexp apparently doesn't set errno on</title>
<updated>2001-09-05T05:38:10Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-05T05:38:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57f282a2a06c01417abec74926e770fb12f95610'/>
<id>urn:sha1:57f282a2a06c01417abec74926e770fb12f95610</id>
<content type='text'>
overflow.  Needs testing on Linux (test_long.py and test_long_future.py
especially).
</content>
</entry>
<entry>
<title>SF bug [#456252] Python should never stomp on [u]intptr_t.</title>
<updated>2001-08-29T21:37:10Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-29T21:37:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=79248aa1e4a8f6510b1f0ef95dc9592d51e16d6c'/>
<id>urn:sha1:79248aa1e4a8f6510b1f0ef95dc9592d51e16d6c</id>
<content type='text'>
pyport.h:  typedef a new Py_intptr_t type.
    DELICATE ASSUMPTION:  That HAVE_UINTPTR_T implies intptr_t is
    available as well as uintptr_t.  If that turns out not to be
    true, things must get uglier (C99 wants both, so I think it's
    an assumption we're *likely* to get away with).
thread_nt.h, PyThread_start_new_thread:  MS _beginthread is documented
    as returning unsigned long; no idea why uintptr_t was being used.
Others:  Always use Py_[u]intptr_t, never [u]intptr_t directly.
</content>
</entry>
</feed>
