swig: don't override SWIG_name anymore
It doesn't appear to be necessary and it is somewhat odd. I'm pretty sure that the package parameter to %module does whatever this might have been before. It's necessary in future revisions anyway.
This commit is contained in:
parent
9e45ada171
commit
18ef1bcfa2
6 changed files with 6 additions and 41 deletions
|
@ -29,7 +29,7 @@
|
|||
* Steve Reinhardt
|
||||
*/
|
||||
|
||||
%module core
|
||||
%module(package="m5.internal") core
|
||||
|
||||
%{
|
||||
#include "python/swig/pyobject.hh"
|
||||
|
@ -85,8 +85,3 @@ bool want_warn, warn_verbose;
|
|||
bool want_info, info_verbose;
|
||||
bool want_hack, hack_verbose;
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._core"
|
||||
%}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module debug
|
||||
%module(package="m5.internal") debug
|
||||
|
||||
%{
|
||||
#include "base/types.hh"
|
||||
|
@ -38,9 +38,3 @@
|
|||
%include "stdint.i"
|
||||
%include "base/types.hh"
|
||||
%include "sim/debug.hh"
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._debug"
|
||||
%}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module event
|
||||
%module(package="m5.internal") event
|
||||
|
||||
%{
|
||||
#include "base/types.hh"
|
||||
|
@ -102,9 +102,3 @@ class SimLoopExitEvent : public Event
|
|||
}
|
||||
SimLoopExitEvent *simulate(Tick num_cycles = MaxTick);
|
||||
void exitSimLoop(const std::string &message, int exit_code);
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._event"
|
||||
%}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module random
|
||||
%module(package="m5.internal") random
|
||||
|
||||
%include "stdint.i"
|
||||
|
||||
|
@ -47,9 +47,3 @@ seed(uint64_t seed)
|
|||
%inline %{
|
||||
extern void seed(uint64_t seed);
|
||||
%}
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._random"
|
||||
%}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module stats
|
||||
%module(package="m5.internal") stats
|
||||
|
||||
%include "std_list.i"
|
||||
%include "std_string.i"
|
||||
|
@ -60,9 +60,3 @@ void reset();
|
|||
std::list<Info *> &statsList();
|
||||
|
||||
/* namespace Stats */ }
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._stats"
|
||||
%}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* Authors: Nathan Binkert
|
||||
*/
|
||||
|
||||
%module trace
|
||||
%module(package="m5.internal") trace
|
||||
|
||||
%{
|
||||
#include "base/trace.hh"
|
||||
|
@ -68,9 +68,3 @@ extern void clear(const char *string);
|
|||
extern void ignore(const char *expr);
|
||||
extern bool enabled;
|
||||
%}
|
||||
|
||||
%wrapper %{
|
||||
// fix up module name to reflect the fact that it's inside the m5 package
|
||||
#undef SWIG_name
|
||||
#define SWIG_name "m5.internal._trace"
|
||||
%}
|
||||
|
|
Loading…
Reference in a new issue