From ffe2a112943aa33d11dd2b2c8b4ed40f31f334c8 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 7 May 2012 17:02:00 +0000 Subject: [PATCH] Compile time fixes for C module since merge from trunk From: William S Fulton git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@13039 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/c.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/c.cxx b/Source/Modules/c.cxx index 64331b8cf..3d94645a2 100644 --- a/Source/Modules/c.cxx +++ b/Source/Modules/c.cxx @@ -1100,7 +1100,7 @@ ready: Setattr(n, "c:stype", stype); // modify the constructor name - constr_name = Swig_name_construct(newclassname); + constr_name = Swig_name_construct(NSPACE_TODO, newclassname); Setattr(n, "name", constr_name); Setattr(n, "sym:name", constr_name); @@ -1157,7 +1157,7 @@ ready: Setattr(n, "c:stype", stype); // modify the constructor name - constr_name = Swig_name_copyconstructor(newclassname); + constr_name = Swig_name_copyconstructor(NSPACE_TODO, newclassname); Setattr(n, "name", constr_name); Setattr(n, "sym:name", constr_name); @@ -1205,7 +1205,7 @@ ready: Printf(sobj_name, "SwigObj"); ctype = Copy(sobj_name); SwigType_add_pointer(ctype); - p = NewParm(ctype, "self"); + p = NewParm(ctype, "self", n); Setattr(p, "lname", "arg1"); stype = Copy(newclassname); SwigType_add_pointer(stype); @@ -1215,7 +1215,7 @@ ready: Setattr(n, "type", "void"); // modify the destructor name - destr_name = Swig_name_destroy(newclassname); + destr_name = Swig_name_destroy(NSPACE_TODO, newclassname); Setattr(n, "sym:name", destr_name); // create action code