summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrant K. Kyser <brantkyser@gmail.com>2013-01-08 21:28:13 -0600
committerBrant K. Kyser <brantkyser@gmail.com>2013-01-08 21:28:13 -0600
commit6cb5b5487f414fb20524e557210669fbb0609a4b (patch)
tree7001347e764d22be37113bdf0f02498c4503e2a4
parentc62cd63f713aeeda9dd938a3dc1311f8d2f14e06 (diff)
downloadswig-6cb5b5487f414fb20524e557210669fbb0609a4b.tar.gz
Use NSPACE_SEPARATOR rather than liter string for package seperator.
-rw-r--r--Source/Modules/lang.cxx2
-rw-r--r--Source/Swig/cwrap.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx
index 7468774a3..dc21d7f96 100644
--- a/Source/Modules/lang.cxx
+++ b/Source/Modules/lang.cxx
@@ -357,7 +357,7 @@ Language::~Language() {
const char *attrib = "director:classname";
String *classname = Getattr(n, "sym:name");
- Replace(nspace, ".", "_", DOH_REPLACE_ANY);
+ Replace(nspace, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
if (Len(nspace) > 0)
dirclassname = NewStringf("SwigDirector_%s_%s", nspace, classname);
else
diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c
index c4c4621a1..38787fc63 100644
--- a/Source/Swig/cwrap.c
+++ b/Source/Swig/cwrap.c
@@ -857,7 +857,7 @@ int Swig_MethodToFunction(Node *n, const_String_or_char_ptr nspace, String *clas
String *qualifier = Getattr(n, "qualifier");
String *directorScope = NewString(nspace);
- Replace(directorScope, ".", "_", DOH_REPLACE_ANY);
+ Replace(directorScope, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
/* If smart pointer without const overload or mutable method, change self dereferencing */
if (flags & CWRAP_SMART_POINTER) {
@@ -1116,7 +1116,7 @@ int Swig_ConstructorToFunction(Node *n, const_String_or_char_ptr nspace, String
int use_director;
String *directorScope = NewString(nspace);
- Replace(directorScope, ".", "_", DOH_REPLACE_ANY);
+ Replace(directorScope, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
use_director = Swig_directorclass(n);