pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/t-test.q


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/t-test.q
Date: Fri, 11 Feb 2005 03:22:06 -0500

Index: pspp/src/t-test.q
diff -u pspp/src/t-test.q:1.39 pspp/src/t-test.q:1.40
--- pspp/src/t-test.q:1.39      Mon Jan 24 04:29:53 2005
+++ pspp/src/t-test.q   Fri Feb 11 08:22:05 2005
@@ -224,9 +224,6 @@
 static void group_postcalc (struct cmd_t_test *);
 
 
-static int compare_var_name (const void *a_, const void *b_, void *v_ UNUSED);
-static unsigned hash_var_name (const void *a_, void *v_ UNUSED);
-
 static void calculate(const struct casefile *cf, void *_mode);
 
 static  int mode;
@@ -297,7 +294,7 @@
          struct hsh_table *hash;
          struct variable *v;
 
-         hash=hsh_create(n_pairs,compare_var_name,hash_var_name,0,0);
+         hash = hsh_create (n_pairs, compare_var_names, hash_var_name, 0, 0);
 
          for (i=0; i < n_pairs; ++i)
            {
@@ -1585,25 +1582,6 @@
 
 
 
-static int
-compare_var_name (const void *a_, const void *b_, void *v_ UNUSED)
-{
-  const struct variable *a = a_;
-  const struct variable *b = b_;
-
-  return strcmp(a->name,b->name);
-}
-
-static unsigned
-hash_var_name (const void *a_, void *v_ UNUSED)
-{
-  const struct variable *a = a_;
-
-  return hsh_hash_bytes (a->name, strlen(a->name));
-}
-
-
-
 static void 
 paired_precalc (struct cmd_t_test *cmd UNUSED)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]