projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b655ed
)
Identify a byte as a dimension index.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 17:31:28 +0000
(09:31 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 17:31:28 +0000
(09:31 -0800)
dump.c
patch
|
blob
|
history
diff --git
a/dump.c
b/dump.c
index 158caace62ca1ccf344efa3e00097bdcb1eb9502..f8150b3894bb31255a2bf5c2d613b3efc9e65cf9 100644
(file)
--- a/
dump.c
+++ b/
dump.c
@@
-388,7
+388,12
@@
dump_dim(void)
match_u32_assert(2);
if (!match_byte(0))
match_byte_assert(1);
- get_u32();
+ if (!match_byte(0))
+ match_byte_assert(1);
+ match_byte_assert(1);
+ static int dim_indx = 0;
+ match_byte_assert(dim_indx++);
+ pos += 1;
match_byte(0);
match_byte(0);
n_categories = get_u32();