Revert "Octave: remove unused function SwigOctType::help_text()"

This reverts commit 8c7e578279.

Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
This commit is contained in:
William S Fulton 2014-10-09 19:33:48 +01:00
commit 851f122bfe
2 changed files with 13 additions and 0 deletions

View file

@ -329,6 +329,18 @@ long SwigOctType::swig_this() const
return (long) types[0].second.ptr;
}
const char* SwigOctType::help_text() const
{
if (!types.size()) {
return 0;
}
if (!types[0].first->clientdata) {
return 0;
}
SwigOctClass* c = (SwigOctClass*) types[0].first->clientdata;
return c->constructor_doc;
}
std::string SwigOctType::swig_type_name() const
{
// * need some way to manually name subclasses.

View file

@ -317,6 +317,7 @@ public:
static bool dispatch_global_op(const std::string& symbol, const octave_value_list& args, octave_value& ret);
static octave_value dispatch_unary_op(const octave_base_value& x, const char* op_name);
octave_base_value* empty_clone() const;
const char* help_text() const;
void incref();
bool is_defined() const;
virtual bool is_map() const;