projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1978754
)
Factor out trailing match_bytes() from dump_value().
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 05:38:55 +0000
(21:38 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 7 Nov 2014 05:38:55 +0000
(21:38 -0800)
dump.c
patch
|
blob
|
history
diff --git
a/dump.c
b/dump.c
index 1f5f8dc07968bd6fcfc1714f072cb77599c04b4b..789daa97a80ff468de24c6a130f5faa8b399d87a 100644
(file)
--- a/
dump.c
+++ b/
dump.c
@@
-227,9
+227,6
@@
dump_value(int level)
match_byte (0);
match_byte (1);
match_byte (1);
match_byte (0);
match_byte (1);
match_byte (1);
- match_byte (0);
- match_byte (0);
- match_byte (0);
}
else if (match_byte (5))
{
}
else if (match_byte (5))
{
@@
-238,9
+235,6
@@
dump_value(int level)
get_string();
if (!match_byte(1) && !match_byte(2))
match_byte_assert(3);
get_string();
if (!match_byte(1) && !match_byte(2))
match_byte_assert(3);
- match_byte (0);
- match_byte (0);
- match_byte (0);
}
else if (match_byte (2))
{
}
else if (match_byte (2))
{
@@
-257,9
+251,6
@@
dump_value(int level)
value, format >> 16, (format >> 8) & 0xff, format & 0xff, var, vallab);
if (!match_byte (1) && !match_byte(2))
match_byte_assert (3);
value, format >> 16, (format >> 8) & 0xff, format & 0xff, var, vallab);
if (!match_byte (1) && !match_byte(2))
match_byte_assert (3);
- match_byte (0);
- match_byte (0);
- match_byte (0);
}
else if (match_byte (4))
{
}
else if (match_byte (4))
{
@@
-275,9
+266,6
@@
dump_value(int level)
value = get_string ();
printf ("value \"%s\" format %d(%d.%d) var \"%s\" vallab \"%s\"",
value, format >> 16, (format >> 8) & 0xff, format & 0xff, var, vallab);
value = get_string ();
printf ("value \"%s\" format %d(%d.%d) var \"%s\" vallab \"%s\"",
value, format >> 16, (format >> 8) & 0xff, format & 0xff, var, vallab);
- match_byte (0);
- match_byte (0);
- match_byte (0);
}
else if (match_byte (1))
{
}
else if (match_byte (1))
{
@@
-289,9
+277,6
@@
dump_value(int level)
value = get_double ();
printf ("value %g format %d(%d.%d)", value, format >> 16, (format >> 8) & 0xff, format & 0xff);
match_byte (1);
value = get_double ();
printf ("value %g format %d(%d.%d)", value, format >> 16, (format >> 8) & 0xff, format & 0xff);
match_byte (1);
- match_byte (0);
- match_byte (0);
- match_byte (0);
}
else
{
}
else
{
@@
-342,6
+327,9
@@
dump_value(int level)
}
}
}
}
}
}
+ match_byte(0);
+ match_byte(0);
+ match_byte(0);
}
static void
}
static void