[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/case.c
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] Changes to pspp/src/case.c |
Date: |
Sun, 31 Jul 2005 01:37:31 -0400 |
Index: pspp/src/case.c
diff -u pspp/src/case.c:1.5 pspp/src/case.c:1.6
--- pspp/src/case.c:1.5 Fri Apr 29 01:02:13 2005
+++ pspp/src/case.c Sun Jul 31 05:37:30 2005
@@ -356,31 +356,8 @@
case_compare (const struct ccase *a, const struct ccase *b,
struct variable *const *vp, size_t var_cnt)
{
- for (; var_cnt-- > 0; vp++)
- {
- struct variable *v = *vp;
-
- if (v->width == 0)
- {
- double af = case_num (a, v->fv);
- double bf = case_num (b, v->fv);
-
- if (af != bf)
- return af > bf ? 1 : -1;
- }
- else
- {
- const char *as = case_str (a, v->fv);
- const char *bs = case_str (b, v->fv);
- int cmp = memcmp (as, bs, v->width);
-
- if (cmp != 0)
- return cmp;
- }
- }
- return 0;
+ return case_compare_2dict (a, b, vp, vp, var_cnt);
}
-
/* Compares the values of the VAR_CNT variables in VAP in case CA
to the values of the VAR_CNT variables in VBP in CB
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/case.c,
Ben Pfaff <=