projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c94e76
)
pivot-table: Minor comment and style improvements.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 19 Oct 2019 05:53:00 +0000
(
05:53
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 29 Dec 2019 05:28:10 +0000
(
05:28
+0000)
No behavioral changes.
src/output/pivot-table.c
patch
|
blob
|
history
diff --git
a/src/output/pivot-table.c
b/src/output/pivot-table.c
index b98bbbf3e962320238750ed572eb8d7a1f53e179..7745e4e9743e301f1a978bc9739c8660a9ccf194 100644
(file)
--- a/
src/output/pivot-table.c
+++ b/
src/output/pivot-table.c
@@
-350,7
+350,7
@@
pivot_dimension_create__ (struct pivot_table *table,
sizeof *table->current_layer);
}
sizeof *table->current_layer);
}
- /*
XXX extent and label_depth need to
be calculated later. */
+ /*
axis->extent and axis->label_depth will
be calculated later. */
return d;
}
return d;
}
@@
-1027,9
+1027,9
@@
pivot_make_default_footnote_marker (int idx, bool show_numeric_markers)
return pivot_value_new_user_text (text, -1);
}
return pivot_value_new_user_text (text, -1);
}
-/* Creates or modifies a footnote in TABLE with 0-based number IDX
. If MARKER
-
is nonnull, sets the footnote's marker; if CONTENT
is nonnull, sets the
- footnote's content. */
+/* Creates or modifies a footnote in TABLE with 0-based number IDX
(and creates
+
all lower indexes as a side effect). If MARKER
is nonnull, sets the
+ footnote's
marker; if CONTENT is nonnull, sets the footnote's
content. */
struct pivot_footnote *
pivot_table_create_footnote__ (struct pivot_table *table, size_t idx,
struct pivot_value *marker,
struct pivot_footnote *
pivot_table_create_footnote__ (struct pivot_table *table, size_t idx,
struct pivot_value *marker,
@@
-1503,7
+1503,7
@@
pivot_table_dump (const struct pivot_table *table, int indentation)
fputs (" =", stdout);
struct pivot_value **names = xnmalloc (layer_axis->label_depth,
fputs (" =", stdout);
struct pivot_value **names = xnmalloc (layer_axis->label_depth,
- sizeof *names);
+
sizeof *names);
size_t n_names = 0;
for (const struct pivot_category *c
= d->presentation_leaves[layer_indexes[i]];
size_t n_names = 0;
for (const struct pivot_category *c
= d->presentation_leaves[layer_indexes[i]];