<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/modsupport.c, branch v2.5c2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/modsupport.c?h=v2.5c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/modsupport.c?h=v2.5c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-18T00:53:48Z</updated>
<entry>
<title>C++ compiler cleanup: migrate to modsupport.h</title>
<updated>2006-04-18T00:53:48Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2006-04-18T00:53:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ff54e7706032f0e2559e12c7217b528714eef0f'/>
<id>urn:sha1:7ff54e7706032f0e2559e12c7217b528714eef0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make Py_BuildValue, PyObject_CallFunction and</title>
<updated>2006-04-14T09:08:42Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-14T09:08:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5cb6936672a1410f5502d754570bc548064f9dc4'/>
<id>urn:sha1:5cb6936672a1410f5502d754570bc548064f9dc4</id>
<content type='text'>
PyObject_CallMethod aware of PY_SSIZE_T_CLEAN.
</content>
</entry>
<entry>
<title>Replace INT_MAX with PY_SSIZE_T_MAX.</title>
<updated>2006-04-13T07:52:27Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-04-13T07:52:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b1ed7fac12fe51080c06e518a9fcaa21f0734744'/>
<id>urn:sha1:b1ed7fac12fe51080c06e518a9fcaa21f0734744</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make mktuple consistent with mklist to get rid of Coverity warnings.  Also use macro version of SetItem since we know everything is setup.</title>
<updated>2006-03-16T08:20:19Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-03-16T08:20:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4fe4ed2525602b03b787b013366184631926c530'/>
<id>urn:sha1:4fe4ed2525602b03b787b013366184631926c530</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to cleanup the error handling a bit so there aren't false positives</title>
<updated>2006-03-06T23:07:34Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-03-06T23:07:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3e90fa5940f7086f8617038524fe108bd58d627a'/>
<id>urn:sha1:3e90fa5940f7086f8617038524fe108bd58d627a</id>
<content type='text'>
from static analysis.  v was already checked for NULL above, so we don't
need a second check.
</content>
</entry>
<entry>
<title>Fix more memory leaks. Will backport to 2.4.</title>
<updated>2006-03-01T21:33:54Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-03-01T21:33:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0b300be8957557b64e7d4a630ca5197b9224ac76'/>
<id>urn:sha1:0b300be8957557b64e7d4a630ca5197b9224ac76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use Py_ssize_t to count the</title>
<updated>2006-02-16T14:37:16Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-16T14:37:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d96ee909934f3855135589e0e8d6ece1912c1f22'/>
<id>urn:sha1:d96ee909934f3855135589e0e8d6ece1912c1f22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge ssize_t branch.</title>
<updated>2006-02-15T17:27:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-02-15T17:27:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18e165558b24d29e7e0ca501842b9236589b012a'/>
<id>urn:sha1:18e165558b24d29e7e0ca501842b9236589b012a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>do_mkvalue(), 'I' and 'k' cases:  squash legitimate</title>
<updated>2005-12-24T06:23:41Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2005-12-24T06:23:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=35c3f4f249409a99295764d77fdc043920a26827'/>
<id>urn:sha1:35c3f4f249409a99295764d77fdc043920a26827</id>
<content type='text'>
compiler warnings about mixing signed and unsigned types
in comparisons.
</content>
</entry>
<entry>
<title>Add const to several API functions that take char *.</title>
<updated>2005-12-10T18:50:16Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2005-12-10T18:50:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af68c874a6803b4e90b616077a602c0593719a1d'/>
<id>urn:sha1:af68c874a6803b4e90b616077a602c0593719a1d</id>
<content type='text'>
In C++, it's an error to pass a string literal to a char* function
without a const_cast().  Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.

I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc.  Predictably, there were a large set of functions that
needed to be fixed as a result of these changes.  The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].

One cast was required as a result of the changes:  A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
</content>
</entry>
</feed>
