summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-24 19:39:34 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-24 19:39:34 +0100
commita5b4a4389c45f90378bffdfaea042a75f9748a66 (patch)
tree1996ee10b949ff9f5cce205fdb02d07e326cf455 /Source
parent4a8f7a9c46a3fda13266a350bc05baabcb90f93e (diff)
parentd238d109c95f2245f2f68b53d054bd28d7e95fb0 (diff)
downloadswig-a5b4a4389c45f90378bffdfaea042a75f9748a66.tar.gz
Merge branch 'rfix-cleaned-up'
* rfix-cleaned-up: Whitespace cleanup in R testcase R shared_ptr fixes align implementation of smartname to r class name enable test for pointerreftest fixed by 752b7e8 switched implementation reference from java to python fixes from code review enable li_boost_shared_ptr in r-test-suite typo in comment fix naming of RClass when template of a shared_ptr
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/r.cxx34
1 files changed, 0 insertions, 34 deletions
diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx
index c51198fed..e1fd422dd 100644
--- a/Source/Modules/r.cxx
+++ b/Source/Modules/r.cxx
@@ -2088,15 +2088,6 @@ int R::functionWrapper(Node *n) {
/*If the user gave us something to convert the result in */
if ((tm = Swig_typemap_lookup("scoerceout", n, Swig_cresult_name(), sfun))) {
Replaceall(tm,"$result","ans");
- if (constructor) {
- Node * parent = Getattr(n, "parentNode");
- String * smartname = Getattr(parent, "feature:smartptr");
- if (smartname) {
- smartname = getRClassName(smartname, 1, 1);
- Replaceall(tm, "$R_class", smartname);
- Delete(smartname);
- }
- }
if (debugMode) {
Printf(stdout, "Calling replace B: %s, %s, %s\n", Getattr(n, "type"), Getattr(n, "sym:name"), getNSpace());
}
@@ -2322,31 +2313,6 @@ void R::registerClass(Node *n) {
Printf(s_classes, "setClass('%s', contains = %s)\n", sname, base);
Delete(base);
- String *smartptr = Getattr(n, "feature:smartptr");
- if (smartptr) {
- List *l = Getattr(n, "bases");
- SwigType *spt = Swig_cparse_type(smartptr);
- String *smart = SwigType_typedef_resolve_all(spt);
- String *smart_rname = SwigType_manglestr(smart);
- Printf(s_classes, "setClass('_p%s', contains = c('%s'", smart_rname, sname);
- Delete(spt);
- Delete(smart);
- Delete(smart_rname);
- for(int i = 0; i < Len(l); i++) {
- Node * b = Getitem(l, i);
- smartptr = Getattr(b, "feature:smartptr");
- if (smartptr) {
- spt = Swig_cparse_type(smartptr);
- smart = SwigType_typedef_resolve_all(spt);
- smart_rname = SwigType_manglestr(smart);
- Printf(s_classes, ", '_p%s'", smart_rname);
- Delete(spt);
- Delete(smart);
- Delete(smart_rname);
- }
- }
- Printf(s_classes, "))\n");
- }
}
}