Skip to content

Commit 845b7e6

Browse files
committed
Fix return value and add intent(in) to bindc values
1 parent 909ee23 commit 845b7e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/fortran/fundamental.swg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ SWIGINTERN SwigArrayWrapper SwigArrayWrapper_uninitialized() {
148148
%{FTYPE%}
149149
%typemap(ftype, in={FTYPE, intent(in)}) CTYPE
150150
%{FTYPE%}
151-
%typemap(bindc, in={FTYPE, value}) CTYPE
151+
%typemap(bindc, in={FTYPE, intent(in), value}) CTYPE
152152
%{FTYPE%}
153153
%typemap(in) CTYPE = FORTRAN_INTRINSIC_TYPE;
154154
%typemap(out) CTYPE = FORTRAN_INTRINSIC_TYPE;

Lib/fortran/funptrs.swg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"$1_ltype"
1111
%typemap(imtype, in="type(C_FUNPTR), value") SWIGTYPE (*)(ANY)
1212
"type(C_FUNPTR)"
13-
%typemap(ftype) SWIGTYPE (*)(ANY)
14-
"procedure($*fortranclassname)"
13+
%typemap(ftype, in="procedure($*fortranclassname)") SWIGTYPE (*)(ANY)
14+
"procedure($*fortranclassname), pointer"
1515
%typemap(bindc, in="type(C_FUNPTR), value") SWIGTYPE (*)(ANY)
1616
"type(C_FUNPTR)"
1717

0 commit comments

Comments
 (0)