/* PSPP - computes sample statistics.
Copyright (C) 2007 Free Software Foundation, Inc.
- Written by John Darrington <john@darrington.wattle.id.au>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
#include <language/command.h>
#include <language/lexer/lexer.h>
-static int trns_fail (void *x, struct ccase *c, casenum_t n);
+static int trns_fail (void *x, struct ccase *c, casenumber n);
\f
/* A transformation which is guaranteed to fail. */
-static int
-trns_fail (void *x UNUSED, struct ccase *c UNUSED,
- casenum_t n UNUSED)
+static int
+trns_fail (void *x UNUSED, struct ccase *c UNUSED,
+ casenumber n UNUSED)
{
return TRNS_ERROR;
}
int
-cmd_debug_xform_fail (void)
+cmd_debug_xform_fail (struct lexer *lexer, struct dataset *ds)
{
- add_transformation (trns_fail, NULL, NULL);
+ add_transformation (ds, trns_fail, NULL, NULL);
- return lex_end_of_command ();
+ return lex_end_of_command (lexer);
}