@@ -647,8 +647,8 @@ class FORTRAN : public Language {
647
647
void write_module (String *filename);
648
648
649
649
void replace_fclassname (SwigType *type, String *tm);
650
- String *get_fortran_name (Node *n, String *symname = NULL );
651
- String *get_fclassname (SwigType *classnametype);
650
+ String *get_fsymname (Node *n, String *symname = NULL );
651
+ String *get_proxyname (SwigType *classnametype);
652
652
String *get_fenumname (SwigType *classnametype);
653
653
bool is_wrapped_class (Node *n);
654
654
@@ -2026,7 +2026,7 @@ Wrapper *FORTRAN::proxyfuncWrapper(Node *n) {
2026
2026
* Generate wrappers for a %fortranbindc global variable.
2027
2027
*/
2028
2028
int FORTRAN::bindcvarWrapper (Node *n) {
2029
- String *fsymname = this ->get_fortran_name (n);
2029
+ String *fsymname = this ->get_fsymname (n);
2030
2030
if (!fsymname) {
2031
2031
return SWIG_NOWRAP;
2032
2032
}
@@ -2245,7 +2245,7 @@ int FORTRAN::classDeclaration(Node *n) {
2245
2245
2246
2246
if (!GetFlag (n, " feature:onlychildren" )) {
2247
2247
// Set up Fortran proxy name, adding to symbol table (even if the class is being imported)
2248
- fsymname = this ->get_fortran_name (n);
2248
+ fsymname = this ->get_fsymname (n);
2249
2249
// Return if it's a duplicate
2250
2250
if (!fsymname)
2251
2251
return SWIG_NOWRAP;
@@ -2658,7 +2658,7 @@ int FORTRAN::enumDeclaration(Node *n) {
2658
2658
// Get symname for this enum, prepending with embedded class name if needed
2659
2659
String *scoped_symname = class_symname ? NewStringf (" %s_%s" , class_symname, symname) : Copy (symname);
2660
2660
2661
- fsymname = this ->get_fortran_name (n, scoped_symname);
2661
+ fsymname = this ->get_fsymname (n, scoped_symname);
2662
2662
Delete (scoped_symname);
2663
2663
if (!fsymname)
2664
2664
return SWIG_NOWRAP;
@@ -2847,7 +2847,7 @@ int FORTRAN::constantWrapper(Node *n) {
2847
2847
value = Getattr (n, " value" );
2848
2848
}
2849
2849
2850
- String *fsymname = this ->get_fortran_name (n);
2850
+ String *fsymname = this ->get_fsymname (n);
2851
2851
if (!fsymname) {
2852
2852
return SWIG_NOWRAP;
2853
2853
}
@@ -2977,15 +2977,15 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
2977
2977
SwigType *strippedtype = SwigType_strip_qualifiers (resolvedtype);
2978
2978
2979
2979
if (Strstr (tm, " $fclassname" )) {
2980
- if (String *repl = this ->get_fclassname (strippedtype)) {
2980
+ if (String *repl = this ->get_proxyname (strippedtype)) {
2981
2981
Replaceall (tm, " $fclassname" , repl);
2982
2982
}
2983
2983
}
2984
2984
if (Strstr (tm, " $*fclassname" )) {
2985
2985
String *repltype = Copy (strippedtype);
2986
2986
Delete (SwigType_pop (repltype));
2987
2987
if (Len (repltype) > 0 ) {
2988
- if (String *repl = this ->get_fclassname (repltype)) {
2988
+ if (String *repl = this ->get_proxyname (repltype)) {
2989
2989
Replaceall (tm, " $*fclassname" , repl);
2990
2990
}
2991
2991
}
@@ -2994,7 +2994,7 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
2994
2994
if (Strstr (tm, " $&fclassname" )) {
2995
2995
String *repltype = Copy (strippedtype);
2996
2996
SwigType_add_pointer (repltype);
2997
- if (String *repl = this ->get_fclassname (repltype)) {
2997
+ if (String *repl = this ->get_proxyname (repltype)) {
2998
2998
Replaceall (tm, " $&fclassname" , repl);
2999
2999
}
3000
3000
Delete (repltype);
@@ -3027,7 +3027,7 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
3027
3027
*
3028
3028
* If the resulting symbol already exists (SWIG error), we return NULL.
3029
3029
*/
3030
- String *FORTRAN::get_fortran_name (Node *n, String *symname) {
3030
+ String *FORTRAN::get_fsymname (Node *n, String *symname) {
3031
3031
String *fsymname = Getattr (n, " fortran:name" );
3032
3032
if (!fsymname) {
3033
3033
// Create fortran identifier from symname
@@ -3049,12 +3049,12 @@ String *FORTRAN::get_fortran_name(Node *n, String *symname) {
3049
3049
3050
3050
/* ------------------------------------------------------------------------- */
3051
3051
3052
- String *FORTRAN::get_fclassname (SwigType *classnametype) {
3052
+ String *FORTRAN::get_proxyname (SwigType *classnametype) {
3053
3053
String *replacementname = NULL ;
3054
3054
Node *n = this ->classLookup (classnametype);
3055
3055
3056
3056
if (n) {
3057
- replacementname = this ->get_fortran_name (n);
3057
+ replacementname = this ->get_fsymname (n);
3058
3058
} else {
3059
3059
replacementname = create_mangled_fname (classnametype);
3060
3060
@@ -3088,7 +3088,7 @@ String *FORTRAN::get_fenumname(SwigType *classnametype) {
3088
3088
3089
3089
// The enum name is only available if the 'missing' flag isn't set and we've marked the enum as 'declared'
3090
3090
if (is_wrapped_enum (n)) {
3091
- replacementname = this ->get_fortran_name (n);
3091
+ replacementname = this ->get_fsymname (n);
3092
3092
} else {
3093
3093
replacementname = create_mangled_fname (classnametype);
3094
3094
0 commit comments