projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make dictionary compacting functions a little more general.
[pspp-builds.git]
/
src
/
data
/
procedure.c
diff --git
a/src/data/procedure.c
b/src/data/procedure.c
index 16dcd745929f9962d489fd58f66bcd4110fcfc13..1b1e628b1ed745fa96610e4d54572875f250c22e 100644
(file)
--- a/
src/data/procedure.c
+++ b/
src/data/procedure.c
@@
-47,7
+47,7
@@
struct write_case_data
struct ccase trns_case; /* Case used for transformations. */
struct ccase sink_case; /* Case written to sink, if
struct ccase trns_case; /* Case used for transformations. */
struct ccase sink_case; /* Case written to sink, if
- compacti
on
is necessary. */
+ compacti
ng
is necessary. */
size_t cases_written; /* Cases output so far. */
};
size_t cases_written; /* Cases output so far. */
};
@@
-281,8
+281,8
@@
open_active_file (void)
if (permanent_dict == NULL)
permanent_dict = default_dict;
if (permanent_dict == NULL)
permanent_dict = default_dict;
- /* Figure out
compaction
. */
- compactor = (dict_
needs_compaction
(permanent_dict)
+ /* Figure out
whether to compact
. */
+ compactor = (dict_
compacting_would_shrink
(permanent_dict)
? dict_make_compactor (permanent_dict)
: NULL);
? dict_make_compactor (permanent_dict)
: NULL);
@@
-411,7
+411,7
@@
close_active_file (void)
/* Dictionary from before TEMPORARY becomes permanent. */
proc_cancel_temporary_transformations ();
/* Dictionary from before TEMPORARY becomes permanent. */
proc_cancel_temporary_transformations ();
- /* Finish compacti
on
. */
+ /* Finish compacti
ng
. */
if (compactor != NULL)
{
dict_compactor_destroy (compactor);
if (compactor != NULL)
{
dict_compactor_destroy (compactor);