summaryrefslogtreecommitdiff
path: root/flex_public_typedefs.m4
diff options
context:
space:
mode:
Diffstat (limited to 'flex_public_typedefs.m4')
-rw-r--r--flex_public_typedefs.m476
1 files changed, 76 insertions, 0 deletions
diff --git a/flex_public_typedefs.m4 b/flex_public_typedefs.m4
new file mode 100644
index 0000000..206abc9
--- /dev/null
+++ b/flex_public_typedefs.m4
@@ -0,0 +1,76 @@
+/************************************************************/
+/* Public Typedefs */
+
+m4_if_reentrant([[
+/* An opaque pointer. */
+#ifndef YY_TYPEDEF_YY_SCANNER_T
+#define YY_TYPEDEF_YY_SCANNER_T
+typedef void* yyscan_t;
+#endif
+
+]])
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+m4_dnl NOTE: Declare the struct before using it in a typedef (required in C++)
+#ifndef YY_STRUCT_YY_BUFFER_STATE
+#define YY_STRUCT_YY_BUFFER_STATE
+struct yy_buffer_state
+ {
+ M4_INSTREAM *input_file;
+
+ char *ch_buf; /* input buffer */
+ char *buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ yy_size_t buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ int n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int at_bol;
+
+ int bs_lineno; /**< The line count. */
+ int bs_column; /**< The column count. */
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int fill_buffer;
+
+ /* Buffer status #defines are currently not written to the
+ * public header.
+ */
+ int buffer_status;
+
+ };
+#endif /* !YY_STRUCT_YY_BUFFER_STATE */
+
+#ifndef YY_TYPEDEF_YY_BUFFER_STATE
+#define YY_TYPEDEF_YY_BUFFER_STATE
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+#endif
+