/* Attaches a reference to FOOTNOTE to V. */
void
pivot_value_add_footnote (struct pivot_value *v,
- struct pivot_footnote *footnote)
+ const struct pivot_footnote *footnote)
{
v->footnotes = xrealloc (v->footnotes,
(v->n_footnotes + 1) * sizeof *v->footnotes);
/* If VALUE is a numeric value, and RC is a result class such as
PIVOT_RC_COUNT, changes VALUE's format to the result class's. */
void
-pivot_value_set_rc (struct pivot_table *table, struct pivot_value *value,
+pivot_value_set_rc (const struct pivot_table *table, struct pivot_value *value,
const char *rc)
{
if (value->type == PIVOT_VALUE_NUMERIC)
time_t date; /* May be 0 if unknown. */
/* Footnotes. */
- struct pivot_footnote **footnotes;
+ const struct pivot_footnote **footnotes;
size_t n_footnotes, allocated_footnotes;
/* Titles. */
char *subscript;
char *superscript;
- struct pivot_footnote **footnotes;
+ const struct pivot_footnote **footnotes;
size_t n_footnotes;
enum pivot_value_type type;
struct pivot_value *pivot_value_new_user_text_nocopy (char *);
/* Footnotes. */
-void pivot_value_add_footnote (struct pivot_value *, struct pivot_footnote *);
+void pivot_value_add_footnote (struct pivot_value *, const struct pivot_footnote *);
/* Numeric formats. */
-void pivot_value_set_rc (struct pivot_table *, struct pivot_value *,
+void pivot_value_set_rc (const struct pivot_table *, struct pivot_value *,
const char *rc);
/* Converting a pivot_value to a string for display. */