summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
Commit message (Collapse)AuthorAgeFilesLines
* replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-211-9/+1
|
* merge 3.5 (#28184)Benjamin Peterson2016-09-201-1/+1
|\
| * remove trailing whitespaceBenjamin Peterson2016-09-201-1/+1
| |
* | stop using Py_LL and Py_ULLBenjamin Peterson2016-09-191-4/+0
| |
* | always define HAVE_LONG_LONG (#27961)Benjamin Peterson2016-09-191-0/+3
| |
* | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-131-31/+14
| | | | | | | | optimize memcpy().
* | more PY_LONG_LONG to long longBenjamin Peterson2016-09-081-30/+0
| |
* | replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-071-9/+1
| |
* | require uintptr_t to existBenjamin Peterson2016-09-061-21/+0
| |
* | only include inttypes.h (#17884)Benjamin Peterson2016-09-061-3/+0
| |
* | require standard int types to be defined (#17884)Benjamin Peterson2016-09-061-51/+1
| |
* | replace PY_LONG_LONG with long longBenjamin Peterson2016-09-061-2/+2
| |
* | require a long long data type (closes #27961)Benjamin Peterson2016-09-061-17/+8
| |
* | Issue #10910: merge from 3.5Ned Deily2016-08-151-1/+10
|\ \ | |/
| * Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.Ned Deily2016-08-151-1/+3
| | | | | | | | | | The original problem has been fixed in newer versions of FreeBSD. Patch by Dimitry Andric of the FreeBSD project.
| * Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.Ned Deily2016-08-151-0/+7
| | | | | | | | Patch by Ronald Oussoren.
* | Issue #26857: The gethostbyaddr_r() workaround is no longer needed withStefan Krah2016-05-221-0/+4
|/ | | | api-level >= 23. Patch by Xavier de Gaye.
* 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)