1 /* PSPP - computes sample statistics.
2 Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
3 Written by Ben Pfaff <blp@gnu.org>.
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 /* Linked list of cases. */
28 struct case_list *next;
32 /* Describes a data stream, either a source or a sink. */
35 int case_size; /* Size of one case in bytes. */
36 int ncases; /* Number of cases. */
37 int nval; /* Number of `value' elements per case. */
40 /* Information about the data source. */
41 extern struct stream_info vfm_source_info;
43 /* Information about the data sink. */
44 extern struct stream_info vfm_sink_info;
46 /* Memory case stream. */
48 /* List of cases stored in the stream. */
49 extern struct case_list *memory_source_cases;
50 extern struct case_list *memory_sink_cases;
53 extern struct case_list *memory_sink_iter;
55 /* Maximum number of cases. */
56 extern int memory_sink_max_cases;
58 /* Nonzero if the case needs to have values deleted before being
59 stored, zero otherwise. */
60 extern int compaction_necessary;
62 /* Number of values after compaction, or the same as
63 vfm_sink_info.nval, if compaction is not necessary. */
64 extern int compaction_nval;
66 /* Temporary case buffer with enough room for `compaction_nval'
68 extern struct ccase *compaction_case;
70 void compact_case (struct ccase *dest, const struct ccase *src);