Merge branch 'master' of git://github.com/swig/swig
This commit is contained in:
commit
32bb4dcd6d
14 changed files with 31 additions and 21 deletions
|
|
@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
|
||||||
Version 3.0.6 (in progress)
|
Version 3.0.6 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2015-03-12: olly
|
||||||
|
-DSWIG_DIRECTOR_STATIC is now supported for all languages with
|
||||||
|
director support, not only Python and PHP.
|
||||||
|
|
||||||
2015-03-02: ianlancetaylor
|
2015-03-02: ianlancetaylor
|
||||||
[Go] Add -cgo option, required for Go versions 1.5 and
|
[Go] Add -cgo option, required for Go versions 1.5 and
|
||||||
later.
|
later.
|
||||||
|
|
|
||||||
15
Lib/director_common.swg
Normal file
15
Lib/director_common.swg
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* director_common.swg
|
||||||
|
*
|
||||||
|
* This file contains support for director classes which is common between
|
||||||
|
* languages.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
||||||
|
'Swig' namespace. This could be useful for multi-modules projects.
|
||||||
|
*/
|
||||||
|
#ifdef SWIG_DIRECTOR_STATIC
|
||||||
|
/* Force anonymous (static) namespace */
|
||||||
|
#define Swig
|
||||||
|
#endif
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* director.swg
|
* director.swg
|
||||||
*
|
*
|
||||||
* This file contains support for director classes so that D proxy
|
* This file contains support for director classes so that Octave proxy
|
||||||
* methods can be called from C++.
|
* methods can be called from C++.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,15 +12,6 @@
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
/*
|
|
||||||
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
|
||||||
'Swig' namespace. This could be useful for multi-modules projects.
|
|
||||||
*/
|
|
||||||
#ifdef SWIG_DIRECTOR_STATIC
|
|
||||||
/* Force anonymous (static) namespace */
|
|
||||||
#define Swig
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Swig {
|
namespace Swig {
|
||||||
|
|
||||||
/* memory handler */
|
/* memory handler */
|
||||||
|
|
|
||||||
|
|
@ -40,16 +40,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
|
||||||
'Swig' namespace. This could be useful for multi-modules projects.
|
|
||||||
*/
|
|
||||||
#ifdef SWIG_DIRECTOR_STATIC
|
|
||||||
/* Force anonymous (static) namespace */
|
|
||||||
#define Swig
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
|
Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
|
||||||
native C++ RTTI and dynamic_cast<>. But be aware that directors
|
native C++ RTTI and dynamic_cast<>. But be aware that directors
|
||||||
|
|
|
||||||
|
|
@ -418,6 +418,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
// Generate the intermediary class
|
// Generate the intermediary class
|
||||||
|
|
|
||||||
|
|
@ -508,6 +508,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (before %header section).
|
// Insert director runtime into the f_runtime file (before %header section).
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -481,6 +481,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
// Generate the intermediary class
|
// Generate the intermediary class
|
||||||
|
|
|
||||||
|
|
@ -325,6 +325,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -228,8 +228,10 @@ public:
|
||||||
if (Len(docs))
|
if (Len(docs))
|
||||||
emit_doc_texinfo();
|
emit_doc_texinfo();
|
||||||
|
|
||||||
if (directorsEnabled())
|
if (directorsEnabled()) {
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
|
}
|
||||||
|
|
||||||
Printf(f_init, "return true;\n}\n");
|
Printf(f_init, "return true;\n}\n");
|
||||||
Printf(s_global_tab, "{0,0,0,0,0}\n};\n");
|
Printf(s_global_tab, "{0,0,0,0,0}\n};\n");
|
||||||
|
|
|
||||||
|
|
@ -470,6 +470,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -473,6 +473,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime
|
// Insert director runtime
|
||||||
|
Swig_insert_file("director_common.swg", s_header);
|
||||||
Swig_insert_file("director.swg", s_header);
|
Swig_insert_file("director.swg", s_header);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -967,6 +967,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1171,6 +1171,7 @@ public:
|
||||||
|
|
||||||
if (directorsEnabled()) {
|
if (directorsEnabled()) {
|
||||||
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
// Insert director runtime into the f_runtime file (make it occur before %header section)
|
||||||
|
Swig_insert_file("director_common.swg", f_runtime);
|
||||||
Swig_insert_file("director.swg", f_runtime);
|
Swig_insert_file("director.swg", f_runtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue