Fixed import directive, string access segv bug, SWIG_Octave_{Get,Set}Module bug, and added partial support for boost pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8350c724f5
commit
cb131bfeb9
6 changed files with 321 additions and 22 deletions
|
|
@ -161,6 +161,9 @@ public:
|
|||
}
|
||||
|
||||
virtual int importDirective(Node *n) {
|
||||
String *modname = Getattr(n, "module");
|
||||
if (modname)
|
||||
Printf(f_init, "feval(\"%s\",octave_value_list(),0);\n", modname);
|
||||
return Language::importDirective(n);
|
||||
}
|
||||
|
||||
|
|
@ -554,7 +557,7 @@ public:
|
|||
return SWIG_ERROR;
|
||||
|
||||
// This is a bug, due to the fact that swig_type -> octave_class mapping
|
||||
// is n-to-1.
|
||||
// is 1-to-n.
|
||||
static Hash *emitted = NewHash();
|
||||
String *mangled_classname = Swig_name_mangle(Getattr(n, "name"));
|
||||
if (Getattr(emitted, mangled_classname)) {
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ public:
|
|||
/* Runtime is C++ based, so extern "C" header section */
|
||||
void enable_cplus_runtime_mode();
|
||||
|
||||
/* Returns the cpp_runtime mode */
|
||||
/* Returns the cplus_runtime mode */
|
||||
int cplus_runtime_mode();
|
||||
|
||||
/* Allow director related code generation */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue