Mercurial > octave-libgccjit
diff src/dynamic-ld.cc @ 5781:faafc2d98b8d
[project @ 2006-05-02 19:40:19 by jwe]
author | jwe |
---|---|
date | Tue, 02 May 2006 19:40:21 +0000 |
parents | 8d7162924bd3 |
children | 68f8017ef077 |
line wrap: on
line diff
--- a/src/dynamic-ld.cc Thu Apr 27 20:03:48 2006 +0000 +++ b/src/dynamic-ld.cc Tue May 02 19:40:21 2006 +0000 @@ -39,10 +39,6 @@ #include "utils.h" #include "variables.h" -// TRUE means we print a warning if reloading a .oct file forces other -// functions to be cleared. -static bool Vwarn_reload_forces_clear; - class octave_shlib_list { @@ -198,8 +194,7 @@ static void do_clear_function (const std::string& fcn_name) { - if (Vwarn_reload_forces_clear) - warning (" %s", fcn_name.c_str ()); + warning_with_id ("Octave:reload-forces-clear", " %s", fcn_name.c_str ()); curr_sym_tab->clear (fcn_name); @@ -232,9 +227,10 @@ { int n = oct_file.number_of_functions_loaded (); - if (n > 0 && Vwarn_reload_forces_clear) - warning ("reloading %s clears the following functions:", - oct_file.file_name().c_str ()); + if (n > 0) + warning_with_id ("Octave:reload-forces-clear", + "reloading %s clears the following functions:", + oct_file.file_name().c_str ()); oct_file.close (do_clear_function); @@ -248,7 +244,7 @@ if (! oct_file_name.empty ()) { - oct_file.open (oct_file_name, Vwarn_future_time_stamp); + oct_file.open (oct_file_name); if (! error_state) { @@ -331,27 +327,6 @@ return retval; } -static int -warn_reload_forces_clear (void) -{ - Vwarn_reload_forces_clear = check_preference ("warn_reload_forces_clear"); - - return 0; -} - -void -symbols_of_dynamic_ld (void) -{ - DEFVAR (warn_reload_forces_clear, true, warn_reload_forces_clear, - "-*- texinfo -*-\n\ -@defvr {Built-in Variable} warn_reload_forces_clear\n\ -If several functions have been loaded from the same file, Octave must\n\ -clear all the functions before any one of them can be reloaded. If\n\ -@code{warn_reload_forces_clear}, Octave will warn you when this happens,\n\ -and print a list of the additional functions that it is forced to clear.\n\ -@end defvr"); -} - /* ;;; Local Variables: *** ;;; mode: C++ ***