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

@@ -510,11 +510,9 @@ def readfortrancode(ffile, dowithline=show, istop=1):
origfinalline = ''
else:
if localdolowercase:
# lines with intent() should be lowered otherwise
# TestString::test_char fails due to mixed case
# f2py directives without intent() should be left untouched
# gh-2547, gh-27697, gh-26681
finalline = ll.lower() if "intent" in ll.lower() or not is_f2py_directive else ll
# only skip lowering for C style constructs
# gh-2547, gh-27697, gh-26681, gh-28014
finalline = ll.lower() if not (is_f2py_directive and iscstyledirective(ll)) else ll
else:
finalline = ll
origfinalline = ll