Add details on how various features interact.
[pspp] / src / vars-prs.c
index 8b15fd7bc91a8a1f44156788554028452ee58320..6f3d7f3e279b3fd6745cc6dead6154ac98bf72b9 100644 (file)
@@ -392,7 +392,8 @@ parse_DATA_LIST_vars (char ***names, int *nnames, int pv_opts)
          lex_error ("expecting variable name");
          goto fail;
        }
-      if (tokid[0] == '#' && (pv_opts & PV_NO_SCRATCH))
+      if (dict_class_from_id (tokid) == DC_SCRATCH
+          && (pv_opts & PV_NO_SCRATCH))
        {
          msg (SE, _("Scratch variables not allowed here."));
          goto fail;