summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | undef unwanted defines from longintrepr.hJeroen Demeyer2015-09-041-0/+4
| |
* | Use reference rather than pointer for destructor calling.Robert Bradshaw2015-08-281-2/+2
| | | | | | | | This avoids the issue with overloaded address-of operators.
* | Move "longintrepr.h" inclusion before any user includes.Robert Bradshaw2015-08-131-7/+10
| | | | | | | | | | | | | | | | This solves the issue reported by Volker Braun where conflicting using aliases of uint64_t would result in compile time errors. Unfortunately, this also means that it's always included if CYTHON_USE_PYLONG_INTERNALS is set, but it's a short header.
* | make C char* string literals "const" unless specified otherwiseStefan Behnel2015-08-081-1/+1
|/ | | | prevent non-const char* string literals from being interned
* More explicit warning when C++ compiler not used for C++ Cython file.Robert Bradshaw2015-07-221-0/+4
| | | | | Now that we split CInitCode and CppInitCode, we no longer generate valid C code even if C++ features are not used.
* Fix issue with const reference returned results.Robert Bradshaw2015-07-151-1/+3
| | | | | | This is a bit of a hack, but as Cython doesn't yet understand const overloads with different (usually const) return types, it can't provide the right type of reference in this case.
* disable "tp_reserved" usage in PyPyStefan Behnel2015-07-081-1/+1
|
* fix binary search in code object cacheLars Buitinck2015-06-161-1/+1
| | | | (start + end) can overflow.
* keep C++ code out of C files and vice-versa by splitting module preamble ↵Stefan Behnel2015-06-061-27/+45
| | | | (original patch by Lars Mans)
* backport PyAsyncMethods and tp_as_async slot to all Py3.x versions (not only ↵Stefan Behnel2015-05-291-0/+16
| | | | Py3.5+)
* Merge branch '0.22.x'Stefan Behnel2015-04-111-0/+4
|\
| * define PyUnicode_Contains() in PyPy if it's not availableStefan Behnel2015-04-111-0/+4
| |
* | switch to using PySet_GET_SIZE() for set size and truth requests as it's ↵Stefan Behnel2015-04-101-3/+0
| | | | | | | | fast and also works as expected in PyPy
* | Merge branch '0.22.x'Stefan Behnel2015-04-101-0/+8
|\ \ | |/
| * be more explicit about "unused argument" marker in cases where it's only ↵Stefan Behnel2015-04-101-0/+8
| | | | | | | | unused in non-CPython code
| * Replace "#if !defined" -> "#ifndef" in utility codeLisandro Dalcin2015-03-271-4/+4
| |
* | move declaration of __Pyx_sst_abs() macro to TypeConversion.c instead of ↵Stefan Behnel2015-03-291-12/+0
| | | | | | | | more high-level ModuleSetupCode.c
* | improve declaration of __Pyx_sst_abs() macro to avoid using llabs() before C99Stefan Behnel2015-03-291-3/+11
| | | | | | | | | | --HG-- extra : amend_source : 69b25b07657205e86aade4f4f8285e721e4648b0
* | tune PyLong optimisations at (gcc) assembly level so that they prefer the ↵Stefan Behnel2015-03-281-0/+4
| | | | | | | | most common case of a single-digit
* | extend PyLong optimisations to larger negative numbers, enable it also in Py2.7Stefan Behnel2015-03-261-0/+4
| |
* | use shorter "#ifndef" instead of "#if defined()"Stefan Behnel2015-03-261-4/+4
|/
* PyPy3: Avoid redefining Py_TPFLAGS_XXX flagsLisandro Dalcin2015-03-091-3/+6
|
* Avoid incorrect copy when reference is stored to a temporary variable.Robert Bradshaw2015-02-041-1/+13
|
* use PyPy defined "Py_OptimizeFlag" is availableStefan Behnel2014-12-291-1/+1
|
* Allow cpdef void-returning functions.Robert Bradshaw2014-10-181-0/+2
|
* remove compatibility #define for PyMethod_New() as it breaks the macro ↵Stefan Behnel2014-10-101-4/+0
| | | | definition
* work around pypy3 bugStefan Behnel2014-10-091-3/+6
|
* fix PyMethod_New() in pypy3Stefan Behnel2014-10-081-1/+7
|
* work around PyPy not supporting PySet_Size() in frozenset objectsStefan Behnel2014-09-181-0/+3
|
* avoid redundant type pointer comparison in "__Pyx_PyBaseString_Check()" as ↵Stefan Behnel2014-09-071-2/+1
| | | | Py2.6+ already has fast builtin type checks
* Get rid of obsolete Python cruftLisandro Dalcin2014-08-311-17/+4
| | | | | | | * Remove macros __Pyx_{NAME|DOC}STR * Remove macros __Pyx_{Get|Set|Del}AttrString * Remove macro __Pyx_PyIndex_Check * Remove workaround for missing BaseException in builtins
* Merge branch '0.20.x'Lisandro Dalcin2014-05-161-1/+1
|\
| * PyPy: Release 2.3 do exposes Py_OptimizeFlag in the C APILisandro Dalcin2014-05-161-1/+1
| |
* | Merge branch '0.20.x'Lisandro Dalcin2014-05-051-1/+1
|\ \ | |/
| * Silent clang -Wconversion warningsLisandro Dalcin2014-05-041-1/+1
| |
* | Restore some over-eager 3.1 removals.Robert Bradshaw2014-02-221-6/+8
| |
* | More obsolete code removal.Robert Bradshaw2014-02-221-26/+5
| |
* | Remove obsolete utility code.Robert Bradshaw2014-02-221-107/+7
|/
* Clang-compatible C++ nested destructor call.Robert Bradshaw2014-02-181-0/+8
|
* code objects: add number of kwonly args to number of regular arguments in ↵Stefan Behnel2014-02-011-1/+1
| | | | Py2 (which does not support kwonly arguments for Python functions) to make sure they are still visible for introspection
* work around PyPy not defining PyUnicode_Concat()Stefan Behnel2014-01-281-2/+9
| | | | | --HG-- extra : amend_source : 8474ebfc7b6ab33b8cca9e4a478c54b2bee5f2fc
* Merge branch '0.20.x'Robert Bradshaw2014-01-181-2/+2
|\
| * Better unused warning suppression.Robert Bradshaw2014-01-181-2/+2
| | | | | | | | | | The (k=k) can results in "multiple unsequenced modifications to 'kind'" warning when this macro is expanded twice in the same expression.
* | minor Py hex version fix for patch level when Py_hash_t was added (just in ↵Stefan Behnel2014-01-161-1/+1
|/ | | | case someone still uses Py3.2 alpha versions)
* call PyBaseObject_Type.tp_new() in tp_new() functions instead of tp_alloc() ↵Stefan Behnel2014-01-101-1/+3
| | | | directly
* avoid useless metaclass searching overhead when creating Python class ↵Stefan Behnel2014-01-011-0/+2
| | | | without base classes
* optimise str % formattingStefan Behnel2013-12-311-1/+8
|
* improve type inference for string %/+/* operations and use more direct C-API ↵Stefan Behnel2013-12-061-0/+4
| | | | calls for these unicode operations
* call PyNumber_Int() for builtin int() functionStefan Behnel2013-11-231-0/+1
|
* inline PyUnicode_Compare() function for equality comparisonsStefan Behnel2013-11-101-0/+4
|