Add scratch file handles.
authorBen Pfaff <blp@gnu.org>
Sun, 29 Jan 2006 02:41:11 +0000 (02:41 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 29 Jan 2006 02:41:11 +0000 (02:41 +0000)
commit053e7ff6e0a45a25d5604b211e9c950fff50e75d
tree9f18872491bb7da82385603213d0fa35ac77ae87
parentcc56bd9dc9ecf718111aaf16022f0fe8883a5487
Add scratch file handles.

Now a file handle can refer to a disk file, to an in-memory
structure, or to the "inline" file, instead of just to a disk
file.  The introduction of new categories means that special cases
for the inline file in a few places could be eliminated, but it
also means that code that assumed that a handle refers to a file
has to check for that.

Also, now file handles can be freed, so code now must be sure not
to access a handle after closing it (with fh_close()).

Plus some cleanups.
96 files changed:
Smake
doc/data-io.texi
doc/files.texi
doc/language.texi
doc/transformation.texi
po/en_GB.po
po/pspp.pot
src/ChangeLog
src/Makefile.am
src/aggregate.c
src/any-reader.c [new file with mode: 0644]
src/any-reader.h [new file with mode: 0644]
src/any-writer.c [new file with mode: 0644]
src/any-writer.h [new file with mode: 0644]
src/apply-dict.c
src/cat.h
src/command.def
src/correlations.q
src/data-list.c
src/dfm-read.c
src/dfm-write.c
src/dictionary.c
src/dictionary.h
src/error.c
src/file-handle-def.c
src/file-handle-def.h
src/file-handle.h
src/file-handle.q
src/file-type.c
src/filename.c
src/filename.h
src/get.c
src/glob.c
src/inpt-pgm.c
src/matrix-data.c
src/pfm-read.c
src/pfm-read.h
src/pfm-write.c
src/pfm-write.h
src/print.c
src/regression.q
src/scratch-handle.c [new file with mode: 0644]
src/scratch-handle.h [new file with mode: 0644]
src/scratch-reader.c [new file with mode: 0644]
src/scratch-reader.h [new file with mode: 0644]
src/scratch-writer.c [new file with mode: 0644]
src/scratch-writer.h [new file with mode: 0644]
src/sfm-read.c
src/sfm-read.h
src/sfm-write.c
src/str.c
src/str.h
src/sysfile-info.c
src/var.h
src/vfm.c
src/vfm.h
tests/bugs/agg-crash-2.sh
tests/bugs/compute-lv.sh
tests/bugs/computebug.out
tests/bugs/crosstabs-crash.sh
tests/bugs/match-files-scratch.sh
tests/bugs/multipass.sh
tests/bugs/recode-copy-bug-1.out
tests/bugs/recode-copy-bug-2.out
tests/bugs/t-test-alpha.sh
tests/bugs/temp-freq.sh
tests/command/aggregate.sh
tests/command/autorecod.sh
tests/command/beg-data.sh
tests/command/count.sh
tests/command/data-list.sh
tests/command/examine-percentiles.sh
tests/command/examine.sh
tests/command/file-handle.sh
tests/command/file-label.sh
tests/command/flip.sh
tests/command/lag.sh
tests/command/list.sh
tests/command/longvars.sh
tests/command/loop.sh
tests/command/oneway-with-splits.sh
tests/command/oneway.sh
tests/command/print.sh
tests/command/rename.sh
tests/command/sysfile-info.sh
tests/command/t-test-1-indep-val.sh
tests/command/t-test-1s.sh
tests/command/t-test-groups.sh
tests/command/t-test-pairs.sh
tests/command/tabs.sh
tests/command/trimmed-mean.sh
tests/command/weight.sh
tests/expressions/variables.sh
tests/expressions/vectors.sh
tests/stats/descript-basic.sh
tests/stats/descript-missing.sh