comparison libinterp/corefcn/variables.cc @ 30896:c9788d7f6e65

maint: Use "fcn" as preferred abbreviation for "function" in libinterp/. * __eigs__.cc, bsxfun.cc, cellfun.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, error.cc, graphics.cc, graphics.in.h, gzfstream.h, ls-hdf5.cc, lsode.cc, max.cc, oct-opengl.h, quad.cc, strfns.cc, utils.cc, utils.h, variables.cc, __ode15__.cc, gzip.cc, cdef-manager.cc, ov-fcn-handle.cc, ov-java.cc, ov-usr-fcn.cc, bp-table.cc, bp-table.h, lex.h, lex.ll, oct-parse.yy, pt-eval.cc: Replace "func", "fun", "fn" in documentation and variable names with "fcn".
author Rik <rik@octave.org>
date Tue, 05 Apr 2022 08:33:58 -0700
parents 32d2b6604a9f
children 670a0d878af1
comparison
equal deleted inserted replaced
30895:360d330cc30e 30896:c9788d7f6e65
1428 // Ensure auto-restoration. 1428 // Ensure auto-restoration.
1429 octave::unwind_protect_var<std::string> 1429 octave::unwind_protect_var<std::string>
1430 restore_var (Vmissing_function_hook); 1430 restore_var (Vmissing_function_hook);
1431 1431
1432 // Clear the variable prior to calling the function. 1432 // Clear the variable prior to calling the function.
1433 const std::string func_name = Vmissing_function_hook; 1433 const std::string fcn_name = Vmissing_function_hook;
1434 Vmissing_function_hook.clear (); 1434 Vmissing_function_hook.clear ();
1435 1435
1436 // Call. 1436 // Call.
1437 octave_value_list tmp = octave::feval (func_name, octave_value (name), 1); 1437 octave_value_list tmp = octave::feval (fcn_name, octave_value (name), 1);
1438 1438
1439 if (tmp.length () == 1 && tmp(0).is_string ()) 1439 if (tmp.length () == 1 && tmp(0).is_string ())
1440 return tmp(0).string_value (); 1440 return tmp(0).string_value ();
1441 } 1441 }
1442 1442