From: Ben Pfaff Date: Thu, 7 Jun 2007 05:11:50 +0000 (+0000) Subject: casenumber is defined in transformations.h, but case.h is a more X-Git-Tag: v0.6.0~451 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12fd1512c78016efefe5bfde70a188e625a44c4;p=pspp-builds.git casenumber is defined in transformations.h, but case.h is a more sensible place. Move it. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index 8fd50a07..3e0ebf62 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,11 @@ +2007-06-06 Ben Pfaff + + The casenumber type is defined in transformations.h, but case.h is + a more sensible place. Move it. + + * case.h (CASENUMBER_MAX): New macro. + (typedef casenumber): Move here, from transformations.h. + 2007-06-03 Ben Pfaff Slightly generalize case_to_values and case_from_values functions. diff --git a/src/data/case.h b/src/data/case.h index 4d6e1d47..427e656a 100644 --- a/src/data/case.h +++ b/src/data/case.h @@ -26,6 +26,11 @@ struct variable; +/* A count of cases or the index of a case within a collection of + them. */ +#define CASENUMBER_MAX LONG_MAX +typedef long int casenumber; + /* Opaque structure that represents a case. Use accessor functions instead of accessing any members directly. Use case_move() or case_clone() instead of copying. */ @@ -44,7 +49,7 @@ void case_destroy (struct ccase *); size_t case_get_value_cnt (const struct ccase *); -void case_resize (struct ccase *, size_t new_value_cnt); +void case_resize (struct ccase *, size_t new_cnt); void case_swap (struct ccase *, struct ccase *); bool case_try_create (struct ccase *, size_t value_cnt); diff --git a/src/data/transformations.h b/src/data/transformations.h index 866a2fc4..b2af84e6 100644 --- a/src/data/transformations.h +++ b/src/data/transformations.h @@ -21,8 +21,7 @@ #include #include - -typedef unsigned long casenumber ; +#include /* trns_proc_func return values. */ enum trns_result