projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VARIABLE ROLE: Document the format and add a test.
[pspp]
/
tests
/
data
/
datasheet-test.c
diff --git
a/tests/data/datasheet-test.c
b/tests/data/datasheet-test.c
index 98be04fe44b25c73a7cb608596b02296b3b3894c..532b883faa1980f0671e249a27a9b1d71c5728ee 100644
(file)
--- a/
tests/data/datasheet-test.c
+++ b/
tests/data/datasheet-test.c
@@
-424,9
+424,12
@@
datasheet_mc_init (struct mc *mc)
if (params->backing_rows == 0 && params->n_backing_cols == 0)
{
/* Create unbacked datasheet. */
if (params->backing_rows == 0 && params->n_backing_cols == 0)
{
/* Create unbacked datasheet. */
+ struct caseproto *proto;
ds = datasheet_create (NULL);
mc_name_operation (mc, "empty datasheet");
ds = datasheet_create (NULL);
mc_name_operation (mc, "empty datasheet");
- check_datasheet (mc, ds, NULL, 0, caseproto_create ());
+ proto = caseproto_create ();
+ check_datasheet (mc, ds, NULL, 0, proto);
+ caseproto_unref (proto);
}
else
{
}
else
{
@@
-482,9
+485,9
@@
struct resize_cb_aux
};
static void
};
static void
-resize_cb (const union value *old_value, union value *new_value, void *aux_)
+resize_cb (const union value *old_value, union value *new_value,
const
void *aux_)
{
{
- struct resize_cb_aux *aux = aux_;
+
const
struct resize_cb_aux *aux = aux_;
value_from_param (new_value, aux->new_width,
value_hash (old_value, aux->old_width, 0));
value_from_param (new_value, aux->new_width,
value_hash (old_value, aux->old_width, 0));