diff scripts/image/imformats.m @ 24458:516437d2194d

don't allow function parameters (in or out) to be persistent * symrec.h (symbol_record::symbol_record_rep::mark_persistent): Also error if this object is a function argument. * __unimplemented__.m, imformats.m, odedefaults.m: Don't make function parameters persistent.
author John W. Eaton <jwe@octave.org>
date Sat, 23 Dec 2017 14:58:27 -0500
parents 092078913d54
children 194eb4bd202b
line wrap: on
line diff
--- a/scripts/image/imformats.m	Sat Dec 23 14:15:31 2017 -0500
+++ b/scripts/image/imformats.m	Sat Dec 23 14:58:27 2017 -0500
@@ -142,7 +142,7 @@
 
 endfunction
 
-function formats = default_formats ()
+function rformats = default_formats ()
 
   ## The available formats are dependent on what the user has installed at
   ## a given time, and how GraphicsMagick was built.  Checking for
@@ -178,6 +178,7 @@
   ## there's no need to go and calculate it all over again if we are
   ## requested to reset back to factory.
   if (! isempty (formats))
+    rformats = formats;
     return;
   endif
 
@@ -257,6 +258,8 @@
   ## fills rest of format information by checking with GraphicsMagick
   formats = __magick_formats__ (formats);
 
+  rformats = formats;
+
 endfunction
 
 function is_valid_format (format)