2007-02-27 02:29:16 +00:00
|
|
|
#ifndef __FLEX_TABLES_H
|
|
|
|
#define __FLEX_TABLES_H
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define YYTH_MAGIC 0xF13C57B1
|
2014-01-09 16:55:55 -08:00
|
|
|
#define YYTH_FLAG_DIFF_ENCODE 1
|
2019-08-11 06:18:27 -07:00
|
|
|
#define YYTH_FLAG_OOB_TRANS 2
|
2007-02-27 02:29:16 +00:00
|
|
|
|
|
|
|
struct table_set_header {
|
|
|
|
uint32_t th_magic; /* TH_MAGIC */
|
|
|
|
uint32_t th_hsize;
|
|
|
|
uint32_t th_ssize;
|
|
|
|
uint16_t th_flags;
|
2010-11-09 13:39:18 -08:00
|
|
|
/* char th_version[];
|
|
|
|
char th_name[];
|
2007-02-27 02:29:16 +00:00
|
|
|
char th_pad64[];*/
|
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
2007-03-14 22:01:16 +00:00
|
|
|
#define YYTD_ID_ACCEPT 1
|
|
|
|
#define YYTD_ID_BASE 2
|
|
|
|
#define YYTD_ID_CHK 3
|
|
|
|
#define YYTD_ID_DEF 4
|
|
|
|
#define YYTD_ID_EC 5
|
|
|
|
#define YYTD_ID_META 6
|
2008-03-13 16:46:19 +00:00
|
|
|
#define YYTD_ID_ACCEPT2 7
|
2007-03-14 22:01:16 +00:00
|
|
|
#define YYTD_ID_NXT 8
|
2007-02-27 02:29:16 +00:00
|
|
|
|
|
|
|
#define YYTD_DATA8 1
|
|
|
|
#define YYTD_DATA16 2
|
|
|
|
#define YYTD_DATA32 4
|
|
|
|
|
|
|
|
struct table_header {
|
|
|
|
uint16_t td_id;
|
|
|
|
uint16_t td_flags;
|
|
|
|
uint32_t td_hilen;
|
|
|
|
uint32_t td_lolen;
|
2010-11-09 13:39:18 -08:00
|
|
|
/* char td_data[];
|
|
|
|
char td_pad64[];*/
|
2007-02-27 02:29:16 +00:00
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
|
|
#endif
|