comparison src/variables.cc @ 5004:efa1ba94dab5

[project @ 2004-09-16 19:04:20 by jwe]
author jwe
date Thu, 16 Sep 2004 19:04:20 +0000
parents 352d228d409b
children da607e9daf12
comparison
equal deleted inserted replaced
5003:a0e7231a58eb 5004:efa1ba94dab5
770 { 770 {
771 if (tmp->time_checked () < Vlast_prompt_time) 771 if (tmp->time_checked () < Vlast_prompt_time)
772 { 772 {
773 time_t tp = tmp->time_parsed (); 773 time_t tp = tmp->time_parsed ();
774 774
775 std::string fname; 775 std::string nm = tmp->name ();
776 776
777 if (tmp->is_dld_function ()) 777 string_vector names (2);
778 fname = ff; 778
779 names[0] = nm + ".oct";
780 names[1] = nm + ".m";
781
782 std::string file = octave_env::make_absolute
783 (Vload_path_dir_path.find_first_of (names),
784 octave_env::getcwd ());
785
786 if (file != ff)
787 retval = true;
779 else 788 else
780 fname = fcn_file_in_path (ff); 789 {
781 790 tmp->mark_fcn_file_up_to_date (octave_time ());
782 tmp->mark_fcn_file_up_to_date (octave_time ()); 791
783 792 file_stat fs (ff);
784 file_stat fs (fname); 793
785 794 if (fs && fs.is_newer (tp))
786 if (fs && fs.is_newer (tp)) 795 retval = true;
787 retval = true; 796 }
788 } 797 }
789 } 798 }
790 } 799 }
791 } 800 }
792 801