From: Ben Pfaff Date: Fri, 31 Oct 2014 04:26:39 +0000 (-0700) Subject: dump: Fix handling of another odd case. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c54850cfe76ba00bafe34bf8d60c12a8111d130;p=pspp dump: Fix handling of another odd case. --- diff --git a/dump.c b/dump.c index 3382f7a8b4..d0e37c71b3 100644 --- a/dump.c +++ b/dump.c @@ -157,10 +157,22 @@ dump_value(int level) get_string(); if (match_byte (0x31)) { - match_u32 (1); - printf("(footnote %d) ", get_u32()); - match_byte_assert (0); - match_byte_assert (0); + if (match_u32 (1)) + { + printf("(footnote %d) ", get_u32()); + match_byte_assert (0); + match_byte_assert (0); + } + else + { + match_u32_assert (2); + printf("(special 2)"); + match_byte_assert(0); + match_byte_assert(0); + match_u32_assert(1); + match_byte_assert(0); + match_byte_assert(0); + } int subn = get_u32 (); printf ("nested %d bytes", subn); pos += subn; @@ -170,6 +182,8 @@ dump_value(int level) get_string(); printf("string \"%s\"", get_string()); match_byte (0); + match_byte (0); + match_byte (0); match_byte_assert (1); match_byte (0); match_byte (0); diff --git a/notes b/notes index bfb1761dfc..4f6cbce7a6 100644 --- a/notes +++ b/notes @@ -903,6 +903,29 @@ web/76e9b53e9f775fb690a88919ccdbb03c/00000000703_lightTableData.bin (oneway desc .... +web/76e9b53e9f775fb690a88919ccdbb03c/00000000725212_lightTableData.bin (Gender_R homogeneous subsets): + + good example for title and footnotes (?) + + i3 + + 03 "Statistics" 58 "statistics_10" "Statistics" 01 00 00 i2 01 00 i1 00 i2 + 03 "N" 58 "n" "N" i1 i2 i0 i0 00 + 31 i0 i0 i36: (i30: ("" 31 "Subset for alpha = ^1") 58 58) "Subset for alpha = ^1" i1 i0 + 03 "0.05" 58 "" "0.05" 00 00 00 01 i2 i-1 i1 + 01 58 F40.0(1) 00 00 00 i2 i1 00 00 00 00 + + 05 58 "sexorient_r" 00 00 00 00 02 00 00 i2 00 00 01 i1 i2 + 03 "Group" 58 00 00 00 00 "Group" 00 01 00 01 i2 i-1 i3 + 02 58 F40.0(0) "sexorient_r" "Straight" i2 i2 00 00 00 00 00 00 00 00 + 02 58 F40.0(2) "sexorient_r" "Gay/Lesbian/Homosexual" i2 i2 i1 00 00 00 00 + 02 58 F40.0(1) "sexorient_r" "Bisexual" i2 i2 i2 i0 + 03 "Sig." 58 "significance_level" "Significance" i1 i2 i3 00 00 00 00 + + 03 "Test" 58 "test" "Test" 01 00 01 i2 01 00 01 i2 i2 + 03 "Tukey HSD" 31 i2 00 00 i1 00 00 i11: (i5: ("" 58) 58 58) "tukeys_honestly_significant_difference" "Tukey HSD" i1 i2 00 00 00 00 00 00 00 00 + 03 "Tukey B" 31 i2 00 00 i1 00 00 i11: (i5: ("" 58) 58 58) "tukeys_b_test" "Tukey B" i1 i2 i1 00 00 00 00 00 00 00 00 i2 i1 i1 i2 ... + Data: tdump21 (germano/Crosstabs.pdf) -------------