venv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user