summaryrefslogtreecommitdiff
path: root/tables_shared.h
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-09-16 18:38:46 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-09-16 18:38:46 +0000
commit5aebd0ff8a443e7dc59cee12526c76f3ab6255bc (patch)
treeba94b2d7cb86766983fc6790eff5ffb3943d5569 /tables_shared.h
parent91fb00772de41ae2ebbee9b8d7c5205b6789aec1 (diff)
Serialization works in headers (%option headers).
Serialization code (Tables API) is complete.
Diffstat (limited to 'tables_shared.h')
-rw-r--r--tables_shared.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tables_shared.h b/tables_shared.h
index f52ee23..a46c057 100644
--- a/tables_shared.h
+++ b/tables_shared.h
@@ -69,6 +69,8 @@ dnl flex code (hence the name "_shared").
#endif
+#ifndef YYTABLES_TYPES
+#define YYTABLES_TYPES
/** Possible values for td_id field. Each one corresponds to a
* scanner table of the same name.
*/
@@ -119,6 +121,7 @@ struct yytbl_data {
uint32_t td_lolen; /**< num elements in lowest dimension array */
void *td_data; /**< table data */
};
+#endif
/** Extract corresponding data size_t from td_flags */
#ifndef YYTDFLAGS2BYTES
@@ -130,6 +133,12 @@ struct yytbl_data {
:sizeof(int32_t)))
#endif
+#ifdef FLEX_SCANNER
+%not-for-header
+#endif
yyskel_static int32_t yytbl_calc_total_len (const struct yytbl_data *tbl);
+#ifdef FLEX_SCANNER
+%ok-for-header
+#endif
/* vim:set noexpandtab cindent tabstop=8 softtabstop=0 shiftwidth=8 textwidth=0: */