Document TableLook detail.
[pspp] / dump.c
diff --git a/dump.c b/dump.c
index 4d7d7f468e694bfa11a59900f45c46920dd84146..9e1bfd9f960b2f97379db046204193bcd6cdfd6a 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -879,19 +879,15 @@ dump_fonts(void)
   match_u32_assert(18);
   pos += 18;
 
-  if (match_u32(117))
-    pos += 117;
-  else if (match_u32(142))
-    pos += 142;
-  else if (match_u32(143))
-    pos += 143;
-  else if (match_u32(150))
-    pos += 150;
-  else
+  int x3 = get_u32();
+  if (version == 3)
     {
-      match_u32_assert(16);
-      pos += 16;
+      assert(x3 >= 117);
+      int len = data[pos + 0x34];
+      if (len)
+        fprintf(stderr, "<tablelook>%.*s</tablelook>\n", len, &data[pos + 0x35]);
     }
+  pos += x3;
 
   int count = get_u32();
   pos += 4 * count;