[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch 01/19] move casenumber to case.h
From: |
John Darrington |
Subject: |
Re: [patch 01/19] move casenumber to case.h |
Date: |
Thu, 7 Jun 2007 08:01:03 +0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
No problem here.
On Tue, Jun 05, 2007 at 11:27:28PM -0700, address@hidden wrote:
The casenumber type is defined in transformations.h, but case.h is a
more sensible place. Move it. Also define a new constant
CASENUMBER_MAX.
Index: merge/src/data/case.h
===================================================================
--- merge.orig/src/data/case.h 2007-06-02 16:54:53.000000000 -0700
+++ merge/src/data/case.h 2007-06-02 16:56:03.000000000 -0700
@@ -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 +50,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: merge/src/data/transformations.h
===================================================================
--- merge.orig/src/data/transformations.h 2007-06-02 16:54:54.000000000
-0700
+++ merge/src/data/transformations.h 2007-06-02 16:56:03.000000000
-0700
@@ -19,10 +19,10 @@
#ifndef TRANSFORMATIONS_H
#define TRANSFORMATIONS_H 1
+#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
-
-typedef unsigned long casenumber ;
+#include <data/case.h>
/* trns_proc_func return values. */
enum trns_result
--
_______________________________________________
pspp-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/pspp-dev
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- Re: [patch 10/19] new function value_cnt_from_width, (continued)
- [patch 02/19] new function get_workspace_cases, blp, 2007/06/06
- [patch 06/19] sliding window of cases, blp, 2007/06/06
- [patch 04/19] temporary file for array of cases, blp, 2007/06/06
- [patch 09/19] casegrouper implementation, blp, 2007/06/06
- [patch 01/19] move casenumber to case.h, blp, 2007/06/06
- Re: [patch 01/19] move casenumber to case.h,
John Darrington <=
- [patch 13/19] add case initialization infrastructure, blp, 2007/06/06
- [patch 17/19] Start writing developers guide., blp, 2007/06/06
- [patch 15/19] the big patch, blp, 2007/06/06
- [patch 16/19] Implement FIRST and LAST on MATCH FILES., blp, 2007/06/06