[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/src/data ChangeLog dictionary.c dictionary.h
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] pspp/src/data ChangeLog dictionary.c dictionary.h |
Date: |
Mon, 01 May 2006 22:46:32 +0000 |
CVSROOT: /cvsroot/pspp
Module name: pspp
Branch:
Changes by: Ben Pfaff <address@hidden> 06/05/01 22:46:32
Modified files:
src/data : ChangeLog dictionary.c dictionary.h
Log message:
Change case limit type from int to size_t.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/data/ChangeLog.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/data/dictionary.c.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/data/dictionary.h.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: pspp/src/data/ChangeLog
diff -u pspp/src/data/ChangeLog:1.23 pspp/src/data/ChangeLog:1.24
--- pspp/src/data/ChangeLog:1.23 Thu Apr 27 03:01:57 2006
+++ pspp/src/data/ChangeLog Mon May 1 22:46:31 2006
@@ -1,3 +1,12 @@
+Mon May 1 15:45:42 2006 Ben Pfaff <address@hidden>
+
+ Change case limit type from int to size_t.
+
+ * dictionary.c: (struct dictionary) Change type of case_limit
+ member.
+ (dict_get_case_limit) Change return type.
+ (dict_set_case_limit) Change parameter type.
+
Wed Apr 26 20:01:19 2006 Ben Pfaff <address@hidden>
* variable.h: (struct variable) Rename `reinit' member as `leave'
Index: pspp/src/data/dictionary.c
diff -u pspp/src/data/dictionary.c:1.7 pspp/src/data/dictionary.c:1.8
--- pspp/src/data/dictionary.c:1.7 Thu Apr 27 03:01:57 2006
+++ pspp/src/data/dictionary.c Mon May 1 22:46:31 2006
@@ -18,22 +18,25 @@
02110-1301, USA. */
#include <config.h>
+
#include "dictionary.h"
+
#include <stdlib.h>
#include <ctype.h>
-#include <libpspp/array.h>
-#include <libpspp/alloc.h>
+
#include "case.h"
-#include "category.h"
#include "cat-routines.h"
+#include "category.h"
+#include "settings.h"
+#include "value-labels.h"
+#include "variable.h"
+#include <libpspp/alloc.h>
+#include <libpspp/array.h>
#include <libpspp/compiler.h>
-#include <libpspp/message.h>
#include <libpspp/hash.h>
+#include <libpspp/message.h>
#include <libpspp/misc.h>
-#include "settings.h"
#include <libpspp/str.h>
-#include "value-labels.h"
-#include "variable.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
@@ -49,7 +52,7 @@
size_t split_cnt; /* SPLIT FILE count. */
struct variable *weight; /* WEIGHT variable. */
struct variable *filter; /* FILTER variable. */
- int case_limit; /* Current case limit (N command). */
+ size_t case_limit; /* Current case limit (N command). */
char *label; /* File label. */
char *documents; /* Documents, as a string. */
struct vector **vector; /* Vectors of variables. */
@@ -748,8 +751,8 @@
}
/* Returns the case limit for dictionary D, or zero if the number
- of cases is unlimited (see cmd_n()). */
-int
+ of cases is unlimited. */
+size_t
dict_get_case_limit (const struct dictionary *d)
{
assert (d != NULL);
@@ -757,13 +760,12 @@
return d->case_limit;
}
-/* Sets CASE_LIMIT as the case limit for dictionary D. Zero for
- CASE_LIMIT indicates no limit. */
+/* Sets CASE_LIMIT as the case limit for dictionary D. Use
+ 0 for CASE_LIMIT to indicate no limit. */
void
-dict_set_case_limit (struct dictionary *d, int case_limit)
+dict_set_case_limit (struct dictionary *d, size_t case_limit)
{
assert (d != NULL);
- assert (case_limit >= 0);
d->case_limit = case_limit;
}
Index: pspp/src/data/dictionary.h
diff -u pspp/src/data/dictionary.h:1.1 pspp/src/data/dictionary.h:1.2
--- pspp/src/data/dictionary.h:1.1 Sat Mar 4 01:11:57 2006
+++ pspp/src/data/dictionary.h Mon May 1 22:46:31 2006
@@ -74,8 +74,8 @@
struct variable *dict_get_filter (const struct dictionary *);
void dict_set_filter (struct dictionary *, struct variable *);
-int dict_get_case_limit (const struct dictionary *);
-void dict_set_case_limit (struct dictionary *, int);
+size_t dict_get_case_limit (const struct dictionary *);
+void dict_set_case_limit (struct dictionary *, size_t);
int dict_get_next_value_idx (const struct dictionary *);
size_t dict_get_case_size (const struct dictionary *);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/src/data ChangeLog dictionary.c dictionary.h,
Ben Pfaff <=