Changed DFM from open-at-first-access to explicit-open. Before,
authorBen Pfaff <blp@gnu.org>
Sun, 21 Mar 2004 03:06:11 +0000 (03:06 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 21 Mar 2004 03:06:11 +0000 (03:06 +0000)
commit74a57f26f1458b28a0fddbb9f46004ac8f4d9c30
treef6cc573de63bae3f888b90751eb048a153991e3d
parent2c9e93d6e9fbdf4eccb2d43050884f2f707ad126
Changed DFM from open-at-first-access to explicit-open.  Before,
calling dfm_get_record() or dfm_put_record() would automatically
open the file.  Now, you have to call dfm_open_for_reading() or
dfm_open_for_writing() explicitly.  This makes it possible to
check permissions, file existence, etc. earlier.

Also made struct file_handle more opaque, and clean up in general.

Fixed cmd_parse() so that it always skips past a full command
name.  A few special commands for which this would be bad get
special treatment.  This lets us drop code for skipping past the
end of a command name in most cmd_*() functions.  It's not worth
listing all the commands affected.

Start work on better test framework.

Fix memory leaks.

Misc other changes.
70 files changed:
src/ChangeLog
src/Makefile.am
src/aggregate.c
src/apply-dict.c
src/autorecode.c
src/command.c
src/command.def
src/command.h
src/compute.c
src/correlations.q
src/count.c
src/crosstabs.q
src/data-list.c
src/debug.c [new file with mode: 0644]
src/descript.q
src/dfm.c
src/dfm.h
src/do-if.c
src/error.c
src/expr-evl.c
src/expr-prs.c
src/expr.h
src/file-handle.h
src/file-handle.q
src/file-type.c
src/filename.c
src/filename.h
src/flip.c
src/formats.c
src/frequencies.q
src/get.c
src/include.c
src/inpt-pgm.c
src/levene.c
src/lexer.c
src/lexer.h
src/list.q
src/loop.c
src/main.c
src/matrix-data.c
src/means.q
src/mis-val.c
src/modify-vars.c
src/numeric.c
src/pfm-read.c
src/pfm-write.c
src/print.c
src/recode.c
src/rename-vars.c
src/repeat.c
src/sample.c
src/sel-if.c
src/set.q
src/sfm-read.c
src/sfm-write.c
src/sort.c
src/split-file.c
src/sysfile-info.c
src/t-test.q
src/temporary.c
src/title.c
src/val-labs.c
src/var-labs.c
src/vector.c
src/vfm.c
src/weight.c
tests/ChangeLog
tests/command/list.sh
tests/command/print.sh
tests/command/weight.sh