Skip to content

Commit ff77691

Browse files
committed
Tweak function names
1 parent eaf0313 commit ff77691

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Source/Modules/fortran.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ class FORTRAN : public Language {
647647
void write_module(String *filename);
648648

649649
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);
652652
String *get_fenumname(SwigType *classnametype);
653653
bool is_wrapped_class(Node *n);
654654

@@ -2026,7 +2026,7 @@ Wrapper *FORTRAN::proxyfuncWrapper(Node *n) {
20262026
* Generate wrappers for a %fortranbindc global variable.
20272027
*/
20282028
int FORTRAN::bindcvarWrapper(Node *n) {
2029-
String *fsymname = this->get_fortran_name(n);
2029+
String *fsymname = this->get_fsymname(n);
20302030
if (!fsymname) {
20312031
return SWIG_NOWRAP;
20322032
}
@@ -2245,7 +2245,7 @@ int FORTRAN::classDeclaration(Node *n) {
22452245

22462246
if (!GetFlag(n, "feature:onlychildren")) {
22472247
// 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);
22492249
// Return if it's a duplicate
22502250
if (!fsymname)
22512251
return SWIG_NOWRAP;
@@ -2658,7 +2658,7 @@ int FORTRAN::enumDeclaration(Node *n) {
26582658
// Get symname for this enum, prepending with embedded class name if needed
26592659
String *scoped_symname = class_symname ? NewStringf("%s_%s", class_symname, symname) : Copy(symname);
26602660

2661-
fsymname = this->get_fortran_name(n, scoped_symname);
2661+
fsymname = this->get_fsymname(n, scoped_symname);
26622662
Delete(scoped_symname);
26632663
if (!fsymname)
26642664
return SWIG_NOWRAP;
@@ -2847,7 +2847,7 @@ int FORTRAN::constantWrapper(Node *n) {
28472847
value = Getattr(n, "value");
28482848
}
28492849

2850-
String *fsymname = this->get_fortran_name(n);
2850+
String *fsymname = this->get_fsymname(n);
28512851
if (!fsymname) {
28522852
return SWIG_NOWRAP;
28532853
}
@@ -2977,15 +2977,15 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
29772977
SwigType *strippedtype = SwigType_strip_qualifiers(resolvedtype);
29782978

29792979
if (Strstr(tm, "$fclassname")) {
2980-
if (String *repl = this->get_fclassname(strippedtype)) {
2980+
if (String *repl = this->get_proxyname(strippedtype)) {
29812981
Replaceall(tm, "$fclassname", repl);
29822982
}
29832983
}
29842984
if (Strstr(tm, "$*fclassname")) {
29852985
String *repltype = Copy(strippedtype);
29862986
Delete(SwigType_pop(repltype));
29872987
if (Len(repltype) > 0) {
2988-
if (String *repl = this->get_fclassname(repltype)) {
2988+
if (String *repl = this->get_proxyname(repltype)) {
29892989
Replaceall(tm, "$*fclassname", repl);
29902990
}
29912991
}
@@ -2994,7 +2994,7 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
29942994
if (Strstr(tm, "$&fclassname")) {
29952995
String *repltype = Copy(strippedtype);
29962996
SwigType_add_pointer(repltype);
2997-
if (String *repl = this->get_fclassname(repltype)) {
2997+
if (String *repl = this->get_proxyname(repltype)) {
29982998
Replaceall(tm, "$&fclassname", repl);
29992999
}
30003000
Delete(repltype);
@@ -3027,7 +3027,7 @@ void FORTRAN::replace_fclassname(SwigType *intype, String *tm) {
30273027
*
30283028
* If the resulting symbol already exists (SWIG error), we return NULL.
30293029
*/
3030-
String *FORTRAN::get_fortran_name(Node *n, String *symname) {
3030+
String *FORTRAN::get_fsymname(Node *n, String *symname) {
30313031
String *fsymname = Getattr(n, "fortran:name");
30323032
if (!fsymname) {
30333033
// Create fortran identifier from symname
@@ -3049,12 +3049,12 @@ String *FORTRAN::get_fortran_name(Node *n, String *symname) {
30493049

30503050
/* ------------------------------------------------------------------------- */
30513051

3052-
String *FORTRAN::get_fclassname(SwigType *classnametype) {
3052+
String *FORTRAN::get_proxyname(SwigType *classnametype) {
30533053
String *replacementname = NULL;
30543054
Node *n = this->classLookup(classnametype);
30553055

30563056
if (n) {
3057-
replacementname = this->get_fortran_name(n);
3057+
replacementname = this->get_fsymname(n);
30583058
} else {
30593059
replacementname = create_mangled_fname(classnametype);
30603060

@@ -3088,7 +3088,7 @@ String *FORTRAN::get_fenumname(SwigType *classnametype) {
30883088

30893089
// The enum name is only available if the 'missing' flag isn't set and we've marked the enum as 'declared'
30903090
if (is_wrapped_enum(n)) {
3091-
replacementname = this->get_fortran_name(n);
3091+
replacementname = this->get_fsymname(n);
30923092
} else {
30933093
replacementname = create_mangled_fname(classnametype);
30943094

0 commit comments

Comments
 (0)