Add new functions to define subcase orderings.
[pspp-builds.git] / src / language / stats / roc.c
index 3dff0407f8a301219cbbcee8ecaf6bc3d9ee1088..eae528a38a81c126b30c5ffa9a66b93212293011 100644 (file)
@@ -560,8 +560,7 @@ do_roc (struct cmd_roc *roc, struct casereader *input, struct dictionary *dict)
     struct caseproto *proto = caseproto_create ();
 
     struct subcase ordering;
-    struct variable *iv = var_create_internal (CUTPOINT);
-    subcase_init_var (&ordering, iv, SC_ASCEND);
+    subcase_init (&ordering, CUTPOINT, 0, SC_ASCEND);
 
 
     proto = caseproto_add_width (proto, 0); /* cutpoint */