summaryrefslogtreecommitdiff
path: root/tables_shared.h
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2002-08-27 18:07:19 +0000
committerWill Estes <wlestes@users.sourceforge.net>2002-08-27 18:07:19 +0000
commit3e58ded5164af663649c86ab3f273310c2c57d37 (patch)
treeb9c93a6215354a21740a2f52eb57a4a1192f5f6b /tables_shared.h
parent1dc652849525bdce070d741fbce3c0cc40c81ed2 (diff)
ran the indent target; commit the results
Diffstat (limited to 'tables_shared.h')
-rw-r--r--tables_shared.h65
1 files changed, 30 insertions, 35 deletions
diff --git a/tables_shared.h b/tables_shared.h
index 3ef0905..bf20668 100644
--- a/tables_shared.h
+++ b/tables_shared.h
@@ -54,50 +54,45 @@
/** Possible values for t_id field. Each one corresponds to a
* scanner table of the same name.
*/
-enum yytbl_id
-{
- YYT_ID_ACCEPT = 0x01,
- YYT_ID_BASE = 0x02,
- YYT_ID_CHK = 0x03,
- YYT_ID_DEF = 0x04,
- YYT_ID_EC = 0x05,
- YYT_ID_META = 0x06,
- YYT_ID_NUL_TRANS = 0x07,
- YYT_ID_NXT = 0x08, /**< may be 2 dimensional array */
- YYT_ID_RULE_CAN_MATCH_EOL = 0x09,
- YYT_ID_START_STATE_LIST = 0x0A, /**< array of pointers */
- YYT_ID_TRANSITION = 0x0B /**< array of structs */
+enum yytbl_id {
+ YYT_ID_ACCEPT = 0x01,
+ YYT_ID_BASE = 0x02,
+ YYT_ID_CHK = 0x03,
+ YYT_ID_DEF = 0x04,
+ YYT_ID_EC = 0x05,
+ YYT_ID_META = 0x06,
+ YYT_ID_NUL_TRANS = 0x07,
+ YYT_ID_NXT = 0x08, /**< may be 2 dimensional array */
+ YYT_ID_RULE_CAN_MATCH_EOL = 0x09,
+ YYT_ID_START_STATE_LIST = 0x0A, /**< array of pointers */
+ YYT_ID_TRANSITION = 0x0B /**< array of structs */
};
/** bit flags for t_flags field of struct yytbl_data */
-enum yytbl_flags
-{
- YYT_DATA8 = 0x01, /**< data is an array of type int8_t */
- YYT_DATA16 = 0x02, /**< data is an array of type int16_t */
- YYT_DATA32 = 0x04, /**< data is an array of type int32_t */
- YYT_PTRANS = 0x08, /**< data is a list of indexes of entries
+enum yytbl_flags {
+ YYT_DATA8 = 0x01, /**< data is an array of type int8_t */
+ YYT_DATA16 = 0x02, /**< data is an array of type int16_t */
+ YYT_DATA32 = 0x04, /**< data is an array of type int32_t */
+ YYT_PTRANS = 0x08, /**< data is a list of indexes of entries
into the expanded `yy_transition'
array. See notes in manual. */
};
/* The serialized tables header. */
-struct yytbl_hdr
-{
- uint32_t th_magic; /**< Must be 0xF13C57B1 (comes from "Flex Table") */
- uint32_t th_hsize; /**< Size of this header in bytes. */
- uint32_t th_ssize; /**< Size of this dataset, in bytes, including header. */
- uint16_t th_flags; /**< Currently unused, must be 0 */
- char* th_version; /**< Flex version string. NUL terminated. */
- char* th_name; /**< The name of this table set. NUL terminated. */
+struct yytbl_hdr {
+ uint32_t th_magic; /**< Must be 0xF13C57B1 (comes from "Flex Table") */
+ uint32_t th_hsize; /**< Size of this header in bytes. */
+ uint32_t th_ssize; /**< Size of this dataset, in bytes, including header. */
+ uint16_t th_flags; /**< Currently unused, must be 0 */
+ char *th_version; /**< Flex version string. NUL terminated. */
+ char *th_name; /**< The name of this table set. NUL terminated. */
};
/** A single serialized table */
-struct yytbl_data
-{
- enum yytbl_id t_id; /**< table identifier */
- uint16_t t_flags; /**< how to interpret this data */
- uint32_t t_hilen; /**< num elements in highest dimension array */
- uint32_t t_lolen; /**< num elements in lowest dimension array */
- void* t_data; /**< table data */
+struct yytbl_data {
+ enum yytbl_id t_id; /**< table identifier */
+ uint16_t t_flags; /**< how to interpret this data */
+ uint32_t t_hilen; /**< num elements in highest dimension array */
+ uint32_t t_lolen; /**< num elements in lowest dimension array */
+ void *t_data; /**< table data */
};
-