File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 7
7
%warnfilter(SWIGWARN_PARSE_KEYWORD) pass; // 'pass' is a python keyword, renaming to '_pass'
8
8
%warnfilter(SWIGWARN_PARSE_KEYWORD) alias; // 'alias' is a D keyword, renaming to '_alias'
9
9
%warnfilter(SWIGWARN_PARSE_KEYWORD) rescue; // 'rescue' is a ruby keyword, renaming to 'C_rescue'
10
+ %warnfilter(SWIGWARN_PARSE_KEYWORD) write; // 'write' is a fortran keyword, just warn
11
+ %warnfilter(SWIGWARN_LANG_IDENTIFIER) _123_leading_underscore; // leading underscores and numbers are illegal in fortran
12
+
13
+ // Silence warning for renamed identifiers
14
+ %warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_PARSE_KEYWORD) delegate;
15
+ %warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_PARSE_KEYWORD) pass;
16
+ %warnfilter(SWIGWARN_LANG_IDENTIFIER,SWIGWARN_PARSE_KEYWORD) alias;
10
17
11
18
%inline %{
12
19
const char * clone () { return " clone" ; }
13
20
const char * delegate () { return " delegate" ; }
14
21
const char * pass () { return " pass" ; }
15
22
const char * alias () { return " alias" ; }
16
23
const char * rescue () { return " rescue" ; }
24
+ const char * write () { return " write" ; }
25
+ const char * _123_leading_underscore () { return " _123_leading_underscore" ; }
17
26
%}
18
27
Original file line number Diff line number Diff line change 18
18
19
19
%include <csharp/csharpkw.swg>
20
20
%include <d/dkw.swg>
21
+ %include <fortran/fortrankw.swg>
21
22
%include <go/gokw.swg>
22
23
%include <java/javakw.swg>
23
24
%include <lua/luakw.swg>
Original file line number Diff line number Diff line change 34
34
%keywordwarn("'release' is reserved for SWIG destructors",
35
35
rename="release_") "*::release";
36
36
37
- #ifdef SWIGFORTRAN
37
+ #ifdef %fortransubroutine
38
38
/* Always treat return values from assignment as optional, since it's usually
39
39
* idiomatic to `return *this;` as a reference that is often ignored by the
40
40
* calling code. Making the function a subroutine means being able to use "call"
You can’t perform that action at this time.
0 commit comments