/[pspp]/pspp/src/modify-vars.c
ViewVC logotype

Diff of /pspp/src/modify-vars.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jmd, Fri Apr 29 01:02:15 2005 UTC revision 1.13 by blp, Mon May 2 06:21:20 2005 UTC
# Line 348  compare_variables_given_ordering (const Line 348  compare_variables_given_ordering (const
348    if (ordering->positional)    if (ordering->positional)
349      result = a->index < b->index ? -1 : a->index > b->index;      result = a->index < b->index ? -1 : a->index > b->index;
350    else    else
351      result = strcmp (a->name, b->name);      result = strcasecmp (a->name, b->name);
352    if (!ordering->forward)    if (!ordering->forward)
353      result = -result;      result = -result;
354    return result;    return result;
# Line 358  compare_variables_given_ordering (const Line 358  compare_variables_given_ordering (const
358  struct var_renaming  struct var_renaming
359    {    {
360      struct variable *var;      struct variable *var;
361      char new_name[SHORT_NAME_LEN + 1];      char new_name[LONG_NAME_LEN + 1];
362    };    };
363    
364  /* A algo_compare_func that compares new_name members in struct  /* A algo_compare_func that compares new_name members in struct
# Line 370  compare_var_renaming_by_new_name (const Line 370  compare_var_renaming_by_new_name (const
370    const struct var_renaming *a = a_;    const struct var_renaming *a = a_;
371    const struct var_renaming *b = b_;    const struct var_renaming *b = b_;
372    
373    return strcmp (a->new_name, b->new_name);    return strcasecmp (a->new_name, b->new_name);
374  }  }
375    
376  /* Returns true if performing VM on dictionary D would not cause  /* Returns true if performing VM on dictionary D would not cause

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26