pspp-cvs
[Top][All Lists]
Advanced

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

[Pspp-cvs] Changes to pspp/src/modify-vars.c


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/modify-vars.c
Date: Mon, 02 May 2005 02:21:36 -0400

Index: pspp/src/modify-vars.c
diff -u pspp/src/modify-vars.c:1.12 pspp/src/modify-vars.c:1.13
--- pspp/src/modify-vars.c:1.12 Fri Apr 29 01:02:15 2005
+++ pspp/src/modify-vars.c      Mon May  2 06:21:20 2005
@@ -348,7 +348,7 @@
   if (ordering->positional)
     result = a->index < b->index ? -1 : a->index > b->index;
   else
-    result = strcmp (a->name, b->name);
+    result = strcasecmp (a->name, b->name);
   if (!ordering->forward)
     result = -result;
   return result;
@@ -358,7 +358,7 @@
 struct var_renaming
   {
     struct variable *var;
-    char new_name[SHORT_NAME_LEN + 1];
+    char new_name[LONG_NAME_LEN + 1];
   };
 
 /* A algo_compare_func that compares new_name members in struct
@@ -370,7 +370,7 @@
   const struct var_renaming *a = a_;
   const struct var_renaming *b = b_;
 
-  return strcmp (a->new_name, b->new_name);
+  return strcasecmp (a->new_name, b->new_name);
 }
 
 /* Returns true if performing VM on dictionary D would not cause




reply via email to

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