projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linreg: Delete unused static function.
[pspp]
/
src
/
data
/
datasheet.c
diff --git
a/src/data/datasheet.c
b/src/data/datasheet.c
index fa24d8ce77014e980cb79e4700ffc63832c5d061..4abc526f0cb2a720cb8e3023eb7d732effdb5da4 100644
(file)
--- a/
src/data/datasheet.c
+++ b/
src/data/datasheet.c
@@
-275,7
+275,7
@@
datasheet_destroy (struct datasheet *ds)
const struct caseproto *
datasheet_get_proto (const struct datasheet *ds_)
{
const struct caseproto *
datasheet_get_proto (const struct datasheet *ds_)
{
- struct datasheet *ds =
(struct datasheet *) ds_
;
+ struct datasheet *ds =
CONST_CAST (struct datasheet *, ds_)
;
if (ds->proto == NULL)
{
size_t i;
if (ds->proto == NULL)
{
size_t i;
@@
-548,7
+548,7
@@
datasheet_get_row (const struct datasheet *ds, casenumber row)
{
size_t n_columns = datasheet_get_n_columns (ds);
struct ccase *c = case_create (datasheet_get_proto (ds));
{
size_t n_columns = datasheet_get_n_columns (ds);
struct ccase *c = case_create (datasheet_get_proto (ds));
- if (rw_case (
(struct datasheet *) ds
, OP_READ,
+ if (rw_case (
CONST_CAST (struct datasheet *, ds)
, OP_READ,
row, 0, n_columns, case_data_all_rw (c)))
return c;
else
row, 0, n_columns, case_data_all_rw (c)))
return c;
else
@@
-582,7
+582,8
@@
datasheet_get_value (const struct datasheet *ds, casenumber row,
size_t column, union value *value)
{
assert (row >= 0);
size_t column, union value *value)
{
assert (row >= 0);
- return rw_case ((struct datasheet *) ds, OP_READ, row, column, 1, value);
+ return rw_case (CONST_CAST (struct datasheet *, ds), OP_READ,
+ row, column, 1, value);
}
/* Stores VALUE into DS in the given ROW and COLUMN. VALUE must
}
/* Stores VALUE into DS in the given ROW and COLUMN. VALUE must