+Wed May 4 23:54:02 2005 Ben Pfaff <blp@gnu.org>
+
+ Fix PR 12948. See also new test in
+ tests/bugs/match-file-scratch.sh.
+
+ * get.c: (mtf_merge_dictionary) Don't compact dictionary because
+ that deletes scratch variables that someone else might be using,
+ and because we can't reassign our sources' value indexes.
+ Instead, simply don't copy scratch variables into the master
+ dictionary.
+
+ * dictionary.c: (dict_compact_values) Delete variables from the
+ dictionary passed in, not from default_dict (!).
+
Tue May 3 22:25:17 2005 Ben Pfaff <blp@gnu.org>
Improve hash.c comments, error-checking.
assert (d != NULL);
assert (v != NULL);
assert (dict_contains_var (d, v));
- assert (d->var[v->index] == v);
/* Delete aux data. */
var_clear_aux (v);
i++;
}
else
- dict_delete_var (default_dict, v);
+ dict_delete_var (d, v);
}
}
}
}
+ /* Set up mapping from each file's variables to master
+ variables. */
for (iter = mtf.head; iter != NULL; iter = iter->next)
{
struct dictionary *d = iter->dict;
}
}
+ /* Add IN variables to master dictionary. */
for (iter = mtf.head; iter != NULL; iter = iter->next)
if (iter->in_name != NULL)
{
}
}
- dict_compact_values (d);
-
for (i = 0; i < dict_get_var_cnt (d); i++)
{
struct variable *dv = dict_get_var (d, i);
struct variable *mv = dict_lookup_var (m, dv->name);
+ if (dict_class_from_id (dv->name) == DC_SCRATCH)
+ continue;
+
if (mv != NULL)
{
if (mv->width != dv->width)
+Wed May 4 23:50:02 2005 Ben Pfaff <blp@gnu.org>
+
+ * bugs/match-files-scratch.sh: New test for PR 12948.
+
+ * Makefile.am: (TESTS) Add bugs/match-files-scratch.sh.
+
Sun May 1 23:18:37 2005 Ben Pfaff <blp@gnu.org>
Most tests: changed capitalization of variable names in
bugs/html-frequency.sh \
bugs/if_crash.sh \
bugs/lag_crash.sh \
+ bugs/match-files-scratch.sh \
bugs/multipass.sh \
bugs/random.sh \
bugs/t-test-with-temp.sh \