summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32240: Add the const qualifier to declarations of PyObject* array ↵Serhiy Storchaka2017-12-151-8/+8
| | | | arguments. (#4746)
* bpo-31275: Small refactoring to silence a fall-through warning. (#3206)Stefan Krah2017-08-251-8/+2
|
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-031-20/+8
| | | | | the bare METH_FASTCALL be used for functions with positional-only parameters.
* bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)Sylvain2017-06-101-13/+13
| | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments".
* bpo-30003: Fix handling escape characters in HZ codec (#1556)Xiang Zhang2017-05-221-13/+12
|
* bpo-29990: Fix range checking in GB18030 decoder (#1495)Xiang Zhang2017-05-091-1/+3
| | | When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096)Serhiy Storchaka2017-04-191-0/+3
| | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate.
* bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)Serhiy Storchaka2017-03-121-4/+4
|
* Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-171-10/+22
| | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code.
* Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-171-1/+1
| | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments.
* Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner2017-01-171-4/+4
| | | | Issue #29286.
* Use _PyObject_CallMethodIdObjArgs()Victor Stinner2016-12-091-2/+2
| | | | | | | | | Issue #28915: Replace _PyObject_CallMethodId() with _PyObject_CallMethodIdObjArgs() in various modules when the format string was only made of "O" formats, PyObject* arguments. _PyObject_CallMethodIdObjArgs() avoids the creation of a temporary tuple and doesn't have to parse a format string.
* Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-202-3/+3
| | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* Issue #27810: Regenerate Argument Clinic.Serhiy Storchaka2016-09-111-13/+13
|
* Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka2016-08-141-9/+13
| | | | implemented with using Argument Clinic.
* - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
|\ | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-2/+2
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.Serhiy Storchaka2016-06-091-10/+19
|/
* fix indentation and add curlies (closes #27093)Benjamin Peterson2016-05-241-11/+15
|
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
|
* Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-2/+1
| | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* Merge 3.4Victor Stinner2015-07-161-0/+3
|\
| * Closes #23247: Fix a crash in the StreamWriter.reset() of CJK codecsVictor Stinner2015-07-161-0/+3
| |
* | Specify default values of semantic booleans in Argument Clinic generated ↵Serhiy Storchaka2015-05-302-7/+7
| | | | | | | | signatures as booleans.
* | Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-4/+4
| | | | | | | | instead of types={'type'} to specify the types the converter accepts.
* | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at theSerhiy Storchaka2015-04-231-9/+5
| | | | | | | | same line as function name.
* | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-142-26/+50
| |
* | Issue #20586: Argument Clinic now ensures signatures on functions without ↵Zachary Ware2015-04-131-13/+25
| | | | | | | | docstrings.
* | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-6/+1
| |
* | Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpatVictor Stinner2015-03-171-1/+1
| | | | | | | | | | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h.
* | Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
|\ \ | |/ | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
| * Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
| | | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
* | Fixed few compiler warnings.Serhiy Storchaka2015-02-161-4/+3
| |
* | Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-184-5/+5
|\ \ | |/
| * Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-184-5/+5
| |
* | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-282-3/+3
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | Issue #20152: Convert _multibytecodecs to Argument Clinic.Brett Cannon2014-08-222-142/+492
|/
* Issue #19515: Remove identifiers duplicated in the same file.Victor Stinner2013-11-121-2/+2
| | | | Patch written by Andrei Dorian Duma.
* CJK codecs: less magical macros, semicolon is now explicitVictor Stinner2013-10-288-104/+118
|
* CJK codecs: less magic macros, require explicit semicolonVictor Stinner2013-10-2810-191/+234
|
* CJK codecs: add newlines for readabilityVictor Stinner2013-10-287-91/+188
|
* CJK codecs: use less magic and more readable macros, write explicit ifVictor Stinner2013-10-287-34/+32
|
* CJK codecs: remove unused TRYMAP_ENC_MPLANE macroVictor Stinner2013-10-281-10/+0
|
* Issue #18509: handle PyUnicode_Writer() errorVictor Stinner2013-10-287-84/+102
|
* Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-1/+1
|
* Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant toVictor Stinner2013-07-163-2/+5
| | | | notify exceptions raised by the _PyUnicodeWriter API
* Issue #18408: Fix CJK decoders, raise MemoryError on memory allocation failureVictor Stinner2013-07-151-1/+3
|
* fix indentationVictor Stinner2013-07-081-13/+13
|
* Close #17694: Add minimum length to _PyUnicodeWriterVictor Stinner2013-04-171-4/+5
| | | | | | | | | | | | * Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
* Issue #17693: Fix memory/reference leaksVictor Stinner2013-04-141-5/+3
|