[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch 01/19] move casenumber to case.h
From: |
blp |
Subject: |
[patch 01/19] move casenumber to case.h |
Date: |
Tue, 05 Jun 2007 23:27:28 -0700 |
User-agent: |
quilt/0.45-1 |
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
--
- 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 <=
- [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