mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-11717: fix ssize_t redefinition error when targeting 32bit Windows app (GH-24479)
This commit is contained in:
parent
0242494a15
commit
c994ffe695
5 changed files with 181 additions and 179 deletions
|
|
@ -583,8 +583,8 @@ class CParserGenerator(ParserGenerator, GrammarVisitor):
|
|||
self.print("int _start_mark = p->mark;")
|
||||
self.print("void **_children = PyMem_Malloc(sizeof(void *));")
|
||||
self.out_of_memory_return(f"!_children")
|
||||
self.print("ssize_t _children_capacity = 1;")
|
||||
self.print("ssize_t _n = 0;")
|
||||
self.print("Py_ssize_t _children_capacity = 1;")
|
||||
self.print("Py_ssize_t _n = 0;")
|
||||
if any(alt.action and "EXTRA" in alt.action for alt in rhs.alts):
|
||||
self._set_up_token_start_metadata_extraction()
|
||||
self.visit(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue