diff src/parse.y @ 5312:80c1aa832cb2

[project @ 2005-04-28 01:54:46 by jwe]
author jwe
date Thu, 28 Apr 2005 01:54:46 +0000
parents 15031c6fab31
children b427cca320b8
line wrap: on
line diff
--- a/src/parse.y	Wed Apr 27 21:05:43 2005 +0000
+++ b/src/parse.y	Thu Apr 28 01:54:46 2005 +0000
@@ -3332,12 +3332,10 @@
 }
 
 bool
-load_fcn_from_file (symbol_record *sym_rec, bool exec_script)
+load_fcn_from_file (const std::string& nm, bool exec_script)
 {
   bool script_file_executed = false;
 
-  std::string nm = sym_rec->name ();
-
   string_vector names (2);
 
   names[0] = nm + ".oct";
@@ -3377,6 +3375,12 @@
   return script_file_executed;
 }
 
+bool
+load_fcn_from_file (symbol_record *sym_rec, bool exec_script)
+{
+  return load_fcn_from_file (sym_rec->name (), exec_script);
+}
+
 void
 source_file (const std::string file_name)
 {