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; |
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 |
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 |