Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
0b26bfdf
Commit
0b26bfdf
authored
Aug 25, 2015
by
Thomas Jahns
🤸
Browse files
Fix line counting in F77 interface generator.
parent
8bb25c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/make_fint.c
View file @
0b26bfdf
...
...
@@ -783,8 +783,11 @@ static void fortran_interface(char *fname, char *fnameinc, char *fnameint,
{
fprintf
(
stderr
,
"Found conditional C++ block, skipping to #else
\n
"
);
while
((
lineLen
=
getline
(
&
line
,
&
lineBufSize
,
fpin
))
>=
0
)
if
(
!
regexec
(
&
cppElseRE
,
line
,
maxMatch
,
reMatch
,
0
))
break
;
{
++
lineno
;
if
(
!
regexec
(
&
cppElseRE
,
line
,
maxMatch
,
reMatch
,
0
))
break
;
}
}
else
if
(
detectComment
(
&
line
,
&
lineLen
,
&
lineBufSize
,
maxMatch
,
reMatch
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment