summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/ce-compat
Commit message (Expand)AuthorAgeFilesLines
* fix WebKit build on Windows CE 6Joerg Bornemann2009-11-102-2/+11
* Copied Windows CE compatiblity date/time conversion functions from WebKitSimon Hausmann2009-09-182-0/+693
pan class='column3'>| merge 3.2 (#14752)Benjamin Peterson2012-05-081-2/+4 |\ \ | |/ | * fix possible refleak (closes #14752)Benjamin Peterson2012-05-081-2/+4 | | * | Backout ab500b297900: the check for integer overflow is wrongVictor Stinner2012-05-071-4/+2 | | | | | | | | | | | | Issue #14716: Change integer overflow check in unicode_writer_prepare() to compute the limit at compile time instead of runtime. Patch writen by Serhiy Storchaka. * | Issue #14716: Change integer overflow check in unicode_writer_prepare()Victor Stinner2012-05-071-2/+4 | | | | | | | | | | to compute the limit at compile time instead of runtime. Patch writen by Serhiy Storchaka. * | Close #14716: str.format() now uses the new "unicode writer" API instead of theVictor Stinner2012-05-072-170/+148 | | | | | | | | PyAccu API. For example, it makes str.format() from 25% to 30% faster on Linux. * | Issue #14700: Fix two broken and undefined-behaviour-inducing overflow ↵Mark Dickinson2012-05-071-2/+2 | | | | | | | | checks in old-style string formatting. Thanks Serhiy Storchaka for report and original patch. * | unicode_writer: don't force inline when it is not necessaryVictor Stinner2012-05-031-3/+3 | | | | | | | | Keep inline for performance critical functions (functions used in loops) * | merge 3.2 (#14717)Benjamin Peterson2012-05-031-1/+1 |\ \ | |/ | * close() doesn't take any args (closes #14717)Benjamin Peterson2012-05-031-1/+1 | | * | if the kind of the string to count is larger than the string to search, ↵Benjamin Peterson2012-05-031-10/+3 | | | | | | | | shortcut to 0 * | unicode_writer: add finish() method and assertions to write_str() methodVictor Stinner2012-05-031-13/+33 | | | | | | | | | | * The write_str() method does nothing if the length is zero. * Replace "struct unicode_writer_t" with "unicode_writer_t" * | Issue #14687: Remove redundant length attribute of unicode_write_tVictor Stinner2012-05-031-12/+8 | | | | | | | | The length can be read directly from the buffer * | Issue #14687: Cleanup unicode_writer_prepare()Victor Stinner2012-05-031-23/+19 | | | | | | | | "Inline" PyUnicode_Resize(): call directly resize_compact() * | Issue #14687: str%tuple now uses an optimistic "unicode writer" instead of anVictor Stinner2012-05-031-100/+166 | | | | | | | | | | accumulator. Directly write characters into the output (don't use a temporary list): resize and widen the string on demand. * | Issue #14624, #14687: Optimize unicode_widen()Victor Stinner2012-05-031-7/+9 | | | | | | | | Don't convert uninitialized characters. Patch written by Serhiy Storchaka. * | Remove buggy assertion in PyUnicode_Substring()Victor Stinner2012-05-031-2/+2 | | | | | | | | Use also directly unicode_empty, instead of PyUnicode_New(0,0). * | Fix PyUnicode_Substring() for start >= length and start > endVictor Stinner2012-05-031-6/+8 | | | | | | | | | | Remove the fast-path for 1-character string: unicode_fromascii() and _PyUnicode_FromUCS*() now have their own fast-path for 1-character strings. * | Unicode: optimize creating of 1-character stringsVictor Stinner2012-05-031-8/+50 | | * | Issue #14687: Optimize str%tuple for the "%(name)s" syntaxVictor Stinner2012-05-021-2/+3 | | | | | | | | Avoid an useless and expensive call to PyUnicode_READ(). * | unicodeobject.c: Add MAX_MAXCHAR() macro to (micro-)optimize the computationVictor Stinner2012-05-011-48/+49 | | | | | | | | | | | | | | | | of the second argument of PyUnicode_New(). * Create also align_maxchar() function * Optimize fix_decimal_and_space_to_ascii(): don't compute the maximum character when ch <= 127 (it is ASCII) * | Issue #14687: Cleanup PyUnicode_Format()Victor Stinner2012-05-011-2/+4 | | * | Issue #14687: Optimize str%argsVictor Stinner2012-05-011-2/+2 | | | | | | | | | | | | | | | | | | * formatfloat() uses unicode_fromascii() instead of PyUnicode_DecodeASCII() to not have to check characters, we know that it is really ASCII * Use PyUnicode_FromOrdinal() instead of _PyUnicode_FromUCS4() to format a character: if avoids a call to ucs4lib_find_max_char() to compute the maximum character (whereas we already know it, it is just the character itself) * | merge 3.2 (#14699)Benjamin Peterson2012-05-011-3/+41 |\ \ | |/ | * fix calling the classmethod descriptor directly (closes #14699)Benjamin Peterson2012-05-011-3/+41 | | * | change insertdict to not steal references (#13903)Benjamin Peterson2012-04-301-13/+3 | | * | Issue #14687: Avoid an useless duplicated string in PyUnicode_Format()Victor Stinner2012-04-301-11/+7 | | * | Issue #14687: Cleanup PyUnicode_Format()Victor Stinner2012-04-301-54/+28 | | * | Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.Brett Cannon2012-04-291-1/+1 | | | | | | | | Thanks to Eric Snow for the patch. * | Fix my previous commit: bool is a long, restore the specical case for boolVictor Stinner2012-04-271-1/+4 | | * | Simplify and optimize formatlong()Victor Stinner2012-04-272-150/+128 | | | | | | | | | | | | | | * Remove _PyBytes_FormatLong(): inline it into formatlong() * the input type is always a long, so remove the code for bool * don't duplicate the string if the length does not change * Use PyUnicode_DATA() instead of _PyUnicode_AsString() * | Optimize _PyUnicode_FindMaxChar() find pure ASCII stringsVictor Stinner2012-04-271-0/+3 | | * | decref cached keys on type deallocation (#13903)Benjamin Peterson2012-04-271-3/+5 | | * | Check newly created consistency using _PyUnicode_CheckConsistency(str, 1)Victor Stinner2012-04-272-10/+18 | | | | | | | | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError() * | _PyUnicode_CheckConsistency() ensures that the unicode string ends with aVictor Stinner2012-04-251-2/+6 | | | | | | | | null character * | long_to_decimal_string() and _PyLong_Format() check the consistency of newlyVictor Stinner2012-04-251-0/+2 | | | | | | | | created strings using _PyUnicode_CheckConsistency() in debug mode * | distiguish between refusing to creating shared keys and error (#13903)Benjamin Peterson2012-04-241-4/+7 | | * | Account for shared keys in type's __sizeof__ (#13903).Martin v. Loewis2012-04-242-11/+30 | | * | merge 3.2 (#14658)Benjamin Peterson2012-04-241-2/+3 |\ \ | |/ | * don't use a slot wrapper from a different special method (closes #14658)Benjamin Peterson2012-04-241-2/+3 | | | | | | | | | | | | | | This also alters the fix to #11603. Specifically, setting __repr__ to object.__str__ now raises a recursion RuntimeError when str() or repr() is called instead of silently bypassing the recursion. I believe this behavior is more correct. * | fix dict gc tracking (#13903)Benjamin Peterson2012-04-241-0/+3 | | * | make pointer arith c89Benjamin Peterson2012-04-241-2/+2 | | * | use correct base ptrBenjamin Peterson2012-04-231-1/+2 | | * | simplify and reformatBenjamin Peterson2012-04-231-9/+11 | | * | Close #14648: Compute correctly maxchar in str.format() for substrinVictor Stinner2012-04-231-0/+31 | | * | fix instance dicts with str subclasses (#13903)Benjamin Peterson2012-04-231-1/+5 | | * | don't make shared keys with dict subclassesBenjamin Peterson2012-04-231-1/+1 | | * | Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-23