octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch: extension to save


From: Jaroslav Hajek
Subject: patch: extension to save
Date: Mon, 11 Feb 2008 10:44:13 +0100

hello,

attached is a patch (against the "development" Octave source tarball
<ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-3.0.0.tar.gz>)
to implement -struct and -regexp modifiers in the builtin save,
according to Matlab.

save [options] file -regex [pat1 pat2 ...]
uses regexing instead of globbing for the patterns

save [options] file -struct struct_name [fld1 fld2 ...]
saves the field of a scalar structure sruct_name as top-level variables
(this is the inverse operation to load with an output argument).

I've added inline documentation for the new features and included a
simple test of
the features into test/test_io.m.
The patch is made with diff -cp as advised by Octave's manual, for
each pair of files and
simply concatenated together (I'm not sure if that's the right thing
to do, so please correct me if not).

Patched files:
src/load-save.cc
src/symtab.cc
src/symtab.h
test/test_io.m

any further comments or suggestions are welcome.

regards,

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

Attachment: save_ext_patch
Description: Binary data

Attachment: ChangeLog.Entry
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]