changeset 28455:925c169a4958 stable

use "function" instead of "name" as field name returned from functions * ov-fcn-handle.cc (anonymous_fcn_handle::info): Use "function" instead of "name" for struct field that contains the function text.
author John W. Eaton <jwe@octave.org>
date Thu, 11 Jun 2020 16:33:17 -0400
parents 2396ee754ce8
children 53d8e7ca99c5
files libinterp/octave-value/ov-fcn-handle.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.cc	Thu Jun 11 16:01:39 2020 +0200
+++ b/libinterp/octave-value/ov-fcn-handle.cc	Thu Jun 11 16:33:17 2020 -0400
@@ -1789,7 +1789,7 @@
 
     std::ostringstream buf;
     print_raw (buf, true, 0);
-    m.setfield ("name", buf.str ());
+    m.setfield ("function", buf.str ());
 
     m.setfield ("type", type ());
     m.setfield ("file", "");