size_t src_ofs;
int src_width;
- void (*resize_cb) (const union value *, union value *, void *aux);
- void *resize_cb_aux;
+ void (*resize_cb) (const union value *, union value *, const void *aux);
+ const void *resize_cb_aux;
union value dst_value;
size_t dst_ofs;
bool
datasheet_resize_column (struct datasheet *ds, size_t column, int new_width,
void (*resize_cb) (const union value *,
- union value *, void *aux),
- void *resize_cb_aux)
+ union value *, const void *aux),
+ const void *resize_cb_aux)
{
struct column old_col;
struct column *col;
size_t cnt);
bool datasheet_resize_column (struct datasheet *, size_t column, int new_width,
void (*resize_cb) (const union value *,
- union value *, void *aux),
- void *aux);
+ union value *, const void *aux),
+ const void *aux);
/* Rows. */
casenumber datasheet_get_n_rows (const struct datasheet *);
};
static void
-resize_datum (const union value *old, union value *new, void *aux_)
+resize_datum (const union value *old, union value *new, const void *aux_)
{
- struct resize_datum_aux *aux = aux_;
+ const struct resize_datum_aux *aux = aux_;
if (aux->new_width == 0)
{
};
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));