Skip to content

Commit 6c1db44

Browse files
Mark more variables as PyObject.
1 parent 6f8a223 commit 6c1db44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tools/c-analyzer/c_globals/supported.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def _is_object(vartype):
211211
return True
212212
if '_PyArg_Parser ' in vartype:
213213
return True
214-
if vartype.startswith(('_Py_IDENTIFIER(', '_Py_static_string(')):
214+
if vartype.startswith(('_Py_IDENTIFIER(', 'static _Py_Identifier',
215+
'_Py_static_string(')):
215216
return True
216217
if 'traceback_t' in vartype:
217218
return True
@@ -223,6 +224,10 @@ def _is_object(vartype):
223224
return True
224225
if 'method_cache_entry' in vartype:
225226
return True
227+
if vartype.startswith('static identifier '):
228+
return True
229+
if vartype.endswith((' _Py_FalseStruct', ' _Py_TrueStruct')):
230+
return True
226231

227232
# XXX Add more?
228233

0 commit comments

Comments
 (0)