From 0aebf725fe9c2aa3d08ae82141a30ebd52db7aef Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 1 Nov 2014 10:59:05 -0700 Subject: [PATCH] Fix all of the cases where we can find the dimensions section. --- dump.c | 48 ++++++++++++++++++++++++++++++++++++++---------- notes | 29 +++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 10 deletions(-) diff --git a/dump.c b/dump.c index 65bd4831ce..28c0ca3bbc 100644 --- a/dump.c +++ b/dump.c @@ -302,20 +302,48 @@ dump_value(int level) printf ("nested %d bytes", subn); pos += subn; } - printf ("; \"%s\", substitutions:", get_string()); - int total_subs = get_u32(); + char *base = get_string(); int x = get_u32(); - if (x) + printf ("\"%s\"; %d variables:\n", base, x); + if (match_u32(0)) { - total_subs = (total_subs - 1) + x; - match_u32_assert (0); + for (int i = 0; i < x; i++) + { + dump_value (level+1); + putchar('\n'); + } } - printf (" (total %d)", total_subs); - - for (int i = 0; i < total_subs; i++) + else { - putc ('\n', stdout); - dump_value (level + 1); + for (int i = 0; i < x; i++) + { + int y = get_u32(); + match_u32_assert(0); + for (int j = 0; j <= level; j++) + printf (" "); + printf("variable %d has %d values:\n", i, y); + for (int j = 0; j < y; j++) + { + if (match_byte(3)) + { + char *a = get_string(); + match_byte_assert(0x58); + char *b = get_string(); + char *c = get_string(); + for (int k = 0; k <= level + 1; k++) + printf (" "); + printf ("\"%s\", \"%s\", \"%s\"", a, b, c); + match_byte(0); + match_byte(0); + match_byte(0); + match_byte(0); + match_byte(0); + } + else + dump_value (level+1); + putchar('\n'); + } + } } } else diff --git a/notes b/notes index d5dd7b1621..44336aad9c 100644 --- a/notes +++ b/notes @@ -1369,6 +1369,35 @@ i4 03 "Partial Eta Squared" 58 "estimates_of_effect_size" "Partial Eta Squared" i1 i2 i5 00 00 00 00 00 00 00 00 +web/bf0de88830dd9a93323cfb8d7501f342/00000000075_lightTableData.bin (Default Multivariate Tests): + + i3 + + 03 "Test" 58 "multivariate_tests" "Test" 01 00 00 i2 01 00 i1 00 i4 + 03 "Pillai's Trace" 58 "pillais_trace" "Pillai's Trace" i1 i2 00 00 00 00 00 00 00 00 + 03 "Wilks' Lambda" 58 "wilks_lambda" "Wilks' Lambda" i1 i2 i1 00 00 00 00 + 03 "Hotelling's Trace" 58 "hotellings_trace" "Hotelling's Trace" i1 i2 i2 00 00 00 00 + 03 "Roy's Largest Root" 58 "roys_largest_root" "Roy's Largest Root" i1 i2 i3 00 00 00 00 + + 03 "Effect" 58 "effect" "Effect" 01 00 00 i2 00 00 01 i1 i2 00 + 31 i0 i0 i25: (i19: ("" 31 "[%1:*^1:]1") 58 58) "[%1: * ^1:]1" i1 i1 00 00 00 00 + 03 "Time" 58 00 00 00 00 "Time" 00 00 00 00 i2 00 00 00 00 00 00 00 00 00 + 31 00 00 00 00 00 00 00 00 i33: (i27: ("" 31 "[%1:*^1:]1*[:^1:]2") 58 58) "[%1: * ^1:]1 *[: ^1:]2" i2 + i1 00 00 00 00 + 03 "Time" 58 00 00 00 00 "Time" 00 + i3 00 00 00 00 + 05 58 "Condition" 00 00 00 00 i1 00 + 03 " * " 58 00 00 00 00 " * " 00 00 00 00 00 + 05 58 "Extraversio" 00 00 00 00 i1 i2 i1 00 00 00 00 + + 03 "Statistics" 58 "statistics_10" "Statistics" 01 00 01 i2 01 00 01 i2 i5 + 03 "Value" 58 "value_18" "Value" i1 i2 00 00 00 00 00 00 00 00 + 03 "F" 58 "f_value" "F" i1 i2 i1 00 00 00 00 + 03 "Hypothesis df" 58 "df" "Hypothesis df" i1 i2 i2 00 00 00 00 + 03 "Error df" 58 "error_df" "Error df" i1 i2 i3 00 00 00 00 + 03 "Sig." 58 "significance_level" "Significance" i1 i2 i4 00 00 00 00 00 00 00 00 + + Data: tdump21 (germano/Crosstabs.pdf) ------------- -- 2.30.2