diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2007-07-03 08:02:33 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2007-07-03 08:02:33 +0000 |
| commit | 68eb0aebb8bccd3f151170f2a4430da89254cf24 (patch) | |
| tree | d917f726bfa7458dcf7b1a1d8d80a516da1b2590 | |
| parent | e496531dc639607f4102b3f8119ef0438a6a1c92 (diff) | |
get_node_info_with_swig may not be used by the python binding, but it sure is
used by other bindings (and if we were only concerned by python we wouldn't use
swig).
| -rw-r--r-- | swig/Lasso.i | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i index 00aebb3e..a12bacbb 100644 --- a/swig/Lasso.i +++ b/swig/Lasso.i @@ -548,17 +548,17 @@ static swig_type_info *dynamic_cast_node(void **nodePointer) { return NULL; } -/* Not used. Can be removed ? */ - -/* static node_info *get_node_info_with_swig(swig_type_info *swig) { */ -/* node_info *info; */ +#ifndef SWIGPYTHON +static node_info *get_node_info_with_swig(swig_type_info *swig) { + node_info *info; -/* for (info = node_infos; info->swig; info++) { */ -/* if (info->swig == swig) */ -/* return info; */ -/* } */ -/* return NULL; */ -/* } */ + for (info = node_infos; info->swig; info++) { + if (info->swig == swig) + return info; + } + return NULL; +} +#endif #if defined(PHP_VERSION) && ! defined(PHP_VERSION_ID) static void set_node_info(node_info *info, char *name, char *superName, swig_type_info *swig, |
