Mercurial > octave-nkf
view .hgsubstate @ 15004:ea6997657614
which: provide source file name for built-in functions
* defun-int.h, defun.cc (install_builtin_function): New arg, FILE.
Pass file to octave_builtin constructor.
* mkbuiltins: Redefine XDEFUN_FILE_NAME to create a local FILE
variable. Pass FILE to install_builtin_function.
* ov-builtin.h (octave_builtin::file): New member variable.
(octave_builtin::octave_builtin): Handle file name.
(octave_builtin::fcn_file_name): New function.
* ov-fcn-handle.cc (octave_fcn_handle::set_fcn): Only attempt to load
functions from .oct, .mex, or .m files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 23 Jul 2012 12:59:44 -0400 |
parents | 43aa8d583b02 |
children | 8e9f2cfa114d b07e0cb83704 |