projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a casefile, instead of a case sink, for MATCH FILES output.
[pspp]
/
src
/
language
/
stats
/
autorecode.c
diff --git
a/src/language/stats/autorecode.c
b/src/language/stats/autorecode.c
index 89ac44db42e2c8c2606bf58789901e4460d20b02..89f546f2da8cf81e27fcb2f13a14cdc470834e81 100644
(file)
--- a/
src/language/stats/autorecode.c
+++ b/
src/language/stats/autorecode.c
@@
-18,20
+18,22
@@
02110-1301, USA. */
#include <config.h>
02110-1301, USA. */
#include <config.h>
-#include <libpspp/message.h>
#include <stdlib.h>
#include <stdlib.h>
-#include <libpspp/alloc.h>
+
#include <data/case.h>
#include <data/case.h>
+#include <data/dictionary.h>
+#include <data/procedure.h>
+#include <data/transformations.h>
+#include <data/variable.h>
#include <language/command.h>
#include <language/command.h>
+#include <language/lexer/lexer.h>
+#include <libpspp/alloc.h>
#include <libpspp/compiler.h>
#include <libpspp/compiler.h>
-#include <data/dictionary.h>
-#include <libpspp/message.h>
#include <libpspp/hash.h>
#include <libpspp/hash.h>
-#include <language/lexer/lexer.h>
+#include <libpspp/message.h>
+#include <libpspp/message.h>
#include <libpspp/pool.h>
#include <libpspp/str.h>
#include <libpspp/pool.h>
#include <libpspp/str.h>
-#include <data/variable.h>
-#include <procedure.h>
#include "gettext.h"
#define _(msgid) gettext (msgid)
#include "gettext.h"
#define _(msgid) gettext (msgid)
@@
-83,7
+85,7
@@
struct autorecode_pgm
static trns_proc_func autorecode_trns_proc;
static trns_free_func autorecode_trns_free;
static trns_proc_func autorecode_trns_proc;
static trns_free_func autorecode_trns_free;
-static bool autorecode_proc_func (struct ccase *, void *);
+static bool autorecode_proc_func (
const
struct ccase *, void *);
static hsh_compare_func compare_alpha_value, compare_numeric_value;
static hsh_hash_func hash_alpha_value, hash_numeric_value;
static hsh_compare_func compare_alpha_value, compare_numeric_value;
static hsh_hash_func hash_alpha_value, hash_numeric_value;
@@
-178,11
+180,8
@@
cmd_autorecode (void)
ok = procedure (autorecode_proc_func, &arc);
for (i = 0; i < arc.var_cnt; i++)
ok = procedure (autorecode_proc_func, &arc);
for (i = 0; i < arc.var_cnt; i++)
- {
- arc.dst_vars[i] = dict_create_var_assert (default_dict,
- arc.dst_names[i], 0);
- arc.dst_vars[i]->init = 0;
- }
+ arc.dst_vars[i] = dict_create_var_assert (default_dict,
+ arc.dst_names[i], 0);
recode (&arc);
arc_free (&arc);
recode (&arc);
arc_free (&arc);
@@
-339,7
+338,7
@@
hash_numeric_value (const void *a_, void *foo UNUSED)
}
static bool
}
static bool
-autorecode_proc_func (struct ccase *c, void *arc_)
+autorecode_proc_func (
const
struct ccase *c, void *arc_)
{
struct autorecode_pgm *arc = arc_;
size_t i;
{
struct autorecode_pgm *arc = arc_;
size_t i;