projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of superfluous Makefile in src/output/charts.
[pspp-builds.git]
/
src
/
data
/
variable.c
diff --git
a/src/data/variable.c
b/src/data/variable.c
index d1e308640d05268df79f8639848cef04c618ba23..05edc57e2db85a3c02df4fbe3a16a6747d92c4bc 100644
(file)
--- a/
src/data/variable.c
+++ b/
src/data/variable.c
@@
-957,7
+957,7
@@
void *
var_attach_aux (const struct variable *v_,
void *aux, void (*aux_dtor) (struct variable *))
{
var_attach_aux (const struct variable *v_,
void *aux, void (*aux_dtor) (struct variable *))
{
- struct variable *v =
(struct variable *) v_ ; /* cast away const */
+ struct variable *v =
CONST_CAST (struct variable *, v_);
assert (v->aux == NULL);
assert (aux != NULL);
v->aux = aux;
assert (v->aux == NULL);
assert (aux != NULL);
v->aux = aux;
@@
-1015,7
+1015,7
@@
var_get_obs_vals (const struct variable *v)
void
var_set_obs_vals (const struct variable *v_, struct cat_vals *cat_vals)
{
void
var_set_obs_vals (const struct variable *v_, struct cat_vals *cat_vals)
{
- struct variable *v =
(struct variable *) v_ ; /* cast away const */
+ struct variable *v =
CONST_CAST (struct variable *, v_ );
cat_stored_values_destroy (v->obs_vals);
v->obs_vals = cat_vals;
}
cat_stored_values_destroy (v->obs_vals);
v->obs_vals = cat_vals;
}
@@
-1035,7
+1035,7
@@
var_has_obs_vals (const struct variable *v)
struct attrset *
var_get_attributes (const struct variable *v)
{
struct attrset *
var_get_attributes (const struct variable *v)
{
- return
(struct attrset *) &v->attributes
;
+ return
CONST_CAST (struct attrset *, &v->attributes)
;
}
/* Replaces variable V's attributes set by a copy of ATTRS. */
}
/* Replaces variable V's attributes set by a copy of ATTRS. */