#include "file-ops.h"
#include "file-stat.h"
#include "oct-env.h"
#include "oct-time.h"
#include "singleton-cleanup.h"
#include "debug.h"
#include "defun.h"
#include "dirfns.h"
#include "input.h"
#include "load-path.h"
#include "ov-fcn.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "pt-arg-list.h"
#include "symtab.h"
#include "unwind-prot.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
static builtin_type_t(* | build_sup_table (void))[btyp_num_types] |
DEFUN (__current_scope__,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {[@var{scope}, @var{context}]} __dump_symtab_info__ ()\n\ Undocumented internal function.\n\ @end deftypefn") | |
DEFUN (__dump_symtab_info__, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} __dump_symtab_info__ ()\n\ @deftypefnx {Built-in Function} {} __dump_symtab_info__ (@var{scope})\n\ @deftypefnx {Built-in Function} {} __dump_symtab_info__ (\"scopes\")\n\ @deftypefnx {Built-in Function} {} __dump_symtab_info__ (\"functions\")\n\ Undocumented internal function.\n\ @end deftypefn") | |
DEFUN (ignore_function_time_stamp, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} ignore_function_time_stamp ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} ignore_function_time_stamp (@var{new_val})\n\ Query or set the internal variable that controls whether Octave checks\n\ the time stamp on files each time it looks up functions defined in\n\ function files. If the internal variable is set to @code{\"system\"},\n\ Octave will not automatically recompile function files in subdirectories of\n\ @file{@var{octave-home}/lib/@var{version}} if they have changed since\n\ they were last compiled, but will recompile other function files in the\n\ search path if they change. If set to @code{\"all\"}, Octave will not\n\ recompile any function files unless their definitions are removed with\n\ @code{clear}. If set to \"none\", Octave will always check time stamps\n\ on files to determine whether functions defined in function files\n\ need to recompiled.\n\ @end deftypefn") | |
static std::string | fcn_file_name (const octave_value &fcn) |
std::string | get_dispatch_type (const octave_value_list &args) |
std::string | get_dispatch_type (const octave_value_list &args, builtin_type_t &builtin_type) |
static bool | load_out_of_date_fcn (const std::string &ff, const std::string &dir_name, octave_value &function, const std::string &dispatch_type=std::string()) |
bool | out_of_date_check (octave_value &function, const std::string &dispatch_type, bool check_relative) |
Variables | |
static int | Vignore_function_time_stamp = 1 |
static builtin_type_t(* build_sup_table | ( | void | ) | )[btyp_num_types] [static] |
Definition at line 493 of file symtab.cc.
References btyp_bool, btyp_char, btyp_complex, btyp_double, btyp_float, btyp_func_handle, btyp_isarray(), and btyp_isinteger().
Referenced by get_dispatch_type().
DEFUN | ( | __current_scope__ | ) |
Definition at line 1541 of file symtab.cc.
References symbol_table::current_context(), and symbol_table::current_scope().
DEFUN | ( | __dump_symtab_info__ | , | |
args | ||||
) |
Definition at line 1555 of file symtab.cc.
References arg(), symbol_table::dump(), symbol_table::dump_functions(), symbol_table::dump_global(), error(), error_state, octave_value::int_value(), octave_value::is_string(), octave_stdout, print_usage(), symbol_table::scopes(), and octave_value::string_value().
DEFUN | ( | ignore_function_time_stamp | , | |
args | , | |||
nargout | ||||
) |
Definition at line 1459 of file symtab.cc.
References error(), error_state, print_usage(), and octave_value::string_value().
static std::string fcn_file_name | ( | const octave_value & | fcn | ) | [static] |
Definition at line 1079 of file symtab.cc.
References f, octave_function::fcn_file_name(), and octave_value::function_value().
Referenced by symbol_table::fcn_info::fcn_info_rep::dump(), octave_dld_function::octave_dld_function(), and octave_mex_function::octave_mex_function().
std::string get_dispatch_type | ( | const octave_value_list & | args | ) |
Definition at line 575 of file symtab.cc.
References get_dispatch_type().
std::string get_dispatch_type | ( | const octave_value_list & | args, | |
builtin_type_t & | builtin_type | |||
) |
Definition at line 517 of file symtab.cc.
References arg(), btyp_class_name, btyp_unknown, build_sup_table(), octave_value::builtin_type(), octave_value::class_name(), symbol_table::is_superiorto(), and octave_value_list::length().
Referenced by octave_fcn_handle::do_multi_index_op(), get_dispatch_type(), and symbol_table::fcn_info::fcn_info_rep::xfind().
static bool load_out_of_date_fcn | ( | const std::string & | ff, | |
const std::string & | dir_name, | |||
octave_value & | function, | |||
const std::string & | dispatch_type = std::string () | |||
) | [inline, static] |
Definition at line 149 of file symtab.cc.
References load_fcn_from_file(), and octave_value().
Referenced by out_of_date_check().
bool out_of_date_check | ( | octave_value & | function, | |
const std::string & | dispatch_type, | |||
bool | check_relative | |||
) |
Definition at line 170 of file symtab.cc.
References octave_env::absolute_pathname(), octave_function::fcn_file_name(), load_path::find_fcn(), symbol_table::find_method(), octave_value::function_value(), base_file_stat::is_newer(), octave_function::is_relative(), octave_function::is_subfunction(), octave_function::is_system_fcn_file(), load_out_of_date_fcn(), lookup_autoload(), octave_function::mark_fcn_file_up_to_date(), octave_function::name(), octave_value(), symbol_table::parent_classes(), bp_table::remove_all_breakpoints_in_file(), same_file(), octave_function::time_checked(), octave_function::time_parsed(), octave_time::unix_time(), Vlast_chdir_time, and Vlast_prompt_time.
Referenced by octave_fcn_handle::do_multi_index_op(), symbol_table::fcn_info::fcn_info_rep::find_autoload(), symbol_table::fcn_info::fcn_info_rep::find_method(), symbol_table::fcn_info::fcn_info_rep::find_user_function(), symbol_table::fcn_info::fcn_info_rep::x_builtin_find(), and symbol_table::fcn_info::fcn_info_rep::xfind().
int Vignore_function_time_stamp = 1 [static] |