Skip to content
Snippets Groups Projects
Commit 1dd5837d authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Remove special case.

* The f77name of void returning functions is the empty string anyway.
parent 2d481070
No related branches found
No related tags found
No related merge requests found
......@@ -716,10 +716,9 @@ static void fortran_interface(char *fname, char *fnameinc, char *fnameint,
fdoc[nfdoc].text = NULL;
fdoc[nfdoc].fname = strdup(funcname);
if ( functype == ISVOID )
nch = sprintf(xline, "SUBROUTINE %s", xname);
else
nch = sprintf(xline, "%s FUNCTION %s", funArgSym[functype].f77name, xname);
nch = sprintf(xline, "%s%s %s", funArgSym[functype].f77name,
functype == ISVOID ? "SUBROUTINE" : " FUNCTION",
xname);
if ( (funcargc == 1 && funcargtype[0] == ISVOID) ) funcargc = 0;
if (funcargc) strcat(xline, " ("), nch += 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment