projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Identify a byte as a dimension index.
[pspp]
/
dump.c
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);
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();
match_byte(0);
match_byte(0);
n_categories = get_u32();