Mercurial > hg > octave-lyh
changeset 3303:76f6a531f5b8
[project @ 1999-10-20 06:44:59 by jwe]
author | jwe |
---|---|
date | Wed, 20 Oct 1999 06:45:00 +0000 |
parents | bac635def477 |
children | d30a8825bf15 |
files | examples/make_int.cc src/help.cc |
diffstat | 2 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/make_int.cc +++ b/examples/make_int.cc @@ -285,6 +285,19 @@ { octave_value_list retval; + // Might be better to use + // + // args(0).type_name () == octave_integer::static_type_id () + // + // But there are some problems with doing that if this function is + // in the same shared library as the one that defines the class. + // In that case, at least some systems will create two static data + // members for t_id. To fix that problem, we need a different way + // of loading multiple functions from a single shared library... + // (Actually, I think this will be fixed when .oct file reloading is + // implemented for 2.1.x. It was done for 2.0.x, but the changes + // have not been carried over to the 2.1.x source tree yet. --jwe) + if (args(0).type_name () == "integer") { // At this point, we know we have a handle for an octave_integer
--- a/src/help.cc +++ b/src/help.cc @@ -706,15 +706,16 @@ ostrstream buf; buf << "sed 's/^[#%]+ *//' | makeinfo" - << " -D VERSION=\"" << OCTAVE_VERSION << "\"" - << " -D OCTAVE_HOME=\"" << OCTAVE_PREFIX << "\"" - << " -D TARGETHOSTTYPE=\"" << CANONICAL_HOST_TYPE << "\"" + << " -D \"VERSION " << OCTAVE_VERSION << "\"" + << " -D \"OCTAVEHOME " << OCTAVE_PREFIX << "\"" + << " -D \"TARGETHOSTTYPE " << CANONICAL_HOST_TYPE << "\"" << " --fill-column " << cols << " --no-warn" << " --no-validate" << " --no-headers" << " --force" << " --output " << tmp_file_name + << " > /dev/null 2>&1" << ends; char *cmd = buf.str ();