[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/src/data ChangeLog case.h transformations.h
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] pspp/src/data ChangeLog case.h transformations.h |
Date: |
Thu, 07 Jun 2007 05:11:50 +0000 |
CVSROOT: /cvsroot/pspp
Module name: pspp
Changes by: Ben Pfaff <blp> 07/06/07 05:11:50
Modified files:
src/data : ChangeLog case.h transformations.h
Log message:
casenumber is defined in transformations.h, but case.h is a more
sensible place. Move it.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/ChangeLog?cvsroot=pspp&r1=1.119&r2=1.120
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/case.h?cvsroot=pspp&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/transformations.h?cvsroot=pspp&r1=1.5&r2=1.6
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/pspp/pspp/src/data/ChangeLog,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -b -r1.119 -r1.120
--- ChangeLog 4 Jun 2007 01:43:27 -0000 1.119
+++ ChangeLog 7 Jun 2007 05:11:50 -0000 1.120
@@ -1,3 +1,11 @@
+2007-06-06 Ben Pfaff <address@hidden>
+
+ 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 <address@hidden>
Slightly generalize case_to_values and case_from_values functions.
Index: case.h
===================================================================
RCS file: /cvsroot/pspp/pspp/src/data/case.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- case.h 4 Jun 2007 01:43:27 -0000 1.11
+++ case.h 7 Jun 2007 05:11:50 -0000 1.12
@@ -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 @@
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);
Index: transformations.h
===================================================================
RCS file: /cvsroot/pspp/pspp/src/data/transformations.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- transformations.h 19 Dec 2006 14:21:53 -0000 1.5
+++ transformations.h 7 Jun 2007 05:11:50 -0000 1.6
@@ -21,8 +21,7 @@
#include <stdbool.h>
#include <stddef.h>
-
-typedef unsigned long casenumber ;
+#include <data/case.h>
/* trns_proc_func return values. */
enum trns_result
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/src/data ChangeLog case.h transformations.h,
Ben Pfaff <=