projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891b597
)
pivot-table: Avoid making PIVOT_N_AXES an enum member.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 28 Aug 2022 21:21:02 +0000
(14:21 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 28 Aug 2022 21:22:19 +0000
(14:22 -0700)
Otherwise the compiler will complain about it not appearing in a switch.
src/output/pivot-table.h
patch
|
blob
|
history
diff --git
a/src/output/pivot-table.h
b/src/output/pivot-table.h
index 88edb62031c5227b304bb62a761704d25a03b47c..e374596184889f107ba2ecdfef60f44b3be671c8 100644
(file)
--- a/
src/output/pivot-table.h
+++ b/
src/output/pivot-table.h
@@
-177,9
+177,8
@@
enum pivot_axis_type
{
PIVOT_AXIS_LAYER,
PIVOT_AXIS_ROW,
- PIVOT_AXIS_COLUMN,
-
- PIVOT_N_AXES
+ PIVOT_AXIS_COLUMN
+#define PIVOT_N_AXES 3
};
const char *pivot_axis_type_to_string (enum pivot_axis_type);