moved registration routine and use swig_name_get
This commit is contained in:
parent
5f865bdc7e
commit
b4c02b3267
1 changed files with 2 additions and 7 deletions
|
|
@ -781,6 +781,8 @@ int R::top(Node *n) {
|
||||||
Swig_register_filebyname("snamespace", s_namespace);
|
Swig_register_filebyname("snamespace", s_namespace);
|
||||||
Printf(s_namespace, "useDynLib(%s)\n", DllName);
|
Printf(s_namespace, "useDynLib(%s)\n", DllName);
|
||||||
}
|
}
|
||||||
|
// Register the naming functions
|
||||||
|
Swig_name_register("wrapper", "R_swig_%f");
|
||||||
|
|
||||||
/* Associate the different streams with names so that they can be used in %insert directives by the
|
/* Associate the different streams with names so that they can be used in %insert directives by the
|
||||||
typemap code. */
|
typemap code. */
|
||||||
|
|
@ -1890,10 +1892,6 @@ int R::functionWrapper(Node *n) {
|
||||||
|
|
||||||
String *tmp = NewString(isSet ? Swig_name_set(NSPACE_TODO, class_name) : Swig_name_get(NSPACE_TODO, class_name));
|
String *tmp = NewString(isSet ? Swig_name_set(NSPACE_TODO, class_name) : Swig_name_get(NSPACE_TODO, class_name));
|
||||||
|
|
||||||
if (debugMode) {
|
|
||||||
Printf(stdout, "functionWrapper TMP: %s\n", tmp);
|
|
||||||
}
|
|
||||||
|
|
||||||
List *memList = Getattr(ClassMemberTable, tmp);
|
List *memList = Getattr(ClassMemberTable, tmp);
|
||||||
if(!memList) {
|
if(!memList) {
|
||||||
memList = NewList();
|
memList = NewList();
|
||||||
|
|
@ -2927,9 +2925,6 @@ void R::main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
/// copyToR copyToC functions.
|
/// copyToR copyToC functions.
|
||||||
|
|
||||||
// Register the naming functions
|
|
||||||
Swig_name_register("wrapper", "R_swig_%f");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue