You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support load and save for classdef objects in MAT-files (bug #45833).
* libinterp/corefcn/load-save.cc (load_save_system::load): Update unwind_action
to include "clear_subsystem_handler".
(load_save_system::load_vars): Move unwind_action from load_vars to load.
(load_save_system::save_vars): Update unwind_action to include
"clear_subsystem_handler". Add new block to write MAT-file subsystem data after
all variables are saved.
* libinterp/corefcn/ls-mat5.cc (read_mat5_binary_file_header): Read subsystem
data from MAT-files into "subsystem_handler" object.
(read_mat5_binary_element): Read classdef objects as case
MAT_FILE_WORKSPACE_CLASS.
(save_mat5_element_length): Update to return element length for classdef
objects.
(save_mat5_binary_element): Update to save classdef objects to file stream.
* test/classdef-load-save/classdef-load-save-v6.tst,
test/classdef-load-save/classdef-load-save-v7.tst: New tests for load and save
with MAT-files in "-v6" and "-v7" file format.
* test/classdef-load-save/classdef-load-save-text.tst: Rename file.
* test/classdef-load-save/module.mk: Include new test files in build system.
0 commit comments