This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -26,7 +26,7 @@ __all__ = [
'hasexternals', 'hasinitvalue', 'hasnote', 'hasresultnote',
'isallocatable', 'isarray', 'isarrayofstrings',
'ischaracter', 'ischaracterarray', 'ischaracter_or_characterarray',
'iscomplex',
'iscomplex', 'iscstyledirective',
'iscomplexarray', 'iscomplexfunction', 'iscomplexfunction_warn',
'isdouble', 'isdummyroutine', 'isexternal', 'isfunction',
'isfunction_wrap', 'isint1', 'isint1array', 'isinteger', 'isintent_aux',
@@ -423,6 +423,11 @@ def isrequired(var):
return not isoptional(var) and isintent_nothide(var)
def iscstyledirective(f2py_line):
directives = {"callstatement", "callprotoargument", "pymethoddef"}
return any(directive in f2py_line.lower() for directive in directives)
def isintent_in(var):
if 'intent' not in var:
return 1