n_iterators
};
-static const struct casenum_iterator ip[n_iterators] =
+static const struct casenum_iterator case_iterator[n_iterators] =
{
/* Forward iterator (linear) */
{cp1, last, forward},
if (wrap)
{
if (reverse)
- return &ip[REVERSE_WRAP];
+ return &case_iterator[REVERSE_WRAP];
else
- return &ip[FORWARD_WRAP];
+ return &case_iterator[FORWARD_WRAP];
}
else
{
if (reverse)
- return &ip[REVERSE];
+ return &case_iterator[REVERSE];
else
- return &ip[FORWARD];
+ return &case_iterator[FORWARD];
}
}
static struct comparator *
numeric_comparator_create (const struct variable *var, const char *target)
{
- struct numeric_comparator *nc = xzalloc (sizeof (*nc));
+ struct numeric_comparator *nc = XZALLOC (struct numeric_comparator);
struct comparator *cmptr = &nc->parent;
cmptr->flags = 0;
string_comparator_create (const struct variable *var, const char *target,
enum string_cmp_flags flags)
{
- struct string_comparator *ssc = xzalloc (sizeof (*ssc));
+ struct string_comparator *ssc = XZALLOC (struct string_comparator);
struct comparator *cmptr = &ssc->parent;
cmptr->flags = flags;
enum string_cmp_flags flags)
{
int code;
- struct regexp_comparator *rec = xzalloc (sizeof (*rec));
+ struct regexp_comparator *rec = XZALLOC (struct regexp_comparator);
struct comparator *cmptr = &rec->parent;
cmptr->flags = flags;