]> git.pond.sub.org Git - empserver/commitdiff
Provide proper ca_table for meta selector table
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 25 Apr 2011 05:15:57 +0000 (07:15 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jun 2011 14:44:04 +0000 (16:44 +0200)
No idea why it was missing.

doc/xdump
src/lib/common/nsc.c

index 7d46778e83f02dd36916c94b18f7ad89c3a0be92..c7f2ba46838db17df6d1b5d4f0ff8a52c5461394 100644 (file)
--- a/doc/xdump
+++ b/doc/xdump
@@ -348,7 +348,8 @@ its meta-data:
 Because xdump table is referenced from elsewhere (xdump meta meta
 field table), the leftmost field must contain the key.  Thus, the
 leftmost field's meta-data field table must be the table ID of xdump
-table itself.  Let's try it:
+table itself.  Indeed, its value matches the one we got in xdump meta
+meta.  Let's try to dump the table:
 
     [30:640] Command : xdump 26 *
     XDUMP table 1139556210
@@ -415,7 +416,7 @@ We now have complete meta-meta information:
     type     d       (const)    0  meta-type
     flags    d  (bits const)    0  meta-flags
     len      d       (const)    0
-    table    d       (const)    0
+    table    d       (const)    0  table
 
 Dumping the remaining tables is easy: just walk the table of tables.
 Here's the first one:
index 6b85e2353130294189fdf8361c6f3c25d9241c31..a5c439fa040df361f1305a26943b9c2704844ddd 100644 (file)
@@ -687,7 +687,7 @@ struct castr mdchr_ca[] = {
     {"flags", fldoff(ca_flags), NSC_UCHAR, 0, NULL,
      EF_META_FLAGS, NSC_CONST | NSC_BITS},
     {"len", fldoff(ca_len), NSC_USHORT, 0, NULL, EF_BAD, NSC_CONST},
-    {"table", fldoff(ca_table), NSC_INT, 0, NULL, EF_BAD, NSC_CONST},
+    {"table", fldoff(ca_table), NSC_INT, 0, NULL, EF_TABLE, NSC_CONST},
     {NULL, 0, NSC_NOTYPE, 0, NULL, EF_BAD, 0}
 #undef CURSTR
 };