summaryrefslogtreecommitdiff
path: root/tables_shared.h
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-09-09 19:25:56 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-09-09 19:25:56 +0000
commitb670bc6c09e8bd33f48db9f1db3782eac0b0b0b4 (patch)
tree6581909a842d6bc1ed15f0af17cee697600fe5c1 /tables_shared.h
parenta953d6fb60d4221ef08d90820f015fb58678b48a (diff)
Table deserialization works for everything except --fast scanners.
Scanners can auto-verify serialized table integrity via --tables-verify. Added tables API items to TODO list. test-table-opts is becoming exhaustive (a good thing).
Diffstat (limited to 'tables_shared.h')
-rw-r--r--tables_shared.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tables_shared.h b/tables_shared.h
index 571f4d8..d2afff0 100644
--- a/tables_shared.h
+++ b/tables_shared.h
@@ -63,6 +63,12 @@ dnl flex code (hence the name "_shared").
#define YYTBL_MAGIC 0xF13C57B1
#endif
+/** Calculate (0-7) = number bytes needed to pad n to next 64-bit boundary. */
+#ifndef yypad64
+#define yypad64(n) ((8-((n)%8))%8)
+#endif
+
+
/** Possible values for t_id field. Each one corresponds to a
* scanner table of the same name.
*/