/* PSPP - a program for statistical analysis.
- Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009, 2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <config.h>
-#include "scratch-writer.h"
+#include "data/scratch-writer.h"
#include <stdlib.h>
-#include <data/case.h>
-#include <data/case-map.h>
-#include <data/casereader.h>
-#include <data/casewriter-provider.h>
-#include <data/casewriter.h>
-#include <data/dictionary.h>
-#include <data/file-handle-def.h>
-#include <data/scratch-handle.h>
-#include <data/variable.h>
-#include <libpspp/compiler.h>
-#include <libpspp/taint.h>
+#include "data/case.h"
+#include "data/case-map.h"
+#include "data/casereader.h"
+#include "data/casewriter-provider.h"
+#include "data/casewriter.h"
+#include "data/dictionary.h"
+#include "data/file-handle-def.h"
+#include "data/scratch-handle.h"
+#include "data/variable.h"
+#include "libpspp/compiler.h"
+#include "libpspp/taint.h"
-#include "xalloc.h"
+#include "gl/xalloc.h"
#define N_(msgid) (msgid)
struct scratch_writer *writer;
struct casewriter *casewriter;
struct fh_lock *lock;
- size_t dict_value_cnt;
/* Get exclusive write access to handle. */
/* TRANSLATORS: this fragment will be interpolated into
}
else
writer->compactor = NULL;
- dict_value_cnt = dict_get_next_value_idx (writer->dict);
- writer->subwriter = autopaging_writer_create (dict_value_cnt);
+ writer->subwriter = autopaging_writer_create (dict_get_proto (writer->dict));
- casewriter = casewriter_create (dict_value_cnt,
+ casewriter = casewriter_create (dict_get_proto (writer->dict),
&scratch_writer_casewriter_class, writer);
taint_propagate (casewriter_get_taint (writer->subwriter),
casewriter_get_taint (casewriter));