diff libinterp/parse-tree/lex.ll @ 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 fee897477e3b
children d5997bbdb641
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Tue Apr 05 01:06:00 2022 -0400
+++ b/libinterp/parse-tree/lex.ll	Tue Apr 05 08:33:58 2022 -0700
@@ -699,7 +699,7 @@
         curr_lexer->m_looking_for_object_index = false;
         curr_lexer->m_at_beginning_of_statement = false;
 
-        if (curr_lexer->m_defining_func
+        if (curr_lexer->m_defining_fcn
             && ! curr_lexer->m_parsed_function_name.top ())
           curr_lexer->m_looking_at_return_list = true;
         else
@@ -2256,7 +2256,7 @@
     m_bracketflag = 0;
     m_braceflag = 0;
     m_looping = 0;
-    m_defining_func = 0;
+    m_defining_fcn = 0;
     m_looking_at_function_handle = 0;
     m_block_comment_nesting_level = 0;
     m_command_arg_paren_count = 0;
@@ -2697,7 +2697,7 @@
 
       case end_kw:
         if (inside_any_object_index ()
-            || (m_defining_func
+            || (m_defining_fcn
                 && ! (m_looking_at_return_list
                       || m_parsed_function_name.top ())))
           {
@@ -2849,7 +2849,7 @@
         break;
 
       case function_kw:
-        m_defining_func++;
+        m_defining_fcn++;
         m_parsed_function_name.push (false);
 
         if (! m_force_script && m_token_count == 0 && input_from_file ())