summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
|\
| * Issue #23943: Fix typos. Patch by Piotr Kasprzyk.Berker Peksag2015-04-141-1/+1
| |
* | Issue #23524: Replace _PyVerify_fd function with calls to ↵Steve Dower2015-04-121-0/+20
| | | | | | | | _set_thread_local_invalid_parameter_handler.
* | Issue #23753: Python doesn't support anymore platforms without stat() orVictor Stinner2015-03-241-22/+0
| | | | | | | | | | | | | | fstat(), these functions are always required. Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and DONT_HAVE_FSTAT.
* | support setting fpu precision on m68k (closes #20904)Benjamin Peterson2014-04-171-0/+19
|/ | | | Patch from Andreas Schwab.
* Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-0/+7
| | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-17/+2
| | | | Python now uses SipHash24 on all major platforms.
* Restore prototypes for the 'openpty' and 'forkpty' on BSDI (broken in issue ↵Serhiy Storchaka2013-10-191-4/+2
| | | | #1772673).
* Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-2/+4
|
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
| | | | | | | | error messages and comments.
* | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.Victor Stinner2013-06-241-1/+1
| |
* | Define S_IFMT and S_IFLNK in pyport.h so posixmodule.c can use named ↵Christian Heimes2013-06-231-7/+8
| | | | | | | | | | | | constants instead of arbitrary looking numbers.
* | Issue #11016: Try to fix compilaton of the new _stat.c module on WindowsVictor Stinner2013-06-221-0/+8
| |
* | Close #17931: Fix PyLong_FromPid() on Windows 64-bit: processes are identifiedVictor Stinner2013-06-041-4/+0
| | | | | | | | by their HANDLE which is a pointer (and not a long, which is smaller).
* | remove support GCC PyArg_ParseTuple format patch, last seen in 2006Benjamin Peterson2013-05-131-9/+0
| |
* | Issue #17047: remove doubled words added in 3.4,Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-111-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. We could work to get rid of the -fwrapv requirement in 3.4 but that requires more planning. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
| * Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-111-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
| | * Fix the internals of our hash functions to used unsigned values during hashGregory P. Smith2012-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change.
| * | Issue 10052: merge fix from 3.2.Mark Dickinson2012-12-021-8/+21
| |\ \ | | |/
| | * Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on ↵Mark Dickinson2012-12-021-8/+21
| | | | | | | | | | | | some platforms.
| * | Backport 9dd4638de73b.Stefan Krah2012-11-181-1/+1
| | |
* | | Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on ↵Mark Dickinson2012-12-021-8/+21
| | | | | | | | | | | | some platforms.
* | | Issue #6308: Try to fix the termios build failure on HP-UX.Stefan Krah2012-11-181-1/+1
| | |
* | | Minor typo fix.Georg Brandl2012-10-281-1/+1
| | |
* | | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-171-0/+14
| | | | | | | | | | | | endianess detection and handling.
* | | #16135: Removal of OS/2 support (C code and Docs)Jesus Cea2012-10-051-3/+0
|/ /
* | Issue #13889: Merge fix from 3.2.Mark Dickinson2012-04-151-0/+24
|\ \ | |/
| * Issue #13889: On MSVC builds, set FPU control word at runtime for all string ↵Mark Dickinson2012-04-151-0/+24
| | | | | | | | <-> float conversions. Patch by Samuel Iseli and Stefan Krah.
* | Consolidate the occurrances of the prime used as the multiplier when hashing.Gregory P. Smith2012-01-141-1/+4
|\ \ | |/
| * Consolidate the occurrances of the prime used as the multiplier when hashingGregory P. Smith2012-01-141-1/+4
| | | | | | | | | | | | | | to a single #define instead of having several copies in several files. This excludes the Modules/ tree (datetime and expat both have a copy for their own purposes with no need for it to be the same).
* | any_find_slice() doesn't use callbacks anymoreVictor Stinner2011-10-101-3/+0
| | | | | | | | | | * Call directly the right find/rfind method: allow inlining functions * Remove Py_LOCAL_CALLBACK (added for any_find_slice)
* | Implement PEP 393.Martin v. Löwis2011-09-281-0/+3
| |
* | Fix typo in comment: _PyHash_Double -> _Py_HashDouble.Mark Dickinson2011-09-241-1/+1
|/
* Issue #10325: Fix two issues in the fallback definitions of PY_LLONG_MAX andMark Dickinson2010-11-201-8/+13
| | | | PY_ULLONG_MAX in pyport.h. Thanks Hallvard B Furuseth for the patch.
* follow up to #9778: define and use an unsigned hash typeBenjamin Peterson2010-10-231-1/+3
|
* make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-171-1/+4
|
* Remove pointers to a FAQ entry that no longer exists. Incorporate some text ↵Daniel Stutzbach2010-09-141-7/+8
| | | | from the old FAQ into the docs
* Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers ↵Daniel Stutzbach2010-08-311-2/+0
| | | | other than MSC
* Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99Alexander Belopolsky2010-08-111-0/+10
| | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.
* Issue #8188: Introduce a new scheme for computing hashes of numbersMark Dickinson2010-05-231-0/+14
| | | | | | (instances of int, float, complex, decimal.Decimal and fractions.Fraction) that makes it easy to maintain the invariant that hash(x) == hash(y) whenever x and y have equal value.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-101/+101
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 80178 via svnmerge fromRonald Oussoren2010-04-181-1/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80178 | ronald.oussoren | 2010-04-18 15:47:49 +0200 (Sun, 18 Apr 2010) | 2 lines Fix for issue #7072 ........
* Merged revisions 76561 via svnmerge fromMark Dickinson2009-11-281-0/+4
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76561 | mark.dickinson | 2009-11-28 12:30:36 +0000 (Sat, 28 Nov 2009) | 5 lines Include ieeefp.h (when available) in pyport.h instead of individually in Objects/floatobject.c and Objects/complexobject.c. This should silence compiler warnings about implicit declaration of the 'finite' function on Solaris. ........
* Merged revisions 76308 via svnmerge fromMark Dickinson2009-11-161-0/+16
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76308 | mark.dickinson | 2009-11-15 16:18:58 +0000 (Sun, 15 Nov 2009) | 3 lines Issue #7228: Add '%lld' and '%llu' support to PyFormat_FromString, PyFormat_FromStringV and PyErr_Format. ........
* Merged revisions 73701 via svnmerge fromMark Dickinson2009-06-301-0/+6
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73701 | mark.dickinson | 2009-06-30 16:32:30 +0100 (Tue, 30 Jun 2009) | 3 lines Issue #6347: Add inttypes.h to the pyport.h #includes; fixes a build failure on HP-UX 11.00. ........
* Add comments to pyport.h explaining how to enable support for shortMark Dickinson2009-04-191-5/+30
| | | | | float repr on platforms that don't currently support it, and reorganize the defines slightly to make adding support easier.
* The SSE2 detection and enabling could potentially causeMark Dickinson2009-04-181-1/+1
| | | | | | | | problems for binary distributions of Python in situations where the build machine has SSE2 but the target machine does not. Therefore, don't enable SSE2 instructions automatically on x86.
* Issue #5781: Only use legacy string<->double conversions whenMark Dickinson2009-04-181-2/+4
| | | | we can't figure out how to get and set the x87 control word.