Eliminated global variable current_dataset.
[pspp-builds.git] / src / language / xforms / fail.c
index ebc30e9c950e3215194942055a99be273cbba904..2b1e78765c535516cc112d746cb79c7f9b54f0b2 100644 (file)
@@ -27,7 +27,7 @@
 #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
@@ -35,17 +35,17 @@ static int trns_fail (void *x, struct ccase *c, casenum_t n);
 
 static int 
 trns_fail (void *x UNUSED, struct ccase *c UNUSED, 
-          casenum_t n UNUSED)
+          casenumber n UNUSED)
 {
   return TRNS_ERROR;
 }
 
 
 int
-cmd_debug_xform_fail (void)
+cmd_debug_xform_fail (struct dataset *ds)
 {
 
-  add_transformation (current_dataset, trns_fail, NULL, NULL);
+  add_transformation (ds, trns_fail, NULL, NULL);
 
   return lex_end_of_command ();
 }