From bug-octave-request at bevo dot che dot wisc dot edu Fri Dec 12 08:28:28 2003 Subject: mlock and whos prot From: Paul Kienzle To: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 12 Dec 2003 09:28:16 -0500 Octave 2.1.52, Debian I'm locking (using mark_as__static) sparse and dispatch, but not conv2, but whos reports the following: prot type rows cols name ==== ==== ==== ==== ==== r-- dynamically-linked function - - conv2 r-- dynamically-linked function - - dispatch r-- dynamically-linked function - - sparse The docs say the symbols should be marked differently: `-long' Print a long listing including the type and dimensions of any symbols. The symbols in the first column of output indicate whether it is possible to redefine the symbol, and whether it is possible for it to be cleared. Is this just a matter of applying the following (untested) patch? Paul Kienzle pkienzle at users dot sf dot net Index: symtab.cc =================================================================== RCS file: /cvs/octave/src/symtab.cc,v retrieving revision 1.98 diff -c -p -r1.98 symtab.cc *** symtab.cc 2003/01/03 18:13:14 1.98 --- symtab.cc 2003/12/12 14:26:41 *************** void *** 414,420 **** symbol_record::print_symbol_info_line (std::ostream& os) const { os << (is_read_only () ? " r-" : " rw") ! << (is_eternal () ? "-" : "d") << " " << std::setiosflags (std::ios::left) << std::setw (24) << type_name () . c_str (); --- 414,420 ---- symbol_record::print_symbol_info_line (std::ostream& os) const { os << (is_read_only () ? " r-" : " rw") ! << (is_static() || is_eternal () ? "-" : "d") << " " << std::setiosflags (std::ios::left) << std::setw (24) << type_name () . c_str (); Paul Kienzle ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------