Hi Thomas,
Am 30.07.22 um 09:46 schrieb Thomas Koenig via Fortran:
Hi Harald,
This introduces the helper function gfc_match_next_char, which is
your second option.
I would be a little bit concerned about compilation times
with the additional function call overhead.
the function it replaces (gfc_match_char) is also in a different
file, thus the overhead is at least neutral. Given that the latter
has an additional call to gfc_gobble_whitespace(), we actually get
better...
The function is used only in one place; would it make
sense to put it into primary.cc and declare it static?
Can do that.
Best regards
Thomas
Thanks,
Harald